[PATCH 3/3] net: smsc911x: add u16 workaround for pxa platforms

2016-10-03 Thread Robert Jarzmik
Add a workaround for mainstone, idp and stargate2 boards, for u16 writes which must be aligned on 32 bits addresses. Signed-off-by: Robert Jarzmik --- Documentation/devicetree/bindings/net/smsc911x.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/net

[PATCH 2/3] net: smc91x: take into account half-word workaround

2016-10-03 Thread Robert Jarzmik
For device-tree builds, platforms such as mainstone, idp and stargate2 must have their u16 writes all aligned on 32 bit boundaries. This is already enabled in platform data builds, and this patch adds it to device-tree builds. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- d

[PATCH 2/3] net: smc91x: take into account half-word workaround

2016-10-03 Thread Robert Jarzmik
For device-tree builds, platforms such as mainstone, idp and stargate2 must have their u16 writes all aligned on 32 bit boundaries. This is already enabled in platform data builds, and this patch adds it to device-tree builds. Signed-off-by: Robert Jarzmik --- drivers/net/ethernet/smsc/smc91x.c

[PATCH 1/3] net: smc91x: isolate u16 writes alignment workaround

2016-10-03 Thread Robert Jarzmik
uild types. This patch was tested on 2 PXA platforms : mainstone, which relies on the workaround, and lubbock, which doesn't. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- drivers/net/ethernet/smsc/smc91x.c | 6 ++- drivers/net/ethernet/smsc/smc91x.h | 80 ++---

[PATCH 1/3] net: smc91x: isolate u16 writes alignment workaround

2016-10-03 Thread Robert Jarzmik
uild types. This patch was tested on 2 PXA platforms : mainstone, which relies on the workaround, and lubbock, which doesn't. Signed-off-by: Robert Jarzmik --- drivers/net/ethernet/smsc/smc91x.c | 6 ++- drivers/net/ethernet/smsc/smc91x.h | 80 ++ 2 files c

Re: [PATCH] dmaengine: pxa_dma: remove unused function

2016-09-29 Thread Robert Jarzmik
Baoyou Xie writes: > We get 1 warning when building kernel with W=1: > drivers/dma/pxa_dma.c:1525:5: warning: no previous prototype for > 'pxad_toggle_reserved_channel' [-Wmissing-prototypes] > > In fact, this function is called by no one, so this patch removes it. > >

Re: [PATCH] dmaengine: pxa_dma: remove unused function

2016-09-29 Thread Robert Jarzmik
Baoyou Xie writes: > We get 1 warning when building kernel with W=1: > drivers/dma/pxa_dma.c:1525:5: warning: no previous prototype for > 'pxad_toggle_reserved_channel' [-Wmissing-prototypes] > > In fact, this function is called by no one, so this patch removes it. > > Signed-off-by: Baoyou Xie

Re: [PATCH 0/4] kill get_clock_tick_rate()

2016-09-27 Thread Robert Jarzmik
Robert Jarzmik <robert.jarz...@free.fr> writes: >> Hi, >> >> This serie aims at killing get_clock_tick_rate() from pxa and sa1100 and >> replace >> it by clock API calls. >> >> I'd like to have this reviewed and acked afterwards at least by : &g

Re: [PATCH 0/4] kill get_clock_tick_rate()

2016-09-27 Thread Robert Jarzmik
Robert Jarzmik writes: >> Hi, >> >> This serie aims at killing get_clock_tick_rate() from pxa and sa1100 and >> replace >> it by clock API calls. >> >> I'd like to have this reviewed and acked afterwards at least by : >> - Russell for the mach-

Re: [PATCH] usb: Convert pr_warning to pr_warn

2016-09-27 Thread Robert Jarzmik
Joe Perches <j...@perches.com> writes: > Use the more common logging mechanism. > > Miscellanea: > > o Realign multiline statements > o Coalesce format > > Signed-off-by: Joe Perches <j...@perches.com> For pxa25x_udc.h: Acked-by: Robert Jarzmik <robert.jarz...@free.fr> Cheers. -- Robert

Re: [PATCH] usb: Convert pr_warning to pr_warn

2016-09-27 Thread Robert Jarzmik
Joe Perches writes: > Use the more common logging mechanism. > > Miscellanea: > > o Realign multiline statements > o Coalesce format > > Signed-off-by: Joe Perches For pxa25x_udc.h: Acked-by: Robert Jarzmik Cheers. -- Robert

Re: [PATCH v6] serial: rewrite pxa2xx-uart to use 8250_core

2016-09-27 Thread Robert Jarzmik
Greg Kroah-Hartman <gre...@linuxfoundation.org> writes: > On Tue, Sep 27, 2016 at 05:47:54PM +0200, Robert Jarzmik wrote: >> If you're overburdened and feel there won't be a merge conflict in your >> serial >> tree, I can take it through pxa tree provided you ack it,

Re: [PATCH v6] serial: rewrite pxa2xx-uart to use 8250_core

2016-09-27 Thread Robert Jarzmik
Greg Kroah-Hartman writes: > On Tue, Sep 27, 2016 at 05:47:54PM +0200, Robert Jarzmik wrote: >> If you're overburdened and feel there won't be a merge conflict in your >> serial >> tree, I can take it through pxa tree provided you ack it, or you can take it, >>

[PATCH v6 RESEND] serial: rewrite pxa2xx-uart to use 8250_core

2016-09-27 Thread Robert Jarzmik
e made mutually exclusive. Signed-off-by: Sergei Ianovich <ynv...@gmail.com> CC: Heikki Krogerus <heikki.kroge...@linux.intel.com> CC: James Cameron <qu...@laptop.org> CC: Greg Kroah-Hartman <gre...@linuxfoundation.org> CC: Robert Jarzmik <robert.jarz...@free.fr> CC:

[PATCH v6 RESEND] serial: rewrite pxa2xx-uart to use 8250_core

2016-09-27 Thread Robert Jarzmik
. Signed-off-by: Sergei Ianovich CC: Heikki Krogerus CC: James Cameron CC: Greg Kroah-Hartman CC: Robert Jarzmik CC: Russell King Reviewed-by: Heikki Krogerus [rebased on v4.8] Tested-by: Robert Jarzmik Signed-off-by: Robert Jarzmik --- drivers/tty/serial/8250/8250_pxa.c | 177

Re: [PATCH v6] serial: rewrite pxa2xx-uart to use 8250_core

2016-09-27 Thread Robert Jarzmik
Robert Jarzmik <robert.jarz...@free.fr> writes: >>> If so, great, get the platform maintainer to sign off on this please and >>> then resend it. > > If you're talking about the PXA maintainer, then : > Acked-by: Robert Jarzmik <robert.jarz...@free.fr> >

Re: [PATCH v6] serial: rewrite pxa2xx-uart to use 8250_core

2016-09-27 Thread Robert Jarzmik
Robert Jarzmik writes: >>> If so, great, get the platform maintainer to sign off on this please and >>> then resend it. > > If you're talking about the PXA maintainer, then : > Acked-by: Robert Jarzmik > > I'm happy with the patch, all pxa b

Re: [PATCH 0/4] kill get_clock_tick_rate()

2016-09-26 Thread Robert Jarzmik
Robert Jarzmik <robert.jarz...@free.fr> writes: > Hi, > > This serie aims at killing get_clock_tick_rate() from pxa and sa1100 and > replace > it by clock API calls. > > I'd like to have this reviewed and acked afterwards at least by : > - Russell for th

Re: [PATCH 0/4] kill get_clock_tick_rate()

2016-09-26 Thread Robert Jarzmik
Robert Jarzmik writes: > Hi, > > This serie aims at killing get_clock_tick_rate() from pxa and sa1100 and > replace > it by clock API calls. > > I'd like to have this reviewed and acked afterwards at least by : > - Russell for the mach-sa1100 and sa1100_wdt.c

[PATCH] ARM: pxa: fix pxa25x interrupt init

2016-09-26 Thread Robert Jarzmik
In the device-tree case, the root interrupt controller cannot be accessed through the 6th coprocessor, contrary to pxa27x and pxa3xx architectures. Fix it to behave as in non-devicetree builds. Fixes: 32f17997c130 ("ARM: pxa: remove irq init from dt machines") Signed-off-by: Robe

[PATCH] ARM: dts: pxa: fix gpio0 and gpio1 interrupts

2016-09-26 Thread Robert Jarzmik
is multiplexed on pxa_cplds for ethernet, sa, usb udc, and other devices. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- arch/arm/boot/dts/pxa2xx.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/pxa2xx.dtsi b/arch/arm/boot/dts/pxa2x

[PATCH] ARM: pxa: fix pxa25x interrupt init

2016-09-26 Thread Robert Jarzmik
In the device-tree case, the root interrupt controller cannot be accessed through the 6th coprocessor, contrary to pxa27x and pxa3xx architectures. Fix it to behave as in non-devicetree builds. Fixes: 32f17997c130 ("ARM: pxa: remove irq init from dt machines") Signed-off-by: Robe

[PATCH] ARM: dts: pxa: fix gpio0 and gpio1 interrupts

2016-09-26 Thread Robert Jarzmik
is multiplexed on pxa_cplds for ethernet, sa, usb udc, and other devices. Signed-off-by: Robert Jarzmik --- arch/arm/boot/dts/pxa2xx.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/pxa2xx.dtsi b/arch/arm/boot/dts/pxa2xx.dtsi index 3ff077ca4400

[PATCH] ARM: pxa: pxa_cplds: honor probe deferral

2016-09-26 Thread Robert Jarzmik
, platform_get_irq() doesn't honor the irq type IO resource (ie. edge rising for example), and it must be passed again at irq request in a not device-tree build, hence the irq_get_trigger_type() call. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- arch/arm/mach-pxa/pxa_cplds_irqs.

[PATCH] ARM: pxa: pxa_cplds: honor probe deferral

2016-09-26 Thread Robert Jarzmik
, platform_get_irq() doesn't honor the irq type IO resource (ie. edge rising for example), and it must be passed again at irq request in a not device-tree build, hence the irq_get_trigger_type() call. Signed-off-by: Robert Jarzmik --- arch/arm/mach-pxa/pxa_cplds_irqs.c | 11 --- 1 file changed, 4

[PATCH] net: smc91x: take into account register shift

2016-09-25 Thread Robert Jarzmik
This aligns smc91x with its cousin, namely smc911x.c. This also allows the driver to run also in a device-tree based lubbock board build, on which it was tested. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- drivers/net/ethernet/smsc/smc91x.c | 3 +++ 1 file changed, 3 inse

[PATCH] net: smc91x: take into account register shift

2016-09-25 Thread Robert Jarzmik
This aligns smc91x with its cousin, namely smc911x.c. This also allows the driver to run also in a device-tree based lubbock board build, on which it was tested. Signed-off-by: Robert Jarzmik --- drivers/net/ethernet/smsc/smc91x.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers

Re: linux-next: manual merge of the arm-soc tree with Linus' tree

2016-09-25 Thread Robert Jarzmik
Russell King - ARM Linux writes: > On Mon, Sep 05, 2016 at 10:58:03AM +1000, Stephen Rothwell wrote: >> I fixed it up (I deleted the file) and can carry the fix as >> necessary. This is now fixed as far as linux-next is concerned, but any >> non trivial conflicts should be

Re: linux-next: manual merge of the arm-soc tree with Linus' tree

2016-09-25 Thread Robert Jarzmik
Russell King - ARM Linux writes: > On Mon, Sep 05, 2016 at 10:58:03AM +1000, Stephen Rothwell wrote: >> I fixed it up (I deleted the file) and can carry the fix as >> necessary. This is now fixed as far as linux-next is concerned, but any >> non trivial conflicts should be mentioned to your

[PATCH 2/3] ARM: pxa: ezx: use the new pxa_camera platform_data

2016-09-23 Thread Robert Jarzmik
pxa_camera has transitioned from a soc_camera driver to a standalone v4l2 driver. Amend the device declaration accordingly. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- arch/arm/mach-pxa/ezx.c | 176 1 file changed, 72 inse

[PATCH 2/3] ARM: pxa: ezx: use the new pxa_camera platform_data

2016-09-23 Thread Robert Jarzmik
pxa_camera has transitioned from a soc_camera driver to a standalone v4l2 driver. Amend the device declaration accordingly. Signed-off-by: Robert Jarzmik --- arch/arm/mach-pxa/ezx.c | 176 1 file changed, 72 insertions(+), 104 deletions(-) diff

[PATCH 3/3] ARM: pxa: em-x270: use the new pxa_camera platform_data

2016-09-23 Thread Robert Jarzmik
pxa_camera has transitioned from a soc_camera driver to a standalone v4l2 driver. Amend the device declaration accordingly. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- arch/arm/mach-pxa/em-x270.c | 85 ++--- 1 file changed, 27 inse

[PATCH 3/3] ARM: pxa: em-x270: use the new pxa_camera platform_data

2016-09-23 Thread Robert Jarzmik
pxa_camera has transitioned from a soc_camera driver to a standalone v4l2 driver. Amend the device declaration accordingly. Signed-off-by: Robert Jarzmik --- arch/arm/mach-pxa/em-x270.c | 85 ++--- 1 file changed, 27 insertions(+), 58 deletions(-) diff

[PATCH 1/3] ARM: pxa: mioa701: use the new pxa_camera platform_data

2016-09-23 Thread Robert Jarzmik
pxa_camera has transitioned from a soc_camera driver to a standalone v4l2 driver. Amend the device declaration accordingly. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- arch/arm/mach-pxa/mioa701.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff

[PATCH 1/3] ARM: pxa: mioa701: use the new pxa_camera platform_data

2016-09-23 Thread Robert Jarzmik
pxa_camera has transitioned from a soc_camera driver to a standalone v4l2 driver. Amend the device declaration accordingly. Signed-off-by: Robert Jarzmik --- arch/arm/mach-pxa/mioa701.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-pxa/mioa701.c

[PATCH 2/2] media: mt9m111: add regulator support

2016-09-23 Thread Robert Jarzmik
plug in a gpio based or ldo regulator, mimicking their former soc_camera power hook. Fixes: 5c10113cc668 ("media: mt9m111: make a standalone v4l2 subdevice") Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- drivers/media/i2c/mt9m111.c | 14 ++ 1 file change

[PATCH 2/2] media: mt9m111: add regulator support

2016-09-23 Thread Robert Jarzmik
plug in a gpio based or ldo regulator, mimicking their former soc_camera power hook. Fixes: 5c10113cc668 ("media: mt9m111: make a standalone v4l2 subdevice") Signed-off-by: Robert Jarzmik --- drivers/media/i2c/mt9m111.c | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCH 1/2] media: platform: pxa_camera: add missing sensor power on

2016-09-23 Thread Robert Jarzmik
During sensors binding, there is a window where the sensor is switched off, while there is a call it to set a new format, which can end up in an access to the sensor, especially an I2C based sensor. Remove this window by activating the sensor. Signed-off-by: Robert Jarzmik <robert.j

[PATCH 1/2] media: platform: pxa_camera: add missing sensor power on

2016-09-23 Thread Robert Jarzmik
During sensors binding, there is a window where the sensor is switched off, while there is a call it to set a new format, which can end up in an access to the sensor, especially an I2C based sensor. Remove this window by activating the sensor. Signed-off-by: Robert Jarzmik --- drivers/media

Re: [PATCH] [media] platform: pxa_camera: add VIDEO_V4L2 dependency

2016-09-21 Thread Robert Jarzmik
.text.vb2_core_streamon+0x1b4): undefined reference to > `v4l_vb2q_enable_media_source' > drivers/media/v4l2-core/videobuf2-v4l2.o: In function `vb2_ioctl_reqbufs': > videobuf2-v4l2.c:(.text.vb2_ioctl_reqbufs+0xc): undefined reference to > `video_devdata' > > This adds back an explicit depen

Re: [PATCH] [media] platform: pxa_camera: add VIDEO_V4L2 dependency

2016-09-21 Thread Robert Jarzmik
reference to > `v4l_vb2q_enable_media_source' > drivers/media/v4l2-core/videobuf2-v4l2.o: In function `vb2_ioctl_reqbufs': > videobuf2-v4l2.c:(.text.vb2_ioctl_reqbufs+0xc): undefined reference to > `video_devdata' > > This adds back an explicit dependency. That looks right to me. Acked-by: Robert Jarzmik Cheers. -- Robert

Re: [PATCH 3/4] watchdog: sa11x0/pxa: get rid of get_clock_tick_rate

2016-09-20 Thread Robert Jarzmik
Guenter Roeck <li...@roeck-us.net> writes: > On 09/19/2016 03:36 PM, Russell King - ARM Linux wrote: >> On Mon, Sep 19, 2016 at 01:08:16PM -0700, Guenter Roeck wrote: >>> On Mon, Sep 19, 2016 at 09:12:14PM +0200, Robert Jarzmik wrote: >>>> The OS time

Re: [PATCH 3/4] watchdog: sa11x0/pxa: get rid of get_clock_tick_rate

2016-09-20 Thread Robert Jarzmik
Guenter Roeck writes: > On 09/19/2016 03:36 PM, Russell King - ARM Linux wrote: >> On Mon, Sep 19, 2016 at 01:08:16PM -0700, Guenter Roeck wrote: >>> On Mon, Sep 19, 2016 at 09:12:14PM +0200, Robert Jarzmik wrote: >>>> The OS timer rate used for the wa

[PATCH 4/4] ARM: sa11x0/pxa: get rid of get_clock_tick_rate

2016-09-19 Thread Robert Jarzmik
The last user of this function is gone, so remove it. The clock API should now be used to get clock rates. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- arch/arm/mach-pxa/generic.c | 15 --- arch/arm/mach-pxa/include/mach/hardware.h| 2 -- ar

[PATCH 3/4] watchdog: sa11x0/pxa: get rid of get_clock_tick_rate

2016-09-19 Thread Robert Jarzmik
The OS timer rate used for the watchdog can now be fetched from the standard clock API. This will remove the last user of get_clock_tick_rate() in both pxa and sa11x0 architectures. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- drivers/watchdog/sa1100_wdt.

[PATCH 4/4] ARM: sa11x0/pxa: get rid of get_clock_tick_rate

2016-09-19 Thread Robert Jarzmik
The last user of this function is gone, so remove it. The clock API should now be used to get clock rates. Signed-off-by: Robert Jarzmik --- arch/arm/mach-pxa/generic.c | 15 --- arch/arm/mach-pxa/include/mach/hardware.h| 2 -- arch/arm/mach-sa1100/include/mach

[PATCH 3/4] watchdog: sa11x0/pxa: get rid of get_clock_tick_rate

2016-09-19 Thread Robert Jarzmik
The OS timer rate used for the watchdog can now be fetched from the standard clock API. This will remove the last user of get_clock_tick_rate() in both pxa and sa11x0 architectures. Signed-off-by: Robert Jarzmik --- drivers/watchdog/sa1100_wdt.c | 24 +++- 1 file changed, 23

[PATCH 1/4] clk: pxa25x: OSTIMER0 clocks from the main oscillator

2016-09-19 Thread Robert Jarzmik
From: Russell King - ARM Linux <li...@armlinux.org.uk> The OSTIMER0 clock ticks at the main oscillator rate, not the 32kHz oscillator rate. Ensure that it is parented to the main oscillator. Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> Acked-by: Robert Jarzmik

[PATCH 1/4] clk: pxa25x: OSTIMER0 clocks from the main oscillator

2016-09-19 Thread Robert Jarzmik
From: Russell King - ARM Linux The OSTIMER0 clock ticks at the main oscillator rate, not the 32kHz oscillator rate. Ensure that it is parented to the main oscillator. Signed-off-by: Russell King Acked-by: Robert Jarzmik Tested-by: Robert Jarzmik --- drivers/clk/pxa/clk-pxa25x.c | 2 +- 1

[PATCH 2/4] ARM: sa11x0/pxa: acquire timer rate from the clock rate

2016-09-19 Thread Robert Jarzmik
As both pxa and sa1100 provide a clock to the timer, the rate can be inferred from the clock rather than hard encoded in a functional call. This patch changes the pxa timer to have a mandatory clock which is used as the timer rate. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> ---

[PATCH 2/4] ARM: sa11x0/pxa: acquire timer rate from the clock rate

2016-09-19 Thread Robert Jarzmik
As both pxa and sa1100 provide a clock to the timer, the rate can be inferred from the clock rather than hard encoded in a functional call. This patch changes the pxa timer to have a mandatory clock which is used as the timer rate. Signed-off-by: Robert Jarzmik --- arch/arm/mach-pxa/generic.c

[PATCH 0/4] kill get_clock_tick_rate()

2016-09-19 Thread Robert Jarzmik
for the clocksource part - Wim for sa1100_wdt.c If the review converges, I'd also like to take it through the pxa/for-next tree, or alternatively Russell's tree if there is a dependency I'm not seeing, for v4.10 cycle. Cheers. Robert Jarzmik (3): ARM: sa11x0/pxa: acquire timer rate from the clock rate

[PATCH 0/4] kill get_clock_tick_rate()

2016-09-19 Thread Robert Jarzmik
for the clocksource part - Wim for sa1100_wdt.c If the review converges, I'd also like to take it through the pxa/for-next tree, or alternatively Russell's tree if there is a dependency I'm not seeing, for v4.10 cycle. Cheers. Robert Jarzmik (3): ARM: sa11x0/pxa: acquire timer rate from the clock rate

Re: [PATCH 1/3] ARM: pxa: pxa_cplds: fix interrupt handling

2016-09-09 Thread Robert Jarzmik
Robert Jarzmik <robert.jarz...@free.fr> writes: > Since its initial commit, the driver is buggy for multiple interrupts > handling. The translation from the former lubbock.c file was not > complete, and might stall all interrupt handling when multiple > interrupts occur. >

Re: [PATCH 1/3] ARM: pxa: pxa_cplds: fix interrupt handling

2016-09-09 Thread Robert Jarzmik
Robert Jarzmik writes: > Since its initial commit, the driver is buggy for multiple interrupts > handling. The translation from the former lubbock.c file was not > complete, and might stall all interrupt handling when multiple > interrupts occur. > > This is especiall

[PATCH] MAINTAINERS: add pxa_camera driver

2016-09-06 Thread Robert Jarzmik
Add the pxa27x camera driver as a maintained driver. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0bbe4b105c34..0d6c29bf90bf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -

[PATCH] MAINTAINERS: add pxa_camera driver

2016-09-06 Thread Robert Jarzmik
Add the pxa27x camera driver as a maintained driver. Signed-off-by: Robert Jarzmik --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0bbe4b105c34..0d6c29bf90bf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9547,6 +9547,12 @@ F

[PATCH v6 11/14] media: platform: pxa_camera: add debug register access

2016-09-06 Thread Robert Jarzmik
Add pxa_camera registers access through advanced video debugging. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- drivers/media/platform/soc_camera/pxa_camera.c | 32 ++ 1 file changed, 32 insertions(+) diff --git a/drivers/media/platform/soc_

[PATCH v6 06/14] media: platform: pxa_camera: introduce sensor_call

2016-09-06 Thread Robert Jarzmik
Introduce sensor_call(), which will be used for all sensor invocations. This is a preparation move to v4l2 device conversion, ie. soc_camera adherence removal. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- drivers/media/platform/soc_camera/pxa_camera.

[PATCH v6 14/14] media: platform: pxa_camera: fix style

2016-09-06 Thread Robert Jarzmik
This is a tiny fix for a switch case which quiets 2 checkpatch harmless warnings. The generated code is not affected. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- drivers/media/platform/pxa_camera.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/pl

[PATCH v6 07/14] media: platform: pxa_camera: make printk consistent

2016-09-06 Thread Robert Jarzmik
Make all print consistent by always using : - dev_xxx(pcdev_to_dev(pcdev), ) This prepares the soc_camera adherence removal by making these call rely on only pcdev, and not the soc_camera icd structure. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- drivers/media/pl

[PATCH v6 11/14] media: platform: pxa_camera: add debug register access

2016-09-06 Thread Robert Jarzmik
Add pxa_camera registers access through advanced video debugging. Signed-off-by: Robert Jarzmik --- drivers/media/platform/soc_camera/pxa_camera.c | 32 ++ 1 file changed, 32 insertions(+) diff --git a/drivers/media/platform/soc_camera/pxa_camera.c b/drivers/media

[PATCH v6 06/14] media: platform: pxa_camera: introduce sensor_call

2016-09-06 Thread Robert Jarzmik
Introduce sensor_call(), which will be used for all sensor invocations. This is a preparation move to v4l2 device conversion, ie. soc_camera adherence removal. Signed-off-by: Robert Jarzmik --- drivers/media/platform/soc_camera/pxa_camera.c | 27 ++ 1 file changed, 15

[PATCH v6 14/14] media: platform: pxa_camera: fix style

2016-09-06 Thread Robert Jarzmik
This is a tiny fix for a switch case which quiets 2 checkpatch harmless warnings. The generated code is not affected. Signed-off-by: Robert Jarzmik --- drivers/media/platform/pxa_camera.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/pxa_camera.c b/drivers/media

[PATCH v6 07/14] media: platform: pxa_camera: make printk consistent

2016-09-06 Thread Robert Jarzmik
Make all print consistent by always using : - dev_xxx(pcdev_to_dev(pcdev), ) This prepares the soc_camera adherence removal by making these call rely on only pcdev, and not the soc_camera icd structure. Signed-off-by: Robert Jarzmik --- drivers/media/platform/soc_camera/pxa_camera.c | 70

[PATCH v6 12/14] media: platform: pxa_camera: change stop_streaming semantics

2016-09-06 Thread Robert Jarzmik
a "cancel capture" than a "wait for end of capture" semantic. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- drivers/media/platform/soc_camera/pxa_camera.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH v6 12/14] media: platform: pxa_camera: change stop_streaming semantics

2016-09-06 Thread Robert Jarzmik
a "cancel capture" than a "wait for end of capture" semantic. Signed-off-by: Robert Jarzmik --- drivers/media/platform/soc_camera/pxa_camera.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/soc_camera/pxa_camer

[PATCH v6 13/14] media: platform: pxa_camera: move pxa_camera out of soc_camera

2016-09-06 Thread Robert Jarzmik
As the conversion to a v4l2 standalone device is finished, move pxa_camera one directory up and finish severing any dependency to soc_camera. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- drivers/media/platform/Kconfig | 8 drivers/media/pl

[PATCH v6 13/14] media: platform: pxa_camera: move pxa_camera out of soc_camera

2016-09-06 Thread Robert Jarzmik
As the conversion to a v4l2 standalone device is finished, move pxa_camera one directory up and finish severing any dependency to soc_camera. Signed-off-by: Robert Jarzmik --- drivers/media/platform/Kconfig | 8 drivers/media/platform/Makefile

[PATCH v6 02/14] media: mt9m111: use only the SRGB colorspace

2016-09-06 Thread Robert Jarzmik
mt9m111 being a camera sensor, its colorspace should always be SRGB, for both RGB based formats or YCbCr based ones. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- drivers/media/i2c/soc_camera/mt9m111.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

[PATCH v6 02/14] media: mt9m111: use only the SRGB colorspace

2016-09-06 Thread Robert Jarzmik
mt9m111 being a camera sensor, its colorspace should always be SRGB, for both RGB based formats or YCbCr based ones. Signed-off-by: Robert Jarzmik --- drivers/media/i2c/soc_camera/mt9m111.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/i2c/soc_camera

[PATCH v6 01/14] media: mt9m111: make a standalone v4l2 subdevice

2016-09-06 Thread Robert Jarzmik
also drops support for inverters on synchronisation and clock lines. It is assumed, if any board ever needs such inverters, support for them can be added in the future Acked-by: Guennadi Liakhovetski <g.liakhovet...@gmx.de> Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- d

[PATCH v6 01/14] media: mt9m111: make a standalone v4l2 subdevice

2016-09-06 Thread Robert Jarzmik
also drops support for inverters on synchronisation and clock lines. It is assumed, if any board ever needs such inverters, support for them can be added in the future Acked-by: Guennadi Liakhovetski Signed-off-by: Robert Jarzmik --- drivers/media/i2c/soc_camera/mt9m111.c | 51

[PATCH v6 05/14] media: platform: pxa_camera: trivial move of functions

2016-09-06 Thread Robert Jarzmik
doesn't modify a single line of code. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- drivers/media/platform/soc_camera/pxa_camera.c | 473 + 1 file changed, 241 insertions(+), 232 deletions(-) diff --git a/drivers/media/platform/soc_camera/pxa_camera.c b/d

[PATCH v6 03/14] media: mt9m111: move mt9m111 out of soc_camera

2016-09-06 Thread Robert Jarzmik
As the mt9m111 is now working as a standalone v4l2 subdevice sensor, move it out of soc_camera directory and severe its dependency on soc_camera. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- drivers/media/i2c/Kconfig| 7 +++ drivers/media/i2c/Ma

[PATCH v6 09/14] media: platform: pxa_camera: remove set_selection

2016-09-06 Thread Robert Jarzmik
This is to be seen as a regression as the set_selection (former set_crop) function is removed. This is a temporary situation in the v4l2 porting, and will have to be added later. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- drivers/media/platform/soc_camera/pxa_camera.

[PATCH v6 05/14] media: platform: pxa_camera: trivial move of functions

2016-09-06 Thread Robert Jarzmik
doesn't modify a single line of code. Signed-off-by: Robert Jarzmik --- drivers/media/platform/soc_camera/pxa_camera.c | 473 + 1 file changed, 241 insertions(+), 232 deletions(-) diff --git a/drivers/media/platform/soc_camera/pxa_camera.c b/drivers/media/platform/soc_camera

[PATCH v6 03/14] media: mt9m111: move mt9m111 out of soc_camera

2016-09-06 Thread Robert Jarzmik
As the mt9m111 is now working as a standalone v4l2 subdevice sensor, move it out of soc_camera directory and severe its dependency on soc_camera. Signed-off-by: Robert Jarzmik --- drivers/media/i2c/Kconfig| 7 +++ drivers/media/i2c/Makefile | 1

[PATCH v6 09/14] media: platform: pxa_camera: remove set_selection

2016-09-06 Thread Robert Jarzmik
This is to be seen as a regression as the set_selection (former set_crop) function is removed. This is a temporary situation in the v4l2 porting, and will have to be added later. Signed-off-by: Robert Jarzmik --- drivers/media/platform/soc_camera/pxa_camera.c | 83 -- 1

[PATCH v6 04/14] media: platform: pxa_camera: convert to vb2

2016-09-06 Thread Robert Jarzmik
Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- drivers/media/platform/soc_camera/Kconfig | 4 +- drivers/media/platform/soc_camera/pxa_camera.c | 579 - 2 files changed, 269 insertions(+), 314 deletions(-) diff --git a/drivers/media/platform/soc_c

[PATCH v6 04/14] media: platform: pxa_camera: convert to vb2

2016-09-06 Thread Robert Jarzmik
Signed-off-by: Robert Jarzmik --- drivers/media/platform/soc_camera/Kconfig | 4 +- drivers/media/platform/soc_camera/pxa_camera.c | 579 - 2 files changed, 269 insertions(+), 314 deletions(-) diff --git a/drivers/media/platform/soc_camera/Kconfig b/drivers/medi

[PATCH v6 08/14] media: platform: pxa_camera: add buffer sequencing

2016-09-06 Thread Robert Jarzmik
Add sequence numbers to completed buffers. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- drivers/media/platform/soc_camera/pxa_camera.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/media/platform/soc_camera/pxa_camera.c b/drivers/media/platform/soc_

[PATCH v6 08/14] media: platform: pxa_camera: add buffer sequencing

2016-09-06 Thread Robert Jarzmik
Add sequence numbers to completed buffers. Signed-off-by: Robert Jarzmik --- drivers/media/platform/soc_camera/pxa_camera.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/media/platform/soc_camera/pxa_camera.c b/drivers/media/platform/soc_camera/pxa_camera.c index

[PATCH v6 10/14] media: platform: pxa_camera: make a standalone v4l2 device

2016-09-06 Thread Robert Jarzmik
ing. In a subsequence patch pxa_camera_mclk_ops should be used, and platform data MCLK ignored. It will be the sensor's duty to request the clock and enable it, which will end in pxa_camera_mclk_ops. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- drivers/media/platform/soc_camera/Kconfig

[PATCH v6 10/14] media: platform: pxa_camera: make a standalone v4l2 device

2016-09-06 Thread Robert Jarzmik
ing. In a subsequence patch pxa_camera_mclk_ops should be used, and platform data MCLK ignored. It will be the sensor's duty to request the clock and enable it, which will end in pxa_camera_mclk_ops. Signed-off-by: Robert Jarzmik --- drivers/media/platform/soc_camera/Kconfig | 2 +- drivers/me

Re: [PATCH v5 00/13] pxa_camera transition to v4l2 standalone device

2016-09-06 Thread Robert Jarzmik
Hans Verkuil <hverk...@xs4all.nl> writes: > On 08/29/2016 07:55 PM, Robert Jarzmik wrote: >> There is no change between v4 and v5, ie. the global diff is empty, only one >> line was shifted to prevent breaking bisectablility. > > Against which tree do you develop? Unfo

Re: [PATCH v5 00/13] pxa_camera transition to v4l2 standalone device

2016-09-06 Thread Robert Jarzmik
Hans Verkuil writes: > On 08/29/2016 07:55 PM, Robert Jarzmik wrote: >> There is no change between v4 and v5, ie. the global diff is empty, only one >> line was shifted to prevent breaking bisectablility. > > Against which tree do you develop? Unfortunately this patch se

Re: [PATCH 2/3] ARM: pxa: lubbock: add pcmcia clock

2016-09-05 Thread Robert Jarzmik
Russell King - ARM Linux <li...@armlinux.org.uk> writes: > On Mon, Sep 05, 2016 at 04:37:23PM +0200, Robert Jarzmik wrote: > From what I remember, the SA takes the 3.6864MHz clock input as an > input to its own PLL to generate the clocks it needs internally. All >

Re: [PATCH 2/3] ARM: pxa: lubbock: add pcmcia clock

2016-09-05 Thread Robert Jarzmik
Russell King - ARM Linux writes: > On Mon, Sep 05, 2016 at 04:37:23PM +0200, Robert Jarzmik wrote: > From what I remember, the SA takes the 3.6864MHz clock input as an > input to its own PLL to generate the clocks it needs internally. All > the PCMCIA timing is handled by the S

Re: [PATCH 2/3] ARM: pxa: lubbock: add pcmcia clock

2016-09-05 Thread Robert Jarzmik
Russell King - ARM Linux <li...@armlinux.org.uk> writes: > On Sun, Sep 04, 2016 at 08:59:46PM +0200, Robert Jarzmik wrote: >> Add the clock provided to the PCMCIA block so that sa_pcmcia_add() >> doesn't end up on error while probing "1800" device. > > I

Re: [PATCH 2/3] ARM: pxa: lubbock: add pcmcia clock

2016-09-05 Thread Robert Jarzmik
Russell King - ARM Linux writes: > On Sun, Sep 04, 2016 at 08:59:46PM +0200, Robert Jarzmik wrote: >> Add the clock provided to the PCMCIA block so that sa_pcmcia_add() >> doesn't end up on error while probing "1800" device. > > I don't think this is correct -

[PATCH 2/3] ARM: pxa: lubbock: add pcmcia clock

2016-09-04 Thread Robert Jarzmik
Add the clock provided to the PCMCIA block so that sa_pcmcia_add() doesn't end up on error while probing "1800" device. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- arch/arm/mach-pxa/lubbock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach

[PATCH 1/3] ARM: pxa: pxa_cplds: fix interrupt handling

2016-09-04 Thread Robert Jarzmik
mk+ker...@armlinux.org.uk> Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- arch/arm/mach-pxa/pxa_cplds_irqs.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-pxa/pxa_cplds_irqs.c b/arch/arm/mach-pxa/pxa_cplds_irqs.c inde

[PATCH 2/3] ARM: pxa: lubbock: add pcmcia clock

2016-09-04 Thread Robert Jarzmik
Add the clock provided to the PCMCIA block so that sa_pcmcia_add() doesn't end up on error while probing "1800" device. Signed-off-by: Robert Jarzmik --- arch/arm/mach-pxa/lubbock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-pxa/lubbock.c b/arch/arm/mach-pxa

[PATCH 1/3] ARM: pxa: pxa_cplds: fix interrupt handling

2016-09-04 Thread Robert Jarzmik
- if software sets status_xxx to 0, the D flip-flop is reset => status_xxx becomes 0 => on next FPGA clock cycle, if i_xxx is high, status_xxx becomes 1 again Fixes: fc9e38c0f4d3 ("ARM: pxa: lubbock: use new pxa_cplds driver") Reported-by: Russell King Signed

[PATCH 3/3] [DO_NOT_REVIEW] sa1111: left up to Russell King

2016-09-04 Thread Robert Jarzmik
In order to be able to cope with ordering problems, especially when the interrupt descriptor is allocated only after the sa is probed, add a workaround to "wait" for the interrupt chip to be available. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- arch/arm/com

[PATCH 3/3] [DO_NOT_REVIEW] sa1111: left up to Russell King

2016-09-04 Thread Robert Jarzmik
In order to be able to cope with ordering problems, especially when the interrupt descriptor is allocated only after the sa is probed, add a workaround to "wait" for the interrupt chip to be available. Signed-off-by: Robert Jarzmik --- arch/arm/common/sa.c | 4 1 file

[PATCH] pcmcia: sa1111: propagate error code

2016-09-01 Thread Robert Jarzmik
Propagate board initialization return code upwards, so that pcmcia_probe() can report a failure if occurs down the call chain. Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> --- drivers/pcmcia/sa_generic.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff

[PATCH] pcmcia: sa1111: propagate error code

2016-09-01 Thread Robert Jarzmik
Propagate board initialization return code upwards, so that pcmcia_probe() can report a failure if occurs down the call chain. Signed-off-by: Robert Jarzmik --- drivers/pcmcia/sa_generic.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/pcmcia

Re: [PATCH v5 01/13] media: mt9m111: make a standalone v4l2 subdevice

2016-08-30 Thread Robert Jarzmik
Guennadi Liakhovetski <g.liakhovet...@gmx.de> writes: > Hi Robert, > > On Mon, 29 Aug 2016, Robert Jarzmik wrote: > >> Remove the soc_camera adherence. Mostly the change removes the power >> manipulation provided by soc_camera, and instead : >> - powers on

<    4   5   6   7   8   9   10   11   12   13   >