Re: [PATCH] ARM: sunxi: add missing include for mdelay()

2012-11-30 Thread Maxime Ripard
-declaration] > > Signed-off-by: Josh Cartwright Acked-by: Maxime Ripard > --- > Fixes multiplatform build error seen with today's linux-next-20121129. > > arch/arm/mach-sunxi/sunxi.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/mach-sunx

Re: [PATCH] clocksource: use clockevents_config_and_register() where possible

2012-11-30 Thread Maxime Ripard
possible to make the codes less error prone > and gain some positive diff stat. > > Signed-off-by: Shawn Guo Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://fre

Re: [GIT PULL] ARM: arm-soc fixes for 3.8

2012-12-18 Thread Maxime Ripard
Hi Olof, Le 18/12/2012 07:55, Olof Johansson a écrit : > Maxime Ripard (1): > ARM: sunxi: Change device tree naming scheme for sunxi There's something odd about this one (commit 68136b10). The patch that you seem to have applied differs from the one I sent. The DTs files appe

Re: [PATCH] irqchip: irq-sunxi: Add terminating entry for sunxi_irq_dt_ids

2012-12-03 Thread Maxime Ripard
Le 02/12/2012 15:40, Axel Lin a écrit : > The of_device_id table is supposed to be zero-terminated. Applied, thanks. -- Maxime Ripard, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe f

Re: [PATCH] clocksource: sunxi_timer: Add terminating entry for sunxi_timer_dt_ids

2012-12-03 Thread Maxime Ripard
Le 02/12/2012 16:08, Axel Lin a écrit : > The of_device_id table is supposed to be zero-terminated. Applied, thanks -- Maxime Ripard, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from t

Re: [PATCH] ARM: sunxi: Include linux/delay.h

2012-12-03 Thread Maxime Ripard
/?p=linux/kernel/git/arm/arm-soc.git;a=commit;h=5e51651de30677f9d36805de9c261bf80f415790 Thanks, Maxime -- Maxime Ripard, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscr

[PATCH] USB: select USB_ARCH_HAS_EHCI for MXS

2013-01-10 Thread Maxime Ripard
Commit 09f6ffde introduced a dependency on USB_EHCI_HCD for the chipidea USB host driver, that in turns depends on USB_ARCH_HAS_EHCI. If this symbol is not set for MXS, the MXS boards are not able to use the chipidea driver anymore. Signed-off-by: Maxime Ripard --- drivers/usb/Kconfig |1

[PATCHv2] USB: select USB_ARCH_HAS_EHCI for MXS

2013-01-11 Thread Maxime Ripard
anymore. Signed-off-by: Maxime Ripard --- drivers/usb/Kconfig |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig index 4c90b51..640ae6c 100644 --- a/drivers/usb/Kconfig +++ b/drivers/usb/Kconfig @@ -37,6 +37,7 @@ config USB_ARCH_HAS_EHCI

Re: [PATCH 0/2] Add GPIO driver for Allwinner SoCs

2013-01-12 Thread Maxime Ripard
ge the dtsi update through arm-soc -- while you need >> both, nothing is broken by having just one or the other, so taking the >> separate merge paths are fine. >> >> Linus, Grant, sound ok to you? > > Sure. But I have requested a few changes to the patch set... And we n

Re: [PATCH 1/2] ARM: sunxi: gpio: Add Allwinner SoCs GPIO drivers

2013-01-12 Thread Maxime Ripard
Hi Linus, On 10/01/2013 12:06, Linus Walleij wrote: > On Fri, Jan 4, 2013 at 5:45 PM, Maxime Ripard > wrote: >> +static int __devinit >> +sunxi_pinctrl_register_gpio_ranges(struct sunxi_pinctrl *pctl) >> +{ >> + int id = 0, base = 0, npins = 1, i, pr

Re: [PATCH 1/7] clk: add common of_clk_init() function

2013-01-13 Thread Maxime Ripard
i and > drivers/clocksource by Stephen Warren. I finally had some time to test your changes on sunxi, and you can add for patches 1 and 3: Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and su

[PATCH] tty: 8250_dw: Fix inverted arguments to serial_out in IRQ handler

2013-01-14 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- drivers/tty/serial/8250/8250_dw.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c index 1d0dba2..096d2ef 100644 --- a/drivers/tty/serial/8250/8250_dw.c +++ b/drivers/tty

[PATCH] ARM: sunxi: Use the Synosys APB UART instead of ns8250

2013-01-14 Thread Maxime Ripard
The UART controller used in the A10/A13 is the Synopsys DesignWare 8250. The wrong use of a regular 8250 driver may lead to a oops during kernel boot with "irq 17: nobody cared", because the apb UART as an extra interrupt that gets raised when writing to the LCR when busy. Signed-off-

[PATCH 0/2] Add GPIO driver for Allwinner SoCs

2013-01-04 Thread Maxime Ripard
Hi, This patch adds support for the GPIOs for the Allwinner SoCs supported so far. It comes on top of my previous pinctrl patchset, and has been tested on a A13-Olinuxino from Olimex. Thanks, Maxime Maxime Ripard (2): ARM: sunxi: gpio: Add Allwinner SoCs GPIO drivers ARM: sunxi: Add the

[PATCH 1/2] ARM: sunxi: gpio: Add Allwinner SoCs GPIO drivers

2013-01-04 Thread Maxime Ripard
need to probe a generic driver to handle the banks available for each SoC. This driver has been tested on a A13-Olinuxino. Signed-off-by: Maxime Ripard --- .../devicetree/bindings/gpio/gpio-sunxi.txt| 77 ++ drivers/gpio/Kconfig |6 + drivers

[PATCH 2/2] ARM: sunxi: Add the GPIOs node to the device tree

2013-01-04 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun5i-a13.dtsi | 51 ++ 1 file changed, 51 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-a13.dtsi b/arch/arm/boot/dts/sun5i-a13.dtsi index e112189..dc650a6 100644 --- a/arch/arm/boot/dts/sun5i-a13.dtsi

Re: [PATCH 1/3] gpio: pca953x: make the register access by GPIO bank

2013-01-07 Thread Maxime Ripard
n IRC, it seems that the fix would be to replace all the calls to fls(chip->gpio_chip.ngpio) by fls(chip->gpio_chip.ngpio - 1). Also, all the irq handling is not compiling anymore for trivial errors (variables not defined, incompatible types, etc.). So obviously, I couldn't test the changes you ma

Re: [PATCH V2 1/3] gpio: pca953x: make the register access by GPIO bank

2013-01-08 Thread Maxime Ripard
ath_null+0x1c/0x24) from [] (irq_domain_legacy_revmap+0x2c/0x48) [ 30.821187] [] (irq_domain_legacy_revmap+0x2c/0x48) from [] (pca953x_irq_handler+0x16c/0x1ac) [ 30.831656] [] (pca953x_irq_handler+0x16c/0x1ac) from [] (irq_thread+0xd0/0x124) [ 30.841000] [] (irq_thread+0xd0/0x124) from [] (

Re: [PATCH V2 1/3] gpio: pca953x: make the register access by GPIO bank

2013-01-08 Thread Maxime Ripard
Hi Gregory, On 08/01/2013 09:58, Gregory CLEMENT wrote: > On 01/08/2013 09:32 AM, Maxime Ripard wrote: >> On 07/01/2013 23:51, Gregory CLEMENT wrote: >>> static irqreturn_t pca953x_irq_handler(int irq, void *devid) >>> { >>> struct pca953x_chi

[PATCH 1/7] pinctrl: pinconf-generic: add drive strength parameter

2013-01-08 Thread Maxime Ripard
Some pin configurations IP allows to set the current output to the pin. This patch adds such a parameter to the pinconf-generic mechanism. This parameter takes as argument the drive strength in mA. Signed-off-by: Maxime Ripard --- include/linux/pinctrl/pinconf-generic.h |3 +++ 1 file

[PATCH 2/7] ARM: sunxi: Add pinctrl driver for Allwinner SoCs

2013-01-08 Thread Maxime Ripard
gpio part will come eventually. Signed-off-by: Maxime Ripard --- .../bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 60 +++ arch/arm/mach-sunxi/Kconfig|1 + drivers/pinctrl/Kconfig|5 + drivers/pinctrl/Makefile

[PATCH 4/7] ARM: sunxi: Add pinctrl node to the device tree

2013-01-08 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun5i-a13.dtsi |9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-a13.dtsi b/arch/arm/boot/dts/sun5i-a13.dtsi index 59a2d26..707bef5 100644 --- a/arch/arm/boot/dts/sun5i-a13.dtsi +++ b/arch/arm/boot/dts/sun5i

[PATCH 7/7] ARM: sunxi: olinuxino: Add muxing for the uart

2013-01-08 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun5i-a13-olinuxino.dts |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-a13-olinuxino.dts b/arch/arm/boot/dts/sun5i-a13-olinuxino.dts index 498a091..4a1e45d 100644 --- a/arch/arm/boot/dts/sun5i-a13-olinuxino.dts

[PATCH 6/7] tty: of_serial: Add pinctrl support

2013-01-08 Thread Maxime Ripard
Use pinctrl to configure the SoCs pins directly from the driver. Signed-off-by: Maxime Ripard --- drivers/tty/serial/of_serial.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/tty/serial/of_serial.c b/drivers/tty/serial/of_serial.c index e7cae1c..e9f3289 100644 --- a

[PATCH 3/7] ARM: pinctrl: sunxi: Add the pinctrl pin set for sun5i

2013-01-08 Thread Maxime Ripard
Since the Allwinner SoCs variants don't have the same set of pins to handle, we need to declare the pin ranges available. Signed-off-by: Maxime Ripard --- drivers/pinctrl/pinctrl-sunxi.c | 253 +++ 1 file changed, 253 insertions(+) diff --git a/dr

[PATCH 5/7] ARM: sunxi: Add uart1 pinctrl groups

2013-01-08 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun5i-a13.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-a13.dtsi b/arch/arm/boot/dts/sun5i-a13.dtsi index 707bef5..e112189 100644 --- a/arch/arm/boot/dts/sun5i-a13.dtsi +++ b/arch/arm/boot/dts

Re: [PATCH 2/2] Add sunxi-sid to dts for sun4i, sun5i and sun7i

2013-08-27 Thread Maxime Ripard
t;allwinner,sun7i-sid"; I'd prefer to have sun7i-a20-sid here. We usually mention the soc name as well in the compatible when it's not the good ol' A10. > + reg = <0x01c23800 0x200>; > + }; > + > + Drop the extra line Thanks, Maxi

Re: [PATCH 1/2] Initial support for Allwinner's Security ID fuses

2013-08-27 Thread Maxime Ripard
ize = sid_data->keysize; /* ugly */ Ugly? Why? > + if (device_create_bin_file(&pdev->dev, &sid_bin_attr)) /* fixme */ And what is there to fix here? For these two comments, either explain what you find so ugly/broken so that someone reading your code can get what is wrong, or just remove them, because keeping them like that is just confusing. Maxime > + return -ENODEV; > + > + entropy = kzalloc(sizeof(u8) * sid_data->keysize, GFP_KERNEL); > + for (i = 0; i < sid_data->keysize; i++) > + entropy[i] = sunxi_sid_read_byte(sid_data, i); > + add_device_randomness(entropy, sid_data->keysize); > + kfree(entropy); > + > + dev_dbg(&pdev->dev, "loaded\n"); > + > + return 0; > +} > + > +static struct platform_driver sunxi_sid_driver = { > + .probe = sunxi_sid_probe, > + .remove = sunxi_sid_remove, > + .driver = { > + .name = DRV_NAME, > + .owner = THIS_MODULE, > + .of_match_table = sunxi_sid_of_match, > + /* .groups = sunxi_sid_groups, proper way */ > + }, > +}; > +module_platform_driver(sunxi_sid_driver); > + > +MODULE_AUTHOR("Oliver Schinagl "); > +MODULE_DESCRIPTION("Allwinner sunxi security id driver"); > +MODULE_LICENSE("GPL"); > -- > 1.8.1.5 > -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature

Re: [PATCH] net: mdio-sun4i: Convert to devm_* api

2013-08-28 Thread Maxime Ripard
> of the of_iomap(). > > Signed-off-by: Jisheng Zhang It looks fine for me. Acked-by: Maxime Ripard Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature

Re: [PATCH] pinctrl: sunxi: drop lock on error path

2013-08-30 Thread Maxime Ripard
erman Yin > Cc: Maxime Ripard > Signed-off-by: Linus Walleij Acked-by: Maxime Ripard -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature

[PATCH 0/2] clk: sunxi: Add support for the A20 clocks

2013-08-17 Thread Maxime Ripard
and the associated documentation for the A20. Thanks, Maxime Maxime Ripard (2): clk: sunxi: Add Allwinner A20 gates ARM: sun7i: Enable the A20 clocks in the DTSI Documentation/devicetree/bindings/clock/sunxi.txt | 3 + .../bindings/clock/sunxi/sun7i-a20-gates.txt | 98

[PATCH 2/2] ARM: sun7i: Enable the A20 clocks in the DTSI

2013-08-17 Thread Maxime Ripard
Now that the clock driver knows about the available clocks found on the A20, we can build up the clock tree from the device tree. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun7i-a20.dtsi | 126 +++ 1 file changed, 116 insertions(+), 10 deletions

[PATCH 1/2] clk: sunxi: Add Allwinner A20 gates

2013-08-17 Thread Maxime Ripard
need to register different clock gates for the A20. Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/clock/sunxi.txt | 3 + .../bindings/clock/sunxi/sun7i-a20-gates.txt | 98 ++ drivers/clk/sunxi/clk-sunxi.c | 15 3 files ch

Re: [PATCHv3 07/10] pinctrl: sunxi: Add Allwinner A31 pins set

2013-08-19 Thread Maxime Ripard
On Mon, Aug 12, 2013 at 10:19:16AM +0200, Maxime Ripard wrote: > Hi Linus, > > On Sun, Aug 04, 2013 at 11:47:34AM +0200, Maxime Ripard wrote: > > The Allwinner A31 SoC uses the same IP than the one found in the > > A10/A13, with only different pins. Add the pins and the ass

Re: [PATCHv3 5/9] pinctrl: sunxi: Fix inconsistent indentation

2013-08-19 Thread Maxime Ripard
On Mon, Aug 12, 2013 at 10:27:49AM +0200, Maxime Ripard wrote: > Hi Linus, > > On Sun, Aug 04, 2013 at 11:58:46AM +0200, Maxime Ripard wrote: > > Some pin functions in the array were not indented like the other > > functions in this array. Fix this. > > Could you ple

Re: [PATCHv3 4/9] pinctrl: sunxi: Add Allwinner A20 pins set

2013-08-19 Thread Maxime Ripard
On Mon, Aug 12, 2013 at 10:33:19AM +0200, Maxime Ripard wrote: > Hi Linus, > > On Sun, Aug 04, 2013 at 11:58:45AM +0200, Maxime Ripard wrote: > > The Allwinner A20 is pin-compatible with the older A10, so the two pin > > set are quite similar. However, since the A20 has n

Re: [PATCHv3 3/4] clk: sunxi: Add A31 clocks support

2013-08-19 Thread Maxime Ripard
Hi Emilio, On Mon, Aug 19, 2013 at 05:14:57PM -0300, Emilio López wrote: > El 05/08/13 17:43, Maxime Ripard escribió: > >The A31 has a mostly different clock set compared to the other older > >SoCs currently supported in the Allwinner clock driver. > > > >Add support

Re: [PATCH] ARM: sunxi: change the AllWinner A1X to sunxi

2014-01-15 Thread Maxime Ripard
quot;Allwinner Sunxi SOCs" if ARCH_MULTI_V7 I wonder if the sunxi (apart the weird letter case) is actually needed. Maybe we can just put "Allwinner SoCs" (it would be great if you could fix the SoCs case too). Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linu

[PATCH 1/5] fb: hx8357: Change parameters of the write function to u8

2013-02-13 Thread Maxime Ripard
Moving from void* to u8* removes the need for castslater on in the function. Signed-off-by: Maxime Ripard --- drivers/video/backlight/hx8357.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/backlight/hx8357.c b/drivers/video/backlight/hx8357.c index

[PATCH 3/5] fb: hx8357: Remove useless error message

2013-02-13 Thread Maxime Ripard
In case of a failing allocation, a dump stack will be printed anyway, so the dev_err is redundant. Signed-off-by: Maxime Ripard --- drivers/video/backlight/hx8357.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/backlight/hx8357.c b/drivers/video

[PATCH 5/5] fb: hx8357: Use static arrays for LCD configuration

2013-02-13 Thread Maxime Ripard
This allows a smaller and less error-prone code by using static arrays and the ARRAY_SIZE macro. Signed-off-by: Maxime Ripard --- drivers/video/backlight/hx8357.c | 173 +- 1 file changed, 95 insertions(+), 78 deletions(-) diff --git a/drivers/video

[PATCH 4/5] fb: hx8357: Remove trailing period

2013-02-13 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- drivers/video/backlight/hx8357.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/hx8357.c b/drivers/video/backlight/hx8357.c index 7c82561..6da8ebe 100644 --- a/drivers/video/backlight/hx8357.c +++ b/drivers/video

[PATCH 2/5] fb: hx8357: Fix inverted parameters for kcalloc

2013-02-13 Thread Maxime Ripard
The element size and the number of elements was inverted in the kcalloc call. Signed-off-by: Maxime Ripard --- drivers/video/backlight/hx8357.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/hx8357.c b/drivers/video/backlight/hx8357.c index

Re: [PATCH v3 2/2] i2c: New bus driver for the Qualcomm QUP I2C controller

2014-02-21 Thread Maxime Ripard
up->dev, MSEC_PER_SEC); > + pm_runtime_use_autosuspend(qup->dev); > + pm_runtime_enable(qup->dev); Since the device is already woken up, you probably need to call pm_runtime_set_active here. Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-elect

Re: [PATCH v7 5/8] ARM: dts: sun7i: Add support for mmc

2014-02-21 Thread Maxime Ripard
On Tue, Feb 18, 2014 at 04:10:38PM +0100, Hans de Goede wrote: > Hi, > > On 02/18/2014 03:22 PM, Maxime Ripard wrote: > >On Mon, Feb 17, 2014 at 11:02:41AM +0100, David Lanzendörfer wrote: > >>Signed-off-by: David Lanzendörfer > >>Signed-off-by: Hans de Goede

Re: [PATCH v7 4/8] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-02-22 Thread Maxime Ripard
gt;> > >> Nope, we only need this to get the data on sunxi_mmc_remove, > >> everywhere else the data is found through the mmc-host struct. > > > > Still, if anyone makes a following patch using the platform_device > > for some reason, we will have a race condition, without any way to > > notice it. > > > > Plus, you're doing all the other bits of initialization of your > > structures much earlier, why not be consistent and having all of > > them at the same place? > > Most platform drivers I've worked on do platform_set_drvdata as late > as possible, so that the drvdata does not get set and never cleared > in error paths. You don't actually have to clear it, and some frameworks actually require you to call dev_set_drvdata before registration, so that statement looks quite odd to me. Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature

Re: [PATCH v7 8/8] ARM: sunxi: Add documentation for driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-02-22 Thread Maxime Ripard
her. > I can throw in a line for refering to the mmc slot gpio lib docs. Yes, that would be great :) > > Isn't the cd-gpios property requested too? > I can refer to the docs there as well if you like... :-) That would be great too :) Thanks! Maxime -- Maxime Ripard, Free Electrons

[PATCH 5/7] ARM: dt: sun5i: Add A13 SPI controller nodes

2014-02-22 Thread Maxime Ripard
The A13 has 3 SPI controllers compatible with the one found in the A10. Add them in the DT. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun5i-a13.dtsi | 33 + 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-a13.dtsi b/arch/arm/boot

[PATCH 1/7] spi: sunxi: Add Allwinner A10 SPI controller driver

2014-02-22 Thread Maxime Ripard
controllers in a single driver would be unreasonable, hence the addition of a new driver. Like its more recent counterpart, it supports DMA, but the driver only does PIO until we have a dmaengine driver for this platform. Signed-off-by: Maxime Ripard --- .../devicetree/bindings/spi/spi-sun4i.txt

[PATCH 4/7] ARM: dt: sun5i: Add A10s SPI controller nodes

2014-02-22 Thread Maxime Ripard
The A10s has 3 SPI controllers compatible with the one found in the A10. Add them in the DT. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun5i-a10s.dtsi | 33 + 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-a10s.dtsi b/arch/arm

[PATCH 3/7] ARM: dt: sun4i: Add A10 SPI controller nodes

2014-02-22 Thread Maxime Ripard
The A10 has 4 SPI controllers that are now supported. Add them in the DT. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun4i-a10.dtsi | 44 1 file changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i

[PATCH 0/7] Add Allwinner A10 SPI Controller Driver

2014-02-22 Thread Maxime Ripard
doesn't support transfer larger than the FIFO size (64 bytes) for now, It's one of the things that will be fixed whenever we will have DMA support. Thanks! Maxime Maxime Ripard (7): spi: sunxi: Add Allwinner A10 SPI controller driver ARM: dt: sun7i: Add A20 SPI controller nodes

[PATCH 2/7] ARM: dt: sun7i: Add A20 SPI controller nodes

2014-02-22 Thread Maxime Ripard
The A20 has 4 SPI controllers compatible with the one found in the A10. Add them in the DT. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun7i-a20.dtsi | 44 1 file changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm

[PATCH 7/7] ARM: dts: sun7i: Enable the SPI controllers of the A20-olinuxino-micro

2014-02-22 Thread Maxime Ripard
The A20-Olinuxino-micro has two SPI bus exposed on its UEXT connectors, enable them. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts b/arch

[PATCH 6/7] ARM: dt: sun7i: Add SPI muxing options

2014-02-22 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun7i-a20.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index 0f0ee58..6161fd8 100644 --- a/arch/arm/boot/dts/sun7i-a20.dtsi +++ b/arch/arm/boot/dts

Re: [PATCH 1/7] spi: sunxi: Add Allwinner A10 SPI controller driver

2014-02-24 Thread Maxime Ripard
Hi, On Sun, Feb 23, 2014 at 11:15:30AM +0900, Mark Brown wrote: > On Sat, Feb 22, 2014 at 10:35:53PM +0100, Maxime Ripard wrote: > > The older Allwinner SoCs (A10, A13, A10s and A20) all have the > > same SPI controller. > > Applied, thanks. Please differentiate between

Re: [PATCH 0/7] Add Allwinner A10 SPI Controller Driver

2014-02-24 Thread Maxime Ripard
On Sat, Feb 22, 2014 at 10:35:52PM +0100, Maxime Ripard wrote: > Hi, > > This patchset brings support for the SPI controller found in the > Allwinner A10 and derived SoCs. > > Even though the controller supports DMA, the driver only supports PIO > mode for now. This driver

[PATCH 4/5] DMA: sun6i: Add driver for the Allwinner A31 DMA controller

2014-02-24 Thread Maxime Ripard
troller is able to memory-to-memory or memory-to-device transfers on the 16 channels in parallel. Signed-off-by: Maxime Ripard --- .../devicetree/bindings/dma/sun6i-dma.txt | 45 + drivers/dma/Kconfig| 8 + drivers/dma/Makefile

[PATCH 3/5] clk: sun6i: Protect SDRAM gating bit

2014-02-24 Thread Maxime Ripard
Prevent the SDRAM controller from being gated by force-enabling it in the clock driver. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi/clk-sunxi.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c index 6cfcd23..d9b4a41

[PATCH 5/5] ARM: sun6i: dt: Add A31 DMA controller to DTSI

2014-02-24 Thread Maxime Ripard
Now that we have a DMA driver, we can add the DMA bindings in the DTSI for the controller and the devices supported that can use DMA. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun6i-a31.dtsi | 29 + 1 file changed, 29 insertions(+) diff --git a/arch/arm

[PATCH 0/5] Add support for the Allwinner A31 DMA Controller

2014-02-24 Thread Maxime Ripard
Hi, This patchset adds support for the DMA controller found in the Allwinner A31 and A23 SoCs. This has been tested using the newly introduced SPI driver on an A31 EVK. Support for DMA-driven SPI transfers will be the subject of another patch serie. Thanks, Maxime Maxime Ripard (5): clk

[PATCH 2/5] clk: sun6i: Reparent AHB clock on PLL6

2014-02-24 Thread Maxime Ripard
In order for the DMA controller to work for SDRAM to devices transfers, the AHB clock should be reparented on the PLL6. Force that parenting in the clock driver. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi/clk-sunxi.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion

[PATCH 1/5] clk: sun6i: Protect CPU clock

2014-02-24 Thread Maxime Ripard
Right now, AHB is an indirect child clock of the CPU clock. If that happens to change, since the CPU clock has no other consumers declared in Linux, it would be shut down, which is not really a good idea. Prevent this by forcing it enabled. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi

[PATCH] spi: core: Fix Oops in spi_pump_messages error path

2014-02-17 Thread Maxime Ripard
off-by: Maxime Ripard Cc: sta...@vger.kernel.org --- drivers/spi/spi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 23756b0..39f12be 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -756,8 +756,6 @@ static void spi_pump_messages(

Re: [PATCH] spi: core: Fix Oops in spi_pump_messages error path

2014-02-17 Thread Maxime Ripard
Hi Geert, On Mon, Feb 17, 2014 at 07:02:09PM +0100, Geert Uytterhoeven wrote: > On Mon, Feb 17, 2014 at 6:20 PM, Maxime Ripard > wrote: > > When the generic implementation of the transfer_one_message callback was > > called > > by the spi_pump_messages function, if t

Re: [PATCH v7 1/8] clk: sunxi: factors: automatic reparenting support

2014-02-18 Thread Maxime Ripard
ed it, you can add my Acked-by Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature

Re: [PATCH v7 3/8] ARM: sunxi: clk: export clk_sunxi_mmc_phase_control

2014-02-18 Thread Maxime Ripard
On Mon, Feb 17, 2014 at 11:02:28AM +0100, David Lanzendörfer wrote: > From: Hans de Goede > > Signed-off-by: Hans de Goede Again, your SoB is missing, and that can be squashed with the previous patch. -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering ht

Re: [PATCH v7 2/8] clk: sunxi: Implement MMC phase control

2014-02-18 Thread Maxime Ripard
ework road, some documentation on what are the arguments it takes and what it's supposed to return would be great. Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature

Re: [PATCH v7 5/8] ARM: dts: sun7i: Add support for mmc

2014-02-18 Thread Maxime Ripard
pio: pinctrl@01c20800 { > compatible = "allwinner,sun7i-a20-pinctrl"; > reg = <0x01c20800 0x400>; > @@ -432,6 +472,27 @@ > allwinner,drive = <0>; > allwinner,pull = <0>;

Re: [PATCH v7 4/8] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-02-18 Thread Maxime Ripard
efine SDXC_END_BIT_ERROR BIT(15) > +#define SDXC_SDIO_INTERRUPT BIT(16) > +#define SDXC_CARD_INSERT BIT(30) > +#define SDXC_CARD_REMOVE BIT(31) > +#define SDXC_INTERRUPT_ERROR_BIT (SDXC_RESP_ERROR | > SDXC_RESP_CRC_ERROR | \

Re: [PATCH v7 8/8] ARM: sunxi: Add documentation for driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-02-18 Thread Maxime Ripard
;&mmc0_clk>; > + clock-names = "ahb", "mod"; You never talked about the clock-names property, and which clocks were supposed to be provided. > + interrupts = <0 32 4>; > + bus-width = <4>; And you never talked about bus-width either. > + status = "disabled"; > +}; > Isn't the cd-gpios property requested too? -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature

Re: [PATCH v7 4/8] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-02-19 Thread Maxime Ripard
Hi Hans, On Tue, Feb 18, 2014 at 09:49:21PM +0100, Hans de Goede wrote: > Hi, > > On 02/18/2014 04:37 PM, Maxime Ripard wrote: > > > > >>+ > >>+ for (i = 0; i < data->sg_len; i++) { > >>+ pdes[i

Re: [PATCHv2 1/8] ARM: at91: Add at91sam9rl DT SoC support

2014-02-20 Thread Maxime Ripard
t-address should go, and the names made unique through other means. What do you suggest to make the name unique then? The ePAPR is pretty clear that the above is the way to go, so I'm unclear on what you have in mind here. Plus, I haven't seen anywhere that reg was actually mandatory. Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature

Re: [PATCH] pinctrl: sunxi: use chained_irq_{enter, exit} for GIC compatibility

2014-02-12 Thread Maxime Ripard
stem to hang. > > Cc: sta...@vger.kernel.org > Signed-off-by: Chen-Yu Tsai Acked-by: Maxime Ripard Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature

[PATCH 4/4] ARM: sun6i: dt: Add SPI controllers to the A31 DTSI

2014-01-16 Thread Maxime Ripard
The A31 has 4 SPI controllers. Add them in the DTSI. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun6i-a31.dtsi | 40 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi index ae058eb

[PATCH 0/4] Add Allwinner A31 SPI controller support

2014-01-16 Thread Maxime Ripard
doesn't support transfer larger than the FIFO size (128 bytes) for now, so this is kind of a blocker against inclusion, but I expect it to be fixed by v2. Thanks! Maxime Maxime Ripard (4): clk: sunxi: Add support for PLL6 on the A31 ARM: sun6i: dt: Add PLL6 and SPI module clocks spi: sunxi

[PATCH 1/4] clk: sunxi: Add support for PLL6 on the A31

2014-01-16 Thread Maxime Ripard
The A31 has a slightly different PLL6 clock. Add support for this new clock in our driver. Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/clk-sunxi.c | 45 +++ 2 files changed, 46 insertions

[PATCH 2/4] ARM: sun6i: dt: Add PLL6 and SPI module clocks

2014-01-16 Thread Maxime Ripard
The module clocks in the A31 are still compatible with the A10 one. Add the SPI module clocks and the PLL6 in the device tree to allow their use by the SPI controllers. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun6i-a31.dtsi | 48 +++- 1 file

[PATCH 3/4] spi: sunxi: Add Allwinner A31 SPI controller driver

2014-01-16 Thread Maxime Ripard
The Allwinner A31 has a new SPI controller IP compared to the older Allwinner SoCs. It supports DMA, but the driver only does PIO for now, and DMA will be supported eventually. Signed-off-by: Maxime Ripard --- .../devicetree/bindings/spi/spi-sun6i.txt | 23 + drivers/spi/Makefile

Re: [PATCH 3/4] spi: sunxi: Add Allwinner A31 SPI controller driver

2014-01-16 Thread Maxime Ripard
Hi Mark, On Thu, Jan 16, 2014 at 07:40:03PM +, Mark Brown wrote: > On Thu, Jan 16, 2014 at 06:11:24PM +0100, Maxime Ripard wrote: > > Looks pretty clean, a few fairly small things below. > > > +- clocks: phandle to the clocks feeding the SPI controller. Two are >

Re: [PATCH] ARM: sunxi: change the AllWinner A1X to sunxi

2014-01-17 Thread Maxime Ripard
Hi Arnd, On Wed, Jan 15, 2014 at 10:40:56AM +0100, Arnd Bergmann wrote: > On Wednesday 15 January 2014 10:10:06 Maxime Ripard wrote: > > On Thu, Jan 09, 2014 at 04:34:04PM +0100, Gerardo Di Iorio wrote: > > > Change the AllWinner A1X SOCs to Allwinner Sunxi SOCs > >

Re: [PATCH 2/4] ARM: sun6i: dt: Add PLL6 and SPI module clocks

2014-01-17 Thread Maxime Ripard
Hi Josh, On Thu, Jan 16, 2014 at 12:15:28PM -0600, Josh Cartwright wrote: > On Thu, Jan 16, 2014 at 06:11:23PM +0100, Maxime Ripard wrote: > > The module clocks in the A31 are still compatible with the A10 one. Add the > > SPI > > module clocks and the PLL6 in the device tr

[PATCH v2 2/5] ARM: sun6i: dt: Add PLL6 and SPI module clocks

2014-01-29 Thread Maxime Ripard
The module clocks in the A31 are still compatible with the A10 one. Add the SPI module clocks and the PLL6 in the device tree to allow their use by the SPI controllers. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun6i-a31.dtsi | 46 1 file

[PATCH v2 1/5] clk: sunxi: Add support for PLL6 on the A31

2014-01-29 Thread Maxime Ripard
The A31 has a slightly different PLL6 clock. Add support for this new clock in our driver. Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/clk-sunxi.c | 45 +++ 2 files changed, 46 insertions

[PATCH v2 3/5] spi: sunxi: Add Allwinner A31 SPI controller driver

2014-01-29 Thread Maxime Ripard
The Allwinner A31 has a new SPI controller IP compared to the older Allwinner SoCs. It supports DMA, but the driver only does PIO for now, and DMA will be supported eventually. Signed-off-by: Maxime Ripard --- .../devicetree/bindings/spi/spi-sun6i.txt | 24 ++ drivers/spi/Kconfig

[PATCH v2 0/5] Add Allwinner A31 SPI controller support

2014-01-29 Thread Maxime Ripard
n the FIFO size, instead of silently timeouting. - Added a Kconfig symbol - Move the clock ratio change at transfer time - Fixed the PLL6 cell size in the DTSI - A few fixes here and there: typos, etc. Maxime Ripard (5): clk: sunxi: Add support for PLL6 on the A31 ARM: sun6i: dt: Add

[PATCH v2 5/5] ARM: sunxi: Enable A31 SPI and SID in the defconfig

2014-01-29 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- arch/arm/configs/sunxi_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig index 3e2259b..b5df4a5 100644 --- a/arch/arm/configs/sunxi_defconfig +++ b/arch/arm/configs/sunxi_defconfig

[PATCH v2 4/5] ARM: sun6i: dt: Add SPI controllers to the A31 DTSI

2014-01-29 Thread Maxime Ripard
The A31 has 4 SPI controllers. Add them in the DTSI. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun6i-a31.dtsi | 40 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi index 0eea325

Re: [PATCH v2 3/5] spi: sunxi: Add Allwinner A31 SPI controller driver

2014-01-29 Thread Maxime Ripard
On Wed, Jan 29, 2014 at 12:25:20PM +, Mark Brown wrote: > On Wed, Jan 29, 2014 at 12:10:48PM +0100, Maxime Ripard wrote: > > > +config SPI_SUN6I > > + tristate "Allwinner A31 SPI controller" > > + depends on ARCH_SUNXI || COMPILE_TEST > > + selec

Re: [PATCH v2 3/5] spi: sunxi: Add Allwinner A31 SPI controller driver

2014-01-31 Thread Maxime Ripard
Hi Kevin, On Thu, Jan 30, 2014 at 03:52:16PM -0800, Kevin Hilman wrote: > On Wed, Jan 29, 2014 at 5:32 AM, Maxime Ripard > wrote: > > On Wed, Jan 29, 2014 at 12:25:20PM +, Mark Brown wrote: > >> On Wed, Jan 29, 2014 at 12:10:48PM +0100, Maxime Ripard wrote: > >

[PATCH 0/3] spi: core: Introduce devm_spi_alloc_master

2014-01-31 Thread Maxime Ripard
devm_spi_alloc_master, and converted the users of devm_spi_register_master to use it. Maxime Ripard (3): spi: core: Add devm_spi_alloc_master spi: core: Update the devm_spi_register_master documentation spi: switch to devm_spi_alloc_master drivers/spi/spi-atmel.c | 8 +++- drivers/spi

[PATCH 3/3] spi: switch to devm_spi_alloc_master

2014-01-31 Thread Maxime Ripard
Make the existing users of devm_spi_register_master use the devm_spi_alloc_master function to avoid leaking memory. Signed-off-by: Maxime Ripard --- drivers/spi/spi-atmel.c | 8 +++- drivers/spi/spi-bcm2835.c| 15 +-- drivers/spi/spi-bcm63xx-hsspi.c | 8

[PATCH 1/3] spi: core: Add devm_spi_alloc_master

2014-01-31 Thread Maxime Ripard
devm_spi_alloc_master to provide the intended behaviour. Signed-off-by: Maxime Ripard --- drivers/spi/spi.c | 36 include/linux/spi/spi.h | 2 ++ 2 files changed, 38 insertions(+) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 63613a9..eb728ec 100644 --- a

[PATCH 2/3] spi: core: Update the devm_spi_register_master documentation

2014-01-31 Thread Maxime Ripard
want to use the devm_spi_alloc_master function in such case. Signed-off-by: Maxime Ripard --- drivers/spi/spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index eb728ec..dc577b7 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c

[PATCH v3 5/5] ARM: sunxi: Enable A31 SPI and SID in the defconfig

2014-01-31 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- arch/arm/configs/sunxi_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig index 3e2259b..b5df4a5 100644 --- a/arch/arm/configs/sunxi_defconfig +++ b/arch/arm/configs/sunxi_defconfig

[PATCH v3 4/5] ARM: sun6i: dt: Add SPI controllers to the A31 DTSI

2014-01-31 Thread Maxime Ripard
The A31 has 4 SPI controllers. Add them in the DTSI. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun6i-a31.dtsi | 40 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi index 0eea325

[PATCH v3 2/5] ARM: sun6i: dt: Add PLL6 and SPI module clocks

2014-01-31 Thread Maxime Ripard
The module clocks in the A31 are still compatible with the A10 one. Add the SPI module clocks and the PLL6 in the device tree to allow their use by the SPI controllers. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun6i-a31.dtsi | 46 1 file

[PATCH v3 3/5] spi: sunxi: Add Allwinner A31 SPI controller driver

2014-01-31 Thread Maxime Ripard
The Allwinner A31 has a new SPI controller IP compared to the older Allwinner SoCs. It supports DMA, but the driver only does PIO for now, and DMA will be supported eventually. Signed-off-by: Maxime Ripard --- .../devicetree/bindings/spi/spi-sun6i.txt | 24 ++ drivers/spi/Kconfig

[PATCH v3 0/5] Add Allwinner A31 SPI controller support

2014-01-31 Thread Maxime Ripard
ded a Kconfig symbol - Move the clock ratio change at transfer time - Fixed the PLL6 cell size in the DTSI - A few fixes here and there: typos, etc. Maxime Ripard (5): clk: sunxi: Add support for PLL6 on the A31 ARM: sun6i: dt: Add PLL6 and SPI module clocks spi: sunxi: Add Allwinner A3

[PATCH v3 1/5] clk: sunxi: Add support for PLL6 on the A31

2014-01-31 Thread Maxime Ripard
The A31 has a slightly different PLL6 clock. Add support for this new clock in our driver. Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/clk-sunxi.c | 45 +++ 2 files changed, 46 insertions

  1   2   3   4   5   6   7   8   9   10   >