[PATCH 3/3] spi: spi-xilinx: Add run run-time endian detection

2013-06-04 Thread Michal Simek
Do not load endian value from platform data and rather autodetect it. Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/mfd/timberdale.c | 1 - drivers/spi/spi-xilinx.c | 29 + include/linux/spi/xilinx_spi.h | 1 - 3 files changed, 21

[PATCH 2/3] spi: spi-xilinx: Clear dma_mask for xilinx spi controller

2013-06-04 Thread Michal Simek
From: Michal Simek mon...@monstr.eu mmc_spi driver tests if dma is available through spi-master-dev.parent-dma_mask. Microblaze supports DMA but xilinx_spi IP doesn't. That's why clear dma_mask in the driver. Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/spi/spi-xilinx.c | 3

[PATCH 1/3] spi: spi-xilinx: Remove ISR race condition

2013-06-04 Thread Michal Simek
completing ISR. Simplified the ISR by just setting the completion variable and exiting with no action. Then just looped the transmit functionality in xilinx_spi_txrx_bufs(). Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers

Re: [PATCH 2/3] spi: spi-xilinx: Clear dma_mask for xilinx spi controller

2013-06-05 Thread Michal Simek
On 06/04/2013 07:36 PM, Mark Brown wrote: On Tue, Jun 04, 2013 at 04:02:35PM +0200, Michal Simek wrote: From: Michal Simek mon...@monstr.eu mmc_spi driver tests if dma is available through spi-master-dev.parent-dma_mask. Microblaze supports DMA but xilinx_spi IP doesn't. That's why clear

Re: [PATCH] audit: Fix decimal constant description

2013-06-05 Thread Michal Simek
Hi guys, any comment on this? Geert: I fixes one warning reported in your regression log. Thanks, Michal On 05/23/2013 08:03 AM, Michal Simek wrote: Use proper decimal type for comparison with u32. Compilation warning was introduced by: audit: Make testing for a valid loginuid explicit

Re: [PATCH] of: Export of_irq_count for using in modules

2013-06-06 Thread Michal Simek
On 06/06/2013 10:29 AM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 18:45 Fri 31 May , Michal Simek wrote: On 05/31/2013 05:16 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 15:57 Fri 31 May , Michal Simek wrote: On 05/31/2013 01:00 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 10:14

Re: [PATCH] of: Export of_irq_count for using in modules

2013-06-06 Thread Michal Simek
On 06/06/2013 01:55 PM, Grant Likely wrote: On Thu, Jun 6, 2013 at 9:39 AM, Michal Simek mon...@monstr.eu wrote: On 06/06/2013 10:29 AM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 18:45 Fri 31 May , Michal Simek wrote: ok. good to know. Btw: Let's return to my origin point why

Re: [PATCH v2 6/6] DT: Add documentation for gpio-xilinx

2013-06-24 Thread Michal Simek
Hi Linus, On 06/17/2013 11:13 AM, Linus Walleij wrote: On Mon, Jun 17, 2013 at 8:21 AM, Michal Simek mon...@monstr.eu wrote: On 06/17/2013 07:50 AM, Linus Walleij wrote: On Mon, Jun 3, 2013 at 2:31 PM, Michal Simek michal.si...@xilinx.com wrote: +- xlnx,tri-default : if n-th bit is 1

Re: [PATCH] microblaze: Don't mark arch_kgdb_ops as const.

2013-06-26 Thread Michal Simek
will extend description to connect it with that cleanup patch and will also create follow up to enable kgdb in defconfig to be sure that it is tested regularly. Applied. Thanks, Michal -- Michal Simek, Ing. (M.Eng), OpenPGP - KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer

[PATCH v3 1/2] uio: Use of_match_ptr() macro in uio_pdrv_genirq.c

2013-06-26 Thread Michal Simek
This eliminates having an #ifdef returning NULL for the case when OF is disabled. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v3: - Rebased on Pavel's UIO patch UIO: allow binding uio_pdrv_genirq.c to devices using command line option (sha1

[PATCH v3 2/2] uio: Remove uio_pdrv and use uio_pdrv_genirq instead

2013-06-26 Thread Michal Simek
be just removed. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v3: - Rebased on the latest char-misc with some UIO patches - Change patch description Changes in v2: None drivers/uio/Kconfig| 7 --- drivers/uio/Makefile | 1 - drivers/uio/uio_pdrv.c | 113

Re: [PATCH] clk/zynq/clkc: Add CLK_SET_RATE_PARENT flag to ethernet muxes

2013-06-26 Thread Michal Simek
] = clk_register_gate(NULL, clk_output_name[gem1], gem1_emio_mux, CLK_SET_RATE_PARENT, SLCR_GEM1_CLK_CTRL, 0, 0, gem1clk_lock); -- 1.8.3.1 Applied. Thanks, Michal -- Michal Simek, Ing. (M.Eng), OpenPGP - KeyID: FE3D1F91 w: www.monstr.eu p: +42-0

Re: [PATCH] clk/zynq/clkc: Add dedicated spinlock for the SWDT

2013-06-26 Thread Michal Simek
, ddrpll, 0, -- 1.8.3.1 Applied. Thanks, Michal -- Michal Simek, Ing. (M.Eng), OpenPGP - KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/ Maintainer of Linux kernel - Xilinx Zynq ARM architecture Microblaze U-BOOT

Re: [PATCH v4 0/7] xilinxfb changes

2013-06-26 Thread Michal Simek
On 06/17/2013 11:07 PM, Arnd Bergmann wrote: On Monday 17 June 2013, Michal Simek wrote: On 06/17/2013 10:56 AM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 07:23 Mon 17 Jun , Michal Simek wrote: On 06/06/2013 06:23 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 12:13 Mon 03 Jun

Re: [PATCH v3 1/2] uio: Use of_match_ptr() macro in uio_pdrv_genirq.c

2013-06-26 Thread Michal Simek
On 06/26/2013 12:00 PM, Sachin Kamat wrote: On 26 June 2013 15:22, Michal Simek michal.si...@xilinx.com wrote: This eliminates having an #ifdef returning NULL for the case when OF is disabled. Signed-off-by: Michal Simek michal.si...@xilinx.com I have already submitted a similar patch

Re: [PATCH v3 1/2] uio: Use of_match_ptr() macro in uio_pdrv_genirq.c

2013-06-26 Thread Michal Simek
On 06/26/2013 12:51 PM, Sachin Kamat wrote: On 26 June 2013 15:51, Michal Simek mon...@monstr.eu wrote: On 06/26/2013 12:00 PM, Sachin Kamat wrote: On 26 June 2013 15:22, Michal Simek michal.si...@xilinx.com wrote: This eliminates having an #ifdef returning NULL for the case when

Re: [PATCH v3 1/2] uio: Use of_match_ptr() macro in uio_pdrv_genirq.c

2013-06-26 Thread Michal Simek
On 06/26/2013 01:13 PM, Sachin Kamat wrote: On 26 June 2013 16:34, Michal Simek mon...@monstr.eu wrote: On 06/26/2013 12:51 PM, Sachin Kamat wrote: On 26 June 2013 15:51, Michal Simek mon...@monstr.eu wrote: On 06/26/2013 12:00 PM, Sachin Kamat wrote: On 26 June 2013 15:22, Michal Simek

Re: [PATCH v4 0/7] xilinxfb changes

2013-06-26 Thread Michal Simek
On 06/26/2013 01:41 PM, Tomi Valkeinen wrote: Hi, On 26/06/13 13:02, Michal Simek wrote: On 06/17/2013 11:07 PM, Arnd Bergmann wrote: On Monday 17 June 2013, Michal Simek wrote: On 06/17/2013 10:56 AM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 07:23 Mon 17 Jun , Michal Simek wrote

Re: [PATCH] dma-mapping: Add BUG_ON for uninitialized dma_ops

2013-06-26 Thread Michal Simek
this one or we can create new one which remove BUG_ON(!ops) from that file. Thanks, Michal -- Michal Simek, Ing. (M.Eng), OpenPGP - KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/ Maintainer of Linux kernel - Xilinx Zynq ARM

Re: [PATCH v2 0/2] Xilinx watchdog changes

2013-06-26 Thread Michal Simek
On 06/10/2013 11:10 AM, Michal Simek wrote: Hi Wim On 05/31/2013 07:56 AM, Michal Simek wrote: The patchset fixes license header and add 1.00.a IP to compatible list. Thanks for your review, Michal Remove the 3rd patch from this series which incorrectly tried to support set timeout

Re: [PATCH v3 1/2] uio: Use of_match_ptr() macro in uio_pdrv_genirq.c

2013-06-26 Thread Michal Simek
On 06/26/2013 05:00 PM, Greg Kroah-Hartman wrote: On Wed, Jun 26, 2013 at 12:21:27PM +0200, Michal Simek wrote: On 06/26/2013 12:00 PM, Sachin Kamat wrote: On 26 June 2013 15:22, Michal Simek michal.si...@xilinx.com wrote: This eliminates having an #ifdef returning NULL for the case when

[PATCH 1/2] GPIO: Add support for dual channel in gpio-xilinx.c

2013-05-29 Thread Michal Simek
Supporting the second channel in the driver. Offset is 0x8 and both channnels share the same IRQ. Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/gpio/gpio-xilinx.c | 93 -- 1 file changed, 81 insertions(+), 12 deletions(-) diff --git

[PATCH 2/2] DT: Add documentation for gpio-xilinx

2013-05-29 Thread Michal Simek
Describe gpio-xilinx binding. Signed-off-by: Michal Simek michal.si...@xilinx.com --- .../devicetree/bindings/gpio/gpio-xilinx.txt | 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-xilinx.txt diff --git

Re: [RFC PATCH 2/2] uio: Add two platform uio drivers to one

2013-05-29 Thread Michal Simek
Hi Hans, any comment on this? Thanks, Michal On 05/23/2013 04:01 PM, Michal Simek wrote: - Remove Userspace I/O platform driver without IRQ support but add this functionality to genirq driver - Remove code duplication from OF binding Signed-off-by: Michal Simek michal.si...@xilinx.com

[PATCH 03/11] phy: Use macros instead of hardcoded values in marvell phy driver

2013-05-29 Thread Michal Simek
Use macros from linux/marvell_phy.h instead of duplicate magic phy ID in the driver. Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/net/phy/marvell.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/net/phy/marvell.c b/drivers/net

[PATCH 05/11] phy: Add Marvell 88E1510 phy ID

2013-05-29 Thread Michal Simek
Add support for this new phy ID. Signed-off-by: Rick Hoover rhoo...@digilentinc.com Signed-off-by: Steven Wang steven.w...@digilentinc.com Signed-off-by: Lars-Peter Clausen l...@metafoo.de Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/net/phy/marvell.c | 25

[PATCH 08/11] net: emaclite: Let's make xemaclite_adjust_link static

2013-05-29 Thread Michal Simek
xemaclite_adjust_link is used locally. It removes sparse warning: drivers/net/ethernet/xilinx/xilinx_emaclite.c:916:6: warning: symbol 'xemaclite_adjust_link' was not declared. Should it be static? Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/net/ethernet/xilinx

[PATCH 07/11] net: emaclite: Support multiple phys connected to one MDIO bus

2013-05-29 Thread Michal Simek
-by: Michal Simek michal.si...@xilinx.com --- drivers/net/ethernet/xilinx/xilinx_emaclite.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c index a16dc35..fcd1e0b 100644

[PATCH 11/11] net: emaclite: Update driver header

2013-05-29 Thread Michal Simek
Corrent email address and years. Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/net/ethernet/xilinx/xilinx_emaclite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx

[PATCH 10/11] net: emaclite: Enable emaclite for Xilinx Arm Zynq platform

2013-05-29 Thread Michal Simek
Enable emaclite for Xilinx ARM Zynq platform. Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/net/ethernet/xilinx/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/xilinx/Kconfig b/drivers/net/ethernet/xilinx/Kconfig index

[PATCH 09/11] net: emaclite: Do not use microblaze and ppc IO functions

2013-05-29 Thread Michal Simek
Emaclite can be used on ARM zynq where in_be32/out_be32 IO functions are not present. Use standard __raw_readl/__raw_writel IO functions instead. Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/net/ethernet/xilinx/xilinx_emaclite.c | 100 +- 1 file changed

[PATCH 01/11] phy: Clean coding style in vitesse phy

2013-05-29 Thread Michal Simek
- Remove trailing white space - Remove spaces before tag - Fix comments Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/net/phy/vitesse.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/drivers/net/phy/vitesse.c b/drivers/net/phy

[PATCH 04/11] phy: Add Marvell 88E1116R phy ID

2013-05-29 Thread Michal Simek
This phy is on Xilinx ZC702 zynq development board. Signed-off-by: Anirudha Sarangi anir...@xilinx.com Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/net/phy/marvell.c | 65 + include/linux/marvell_phy.h | 1 + 2 files changed, 66

[PATCH 06/11] net: emaclite: Report failures in mdio setup

2013-05-29 Thread Michal Simek
Be more verbose when any problem happens. Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/net/ethernet/xilinx/xilinx_emaclite.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet

[PATCH 02/11] phy: Add Vitesse 8211 phy ID

2013-05-29 Thread Michal Simek
Phy is compatible with Vitesse 8221. Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/net/phy/vitesse.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/phy/vitesse.c b/drivers/net/phy/vitesse.c index d6e988f..69b482b 100644 --- a/drivers/net/phy

Re: [PATCH 09/11] net: emaclite: Do not use microblaze and ppc IO functions

2013-05-29 Thread Michal Simek
On 05/29/2013 05:33 PM, Michal Simek wrote: Emaclite can be used on ARM zynq where in_be32/out_be32 IO functions are not present. Use standard __raw_readl/__raw_writel IO functions instead. Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/net/ethernet/xilinx

[PATCH 1/3] video: xilinxfb: Fix OF probing on little-endian systems

2013-05-29 Thread Michal Simek
From: Michal Simek mon...@monstr.eu DTB is always big-endian that's why is necessary to convert it. Signed-off-by: Michal Simek mon...@monstr.eu Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/video/xilinxfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 3/3] video: xilinxfb: Use driver for Xilinx ARM Zynq

2013-05-29 Thread Michal Simek
From: Michal Simek mon...@monstr.eu Enable this driver for all Xilinx platforms. Signed-off-by: Michal Simek mon...@monstr.eu Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/video/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/Kconfig b

[PATCH 2/3] video: xilinxfb: Do not use out_be32 IO function

2013-05-29 Thread Michal Simek
out_be32 IO function is not supported by ARM. It is only available for PPC and Microblaze. Remove all out_be32 references and start to use __raw_writel function. Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/video/xilinxfb.c | 18 +- 1 file changed, 9

Re: [PATCH 11/11] net: emaclite: Update driver header

2013-05-29 Thread Michal Simek
On 05/29/2013 07:11 PM, Sergei Shtylyov wrote: Hello. On 05/29/2013 07:33 PM, Michal Simek wrote: Corrent email address and years. s/Corrent/Correct/. Perhaps the committer can fix. I will fix it in v2, one patch is broken anyway. Thanks, Michal -- Michal Simek, Ing. (M.Eng

[PATCH v2 1/3] video: xilinxfb: Fix OF probing on little-endian systems

2013-05-30 Thread Michal Simek
From: Michal Simek mon...@monstr.eu DTB is always big-endian that's why is necessary to convert it. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v2: - use of_property_read_u32 helper function drivers/video/xilinxfb.c | 7 +++ 1 file changed, 3 insertions(+), 4

[PATCH v2 2/3] video: xilinxfb: Do not use out_be32 IO function

2013-05-30 Thread Michal Simek
out_be32 IO function is not supported by ARM. It is only available for PPC and Microblaze. Remove all out_be32 references and start to use __raw_writel function. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v2: None drivers/video/xilinxfb.c | 18 +- 1 file

[PATCH v2 3/3] video: xilinxfb: Use driver for Xilinx ARM Zynq

2013-05-30 Thread Michal Simek
From: Michal Simek mon...@monstr.eu Enable this driver for all Xilinx platforms. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v2: None drivers/video/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig

[PATCH v2 0/6] Emaclite patches

2013-05-30 Thread Michal Simek
I have separated these emaclite patches from phy patches because it is easier for creating new versions. Thanks, Michal Changes in v2: - Fix __raw_iowrite() to pass correct parameters - s/Corrent/Correct/ in patch description Michal Simek (6): net: emaclite: Report failures in mdio setup

[PATCH v2 1/6] net: emaclite: Report failures in mdio setup

2013-05-30 Thread Michal Simek
Be more verbose when any problem happens. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v2: None drivers/net/ethernet/xilinx/xilinx_emaclite.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b

[PATCH v2 3/6] net: emaclite: Let's make xemaclite_adjust_link static

2013-05-30 Thread Michal Simek
xemaclite_adjust_link is used locally. It removes sparse warning: drivers/net/ethernet/xilinx/xilinx_emaclite.c:916:6: warning: symbol 'xemaclite_adjust_link' was not declared. Should it be static? Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v2: None drivers/net/ethernet

[PATCH v2 2/6] net: emaclite: Support multiple phys connected to one MDIO bus

2013-05-30 Thread Michal Simek
-by: Michal Simek michal.si...@xilinx.com --- Changes in v2: None drivers/net/ethernet/xilinx/xilinx_emaclite.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c index

[PATCH v2 6/6] net: emaclite: Update driver header

2013-05-30 Thread Michal Simek
Correct email address and years. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v2: - s/Corrent/Correct/ in patch description drivers/net/ethernet/xilinx/xilinx_emaclite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/xilinx

[PATCH v2 5/6] net: emaclite: Enable emaclite for Xilinx Arm Zynq platform

2013-05-30 Thread Michal Simek
Enable emaclite for Xilinx ARM Zynq platform. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v2: None drivers/net/ethernet/xilinx/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/xilinx/Kconfig b/drivers/net/ethernet

[PATCH v2 4/6] net: emaclite: Do not use microblaze and ppc IO functions

2013-05-30 Thread Michal Simek
Emaclite can be used on ARM zynq where in_be32/out_be32 IO functions are not present. Use standard __raw_readl/__raw_writel IO functions instead. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v2: - Fix __raw_iowrite() to pass correct parameters drivers/net/ethernet/xilinx

[PATCH 1/3] watchdog: xilinx: Fix driver header

2013-05-30 Thread Michal Simek
- Remove reference for IP version - Fix header coding style - Remove notes which are visible from the code - Fix driver license according to header Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/watchdog/of_xilinx_wdt.c | 30 ++ 1 file changed, 10

[PATCH 2/3] watchdog: xilinx: Setup the origin compatible string

2013-05-30 Thread Michal Simek
Watchdog 1.01.a is also compatible with 1.00.a. Setup the origin version to compatible list. If you want to use newer watchdog version, please extend your compatible list. For example: compatible = xlnx,xps-timebase-wdt-1.02.a, xlnx,xps-timebase-wdt-1.00.a; Signed-off-by: Michal Simek michal.si

[PATCH 3/3] watchdog: xilinx: Add WDIOC_SETTIMEOUT ioctl function

2013-05-30 Thread Michal Simek
Standard watchdog programs try to setup timeout via ioctl and this functionality should be implemented. Timeout value is hardcoded in the hardware but based on Documentation/watchdog/watchdog-api.txt can return the real timeout used in the same variable. Signed-off-by: Michal Simek michal.si

Re: [PATCH 1/3] watchdog: xilinx: Fix driver header

2013-05-30 Thread Michal Simek
On 05/30/2013 02:30 PM, Venu Byravarasu wrote: -Original Message- From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- ow...@vger.kernel.org] On Behalf Of Michal Simek Sent: Thursday, May 30, 2013 5:56 PM To: linux-kernel@vger.kernel.org Cc: Michal Simek; Michal Simek; Wim

[PATCH] of: Export of_irq_count for using in modules

2013-05-30 Thread Michal Simek
Export of_irq_count for modules. Signed-off-by: Michal Simek michal.si...@xilinx.com --- We are using this function in remoteproc module drivers. There is also drivers/gpio/gpio-mvebu.c in the tree which use this function but this driver can't be compiled as module. This could be also the reason

Re: [PATCH 2/3] watchdog: xilinx: Setup the origin compatible string

2013-05-30 Thread Michal Simek
On 05/30/2013 04:00 PM, Guenter Roeck wrote: On Thu, May 30, 2013 at 02:26:03PM +0200, Michal Simek wrote: Watchdog 1.01.a is also compatible with 1.00.a. Setup the origin version to compatible list. If you want to use newer watchdog version, please extend your compatible list. For example

Re: [PATCH 3/3] watchdog: xilinx: Add WDIOC_SETTIMEOUT ioctl function

2013-05-30 Thread Michal Simek
On 05/30/2013 04:07 PM, Guenter Roeck wrote: On Thu, May 30, 2013 at 02:26:04PM +0200, Michal Simek wrote: Standard watchdog programs try to setup timeout via ioctl and this functionality should be implemented. Timeout value is hardcoded in the hardware but based on Documentation/watchdog

Re: [PATCH 3/3] watchdog: xilinx: Add WDIOC_SETTIMEOUT ioctl function

2013-05-30 Thread Michal Simek
On 05/30/2013 04:21 PM, Guenter Roeck wrote: On Thu, May 30, 2013 at 04:15:45PM +0200, Michal Simek wrote: On 05/30/2013 04:07 PM, Guenter Roeck wrote: On Thu, May 30, 2013 at 02:26:04PM +0200, Michal Simek wrote: Standard watchdog programs try to setup timeout via ioctl

Re: [PATCH 3/3] watchdog: xilinx: Add WDIOC_SETTIMEOUT ioctl function

2013-05-30 Thread Michal Simek
On 05/30/2013 05:03 PM, Guenter Roeck wrote: On Thu, May 30, 2013 at 04:34:02PM +0200, Michal Simek wrote: On 05/30/2013 04:21 PM, Guenter Roeck wrote: On Thu, May 30, 2013 at 04:15:45PM +0200, Michal Simek wrote: On 05/30/2013 04:07 PM, Guenter Roeck wrote: On Thu, May 30, 2013 at 02:26:04PM

Re: [PATCH v2 0/5] Zynq: revised CCF code

2013-05-30 Thread Michal Simek
On 05/30/2013 08:44 PM, Mike Turquette wrote: Quoting Michal Simek (2013-05-17 05:14:47) Hi Mike, I have sent email to Greg to take this patch from this series though his serial tree because it is unrelated to this clock stuff. Can you please give me your ACK for these patches or add them

Re: [PATCH 1/2] GPIO: Add support for dual channel in gpio-xilinx.c

2013-05-30 Thread Michal Simek
Hi Linus, On 05/30/2013 09:46 PM, Linus Walleij wrote: On Wed, May 29, 2013 at 1:27 PM, Michal Simek michal.si...@xilinx.com wrote: Supporting the second channel in the driver. Offset is 0x8 and both channnels share the same IRQ. Signed-off-by: Michal Simek michal.si...@xilinx.com

Re: [PATCH 3/3] watchdog: xilinx: Add WDIOC_SETTIMEOUT ioctl function

2013-05-30 Thread Michal Simek
On 05/31/2013 12:08 AM, Wim Van Sebroeck wrote: Hi All, On Thu, May 30, 2013 at 05:12:24PM +0200, Michal Simek wrote: On 05/30/2013 05:03 PM, Guenter Roeck wrote: On Thu, May 30, 2013 at 04:34:02PM +0200, Michal Simek wrote: On 05/30/2013 04:21 PM, Guenter Roeck wrote: On Thu, May 30, 2013

[PATCH v2 0/2] Xilinx watchdog changes

2013-05-30 Thread Michal Simek
by Guenter Roeck li...@roeck-us.net Michal Simek (2): watchdog: xilinx: Fix driver header watchdog: xilinx: Setup the origin compatible string drivers/watchdog/of_xilinx_wdt.c | 31 +++ 1 file changed, 11 insertions(+), 20 deletions(-) -- 1.8.2.3 pgp1hHJVTULbz.pgp

[PATCH v2 1/2] watchdog: xilinx: Fix driver header

2013-05-30 Thread Michal Simek
- Remove reference for IP version - Fix header coding style - Remove notes which are visible from the code - Fix driver license according to header Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v2: None drivers/watchdog/of_xilinx_wdt.c | 30 ++ 1

[PATCH v2 2/2] watchdog: xilinx: Setup the origin compatible string

2013-05-30 Thread Michal Simek
Watchdog 1.01.a is also compatible with 1.00.a. Add the origin version to compatible list. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v2: - Extend compatible list with 1.00.a instead of replacing 1.01.a reported by Guenter Roeck li...@roeck-us.net drivers/watchdog

[PATCH v2 0/5] Phylib changes

2013-05-31 Thread Michal Simek
We have these changes in our tree for quite a long time and I would like to ask you for review. All phys are used on xilinx zynq boards. Thanks, Michal v2: Resent these phy patches without emaclite changes Changes in v2: - None Michal Simek (5): phy: Clean coding style in vitesse phy phy

[PATCH v2 3/5] phy: Use macros instead of hardcoded values in marvell phy driver

2013-05-31 Thread Michal Simek
Use macros from linux/marvell_phy.h instead of duplicate magic phy ID in the driver. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v2: None drivers/net/phy/marvell.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/net/phy

[PATCH v2 4/5] phy: Add Marvell 88E1116R phy ID

2013-05-31 Thread Michal Simek
This phy is on Xilinx ZC702 zynq development board. Signed-off-by: Anirudha Sarangi anir...@xilinx.com Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v2: None drivers/net/phy/marvell.c | 65 + include/linux/marvell_phy.h | 1

[PATCH v2 5/5] phy: Add Marvell 88E1510 phy ID

2013-05-31 Thread Michal Simek
Add support for this new phy ID. Signed-off-by: Rick Hoover rhoo...@digilentinc.com Signed-off-by: Steven Wang steven.w...@digilentinc.com Signed-off-by: Lars-Peter Clausen l...@metafoo.de Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v2: - None drivers/net/phy/marvell.c

[PATCH v2 2/5] phy: Add Vitesse 8211 phy ID

2013-05-31 Thread Michal Simek
Phy is compatible with Vitesse 8221. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v2: None drivers/net/phy/vitesse.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/phy/vitesse.c b/drivers/net/phy/vitesse.c index d6e988f..69b482b 100644

[PATCH v2 1/5] phy: Clean coding style in vitesse phy

2013-05-31 Thread Michal Simek
- Remove trailing white space - Remove spaces before tag - Fix comments Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v2: None drivers/net/phy/vitesse.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/drivers/net/phy/vitesse.c b

Re: [PATCH v2 0/5] Zynq: revised CCF code

2013-05-31 Thread Michal Simek
On 05/31/2013 08:32 AM, Mike Turquette wrote: Quoting Michal Simek (2013-05-30 22:17:59) On 05/30/2013 08:44 PM, Mike Turquette wrote: Quoting Michal Simek (2013-05-17 05:14:47) Hi Mike, I have sent email to Greg to take this patch from this series though his serial tree because

Re: [PATCH 1/2] GPIO: Add support for dual channel in gpio-xilinx.c

2013-05-31 Thread Michal Simek
On 05/31/2013 09:14 AM, Linus Walleij wrote: On Fri, May 31, 2013 at 7:43 AM, Michal Simek mon...@monstr.eu wrote: On 05/30/2013 09:46 PM, Linus Walleij wrote: (...) +/* Read/Write access to the GPIO registers */ +#define xgpio_readreg(offset) __raw_readl(offset) +#define

Re: [PATCH v2 2/3] video: xilinxfb: Do not use out_be32 IO function

2013-05-31 Thread Michal Simek
On 05/31/2013 12:04 AM, Arnd Bergmann wrote: On Thursday 30 May 2013 11:41:01 Michal Simek wrote: * To perform the read/write on the registers we need to check on * which bus its connected and call the appropriate write API. */ -static void xilinx_fb_out_be32(struct xilinxfb_drvdata

Re: [PATCH] of: Export of_irq_count for using in modules

2013-05-31 Thread Michal Simek
Hi Jean-Christophe, On 05/30/2013 10:17 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 15:49 Thu 30 May , Michal Simek wrote: Export of_irq_count for modules. can you explain why do you need to call of_irq_count I need to count number of irq written in the DTS node. It is not fixed size

[PATCH v3 0/8] xilinxfb changes

2013-05-31 Thread Michal Simek
in this patchset Changes in v2: - use of_property_read_u32 helper function Series-changes: 3 - fix commit message Michal Simek (8): video: xilinxfb: Fix OF probing on little-endian systems video: xilinxfb: Do not name out_be32 in function name video: xilinxfb: Rename PLB_ACCESS_FLAG

[PATCH v3 2/8] video: xilinxfb: Do not name out_be32 in function name

2013-05-31 Thread Michal Simek
out_be32 IO function is not supported by ARM. It is only available for PPC and Microblaze. Because this driver can be used on ARM let's remove out_be32 from function name. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v3: - Remove out_be IO name from function name - Change

[PATCH v3 8/8] video: xilinxfb: Use driver for Xilinx ARM Zynq

2013-05-31 Thread Michal Simek
From: Michal Simek mon...@monstr.eu Enable this driver for all Xilinx platforms. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v3: None Changes in v2: None drivers/video/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/Kconfig b

[PATCH v3 1/8] video: xilinxfb: Fix OF probing on little-endian systems

2013-05-31 Thread Michal Simek
From: Michal Simek mon...@monstr.eu DTB is always big-endian that's why it is necessary to properly convert value (*p). It is automatically done in of_property_read_u32(). Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v3: None Changes in v2: - use of_property_read_u32 helper

[PATCH v3 3/8] video: xilinxfb: Rename PLB_ACCESS_FLAG to BUS_ACCESS_FLAG

2013-05-31 Thread Michal Simek
Using only PLB name is wrong for a long time because the same access functions are also used for AXI. s/PLB/BUS/g Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v3: - New patch in this patchset based on discussions Changes in v2: None drivers/video/xilinxfb.c | 32

[PATCH v3 6/8] video: xilinxfb: Add support for little endian accesses

2013-05-31 Thread Michal Simek
Dynamically detect endianess on IP and use ioread/iowrite functions instead of powerpc and microblaze specific out_be32. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v3: - New patch in this patchset based on discussions Changes in v2: None drivers/video/xilinxfb.c | 30

[PATCH v3 7/8] video: xilinxfb: Fix sparse warnings

2013-05-31 Thread Michal Simek
Use proper casting for fb_virt variable. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v3: - New patch in this patchset Changes in v2: None drivers/video/xilinxfb.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/drivers/video

[PATCH v3 5/8] video: xilinxfb: Group bus initialization

2013-05-31 Thread Michal Simek
Move of_address_to_resource() to xilinxfb_assign() which simplify driver probing. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v3: - New patch in this patchset Changes in v2: None drivers/video/xilinxfb.c | 56 +--- 1 file

[PATCH v3 4/8] video: xilinxfb: Use drvdata-regs_phys instead of physaddr

2013-05-31 Thread Michal Simek
physaddr will be remove in the next patch. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v3: - New patch in this patchset based on discussions Changes in v2: None drivers/video/xilinxfb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video

Re: [PATCH v3 1/8] video: xilinxfb: Fix OF probing on little-endian systems

2013-05-31 Thread Michal Simek
On 05/31/2013 03:05 PM, Timur Tabi wrote: On 05/31/2013 07:55 AM, Michal Simek wrote: -p = (u32 *)of_get_property(op-dev.of_node, xlnx,dcr-splb-slave-if, NULL); -tft_access = p ? *p : 0; +of_property_read_u32(op-dev.of_node, xlnx,dcr-splb-slave

Re: [PATCH v3 7/8] video: xilinxfb: Fix sparse warnings

2013-05-31 Thread Michal Simek
On 05/31/2013 03:26 PM, Timur Tabi wrote: On 05/31/2013 07:55 AM, Michal Simek wrote: diff --git a/drivers/video/xilinxfb.c b/drivers/video/xilinxfb.c index f3d4a69..e27a4f6 100644 --- a/drivers/video/xilinxfb.c +++ b/drivers/video/xilinxfb.c @@ -131,7 +131,7 @@ struct xilinxfb_drvdata

Re: [PATCH] of: Export of_irq_count for using in modules

2013-05-31 Thread Michal Simek
On 05/31/2013 01:00 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 10:14 Fri 31 May , Michal Simek wrote: Hi Jean-Christophe, On 05/30/2013 10:17 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 15:49 Thu 30 May , Michal Simek wrote: Export of_irq_count for modules. can you explain

Re: [PATCH v3 7/8] video: xilinxfb: Fix sparse warnings

2013-05-31 Thread Michal Simek
On 05/31/2013 03:41 PM, Timur Tabi wrote: On 05/31/2013 08:37 AM, Michal Simek wrote: The same is for Microblaze. Driver shares fb_virt for IO memory and for allocated memory. The purpose of this driver wasn't to change the driver logic just resolved sparse warnings. The other way is also

Re: [PATCH v3 7/8] video: xilinxfb: Fix sparse warnings

2013-05-31 Thread Michal Simek
this patchset. Thanks, Michal -- Michal Simek, Ing. (M.Eng), OpenPGP - KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/ Maintainer of Linux kernel - Xilinx Zynq ARM architecture Microblaze U-BOOT custodian and responsible

Re: [PATCH] of: Export of_irq_count for using in modules

2013-05-31 Thread Michal Simek
On 05/31/2013 05:16 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 15:57 Fri 31 May , Michal Simek wrote: On 05/31/2013 01:00 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 10:14 Fri 31 May , Michal Simek wrote: Hi Jean-Christophe, On 05/30/2013 10:17 PM, Jean-Christophe PLAGNIOL

[PATCH v4 0/7] xilinxfb changes

2013-06-03 Thread Michal Simek
patch in this patchset based on discussions - New patch in this patchset based on discussions - New patch in this patchset - New patch in this patchset based on discussions Changes in v2: - use of_property_read_u32 helper function Michal Simek (7): video: xilinxfb: Fix OF probing on little-endian

[PATCH v4 4/7] video: xilinxfb: Use drvdata-regs_phys instead of physaddr

2013-06-03 Thread Michal Simek
physaddr will be remove in the next patch. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v4: None Changes in v3: - New patch in this patchset based on discussions Changes in v2: None drivers/video/xilinxfb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH v4 1/7] video: xilinxfb: Fix OF probing on little-endian systems

2013-06-03 Thread Michal Simek
From: Michal Simek mon...@monstr.eu DTB is always big-endian that's why it is necessary to properly convert value (*p). It is automatically done in of_property_read_u32(). Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v4: None Changes in v3: - fix commit message Changes

[PATCH v4 5/7] video: xilinxfb: Group bus initialization

2013-06-03 Thread Michal Simek
Move of_address_to_resource() to xilinxfb_assign() which simplify driver probing. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v4: None Changes in v3: - New patch in this patchset Changes in v2: None drivers/video/xilinxfb.c | 56

[PATCH v4 7/7] video: xilinxfb: Use driver for Xilinx ARM Zynq

2013-06-03 Thread Michal Simek
From: Michal Simek mon...@monstr.eu Enable this driver for all Xilinx platforms. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v4: - Remove video: xilinxfb: Fix sparse warnings patch because it is trying to fix incorrect API usage and sparse should warn about

[PATCH v4 6/7] video: xilinxfb: Add support for little endian accesses

2013-06-03 Thread Michal Simek
Dynamically detect endianess on IP and use ioread/iowrite functions instead of powerpc and microblaze specific out_be32. Signed-off-by: Michal Simek michal.si...@xilinx.com Acked-by: Arnd Bergmann a...@arndb.de --- Changes in v4: - Acked by Arnd Changes in v3: - New patch in this patchset based

[PATCH v4 3/7] video: xilinxfb: Rename PLB_ACCESS_FLAG to BUS_ACCESS_FLAG

2013-06-03 Thread Michal Simek
Using only PLB name is wrong for a long time because the same access functions are also used for AXI. s/PLB/BUS/g Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v4: None Changes in v3: - New patch in this patchset based on discussions Changes in v2: None drivers/video

[PATCH v4 2/7] video: xilinxfb: Do not name out_be32 in function name

2013-06-03 Thread Michal Simek
out_be32 IO function is not supported by ARM. It is only available for PPC and Microblaze. Because this driver can be used on ARM let's remove out_be32 from function name. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v4: None Changes in v3: - Remove out_be IO name from

[PATCH v2 2/6] GPIO: xilinx: Add support for dual channel

2013-06-03 Thread Michal Simek
Supporting the second channel in the driver. Offset is 0x8 and both channnels share the same IRQ. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v2: - Use kernel doc format - suggested by Linus Walleij - Do not use __raw_readl/__raw_writel IO in this patch - Use

[PATCH v2 4/6] GPIO: xilinx: Use BIT macro

2013-06-03 Thread Michal Simek
Use BIT macro from linux/bitops.h. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v2: - New patch in this series suggested by Linus Valleij drivers/gpio/gpio-xilinx.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-xilinx.c

<    1   2   3   4   5   6   7   8   9   10   >