[PATCH 2/7] gpio: mvebu: Fix probe cleanup on error

2015-01-09 Thread Andrew Lunn
Ensure that when there is an error during probe that the gpiochip is removed and the generic irq chip is removed. Signed-off-by: Andrew Lunn --- drivers/gpio/gpio-mvebu.c | 23 +-- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-mvebu.c b/driv

[PATCH 7/7] mvebu: wrt1900ac: Use pwm-fan rather than gpio-fan

2015-01-09 Thread Andrew Lunn
The mvebu gpio driver can also perform PWM on some pins. Us the pwm-fan driver to control the fan of the WRT1900AC, giving us fine grain control over its speed and hence noise. Signed-off-by: Andrew Lunn --- arch/arm/boot/dts/armada-xp-wrt1900ac.dts | 8 +++- 1 file changed, 3 insertions(+),

[PATCH 1/7] gpio: mvebu: checkpatch fixes

2015-01-09 Thread Andrew Lunn
Wrap some long lines. Prefer seq_puts() over seq_printf(). space to tab conversions. Spelling error fix. Signed-off-by: Andrew Lunn --- drivers/gpio/gpio-mvebu.c | 77 ++- 1 file changed, 42 insertions(+), 35 deletions(-) diff --git a/drivers/gpio/gpi

[PATCH 4/7] DT: bindings: Extend mvebu gpio documentation with PWM

2015-01-09 Thread Andrew Lunn
Document the optional parameters needed for PWM operation of gpio lines. Signed-off-by: Andrew Lunn --- .../devicetree/bindings/gpio/gpio-mvebu.txt| 31 ++ 1 file changed, 31 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/gpio-mvebu.txt b/Document

[PATCH 3/7] gpio: mvebu: Add limited PWM support

2015-01-09 Thread Andrew Lunn
Armada 370/XP devices can 'blink' gpio lines with a configurable on and off period. This can be modelled as a PWM. However, there are only two sets of PWM configuration registers for all the gpio lines. This driver simply allows a single gpio line per gpio chip of 32 lines to be used as a PWM. Att

[PATCH 6/7] arm: mvebu: Enable PWM in defconfig

2015-01-09 Thread Andrew Lunn
Now that the gpio driver also supports PWM operation, enable the PWM framework in mvebu_v7_defconfig. Signed-off-by: Andrew Lunn --- arch/arm/configs/mvebu_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/mvebu_v7_defconfig b/arch/arm/configs/mvebu_v7_defconfig

[PATCH 5/7] mvebu: xp: Add pwm properties to .dtsi files

2015-01-09 Thread Andrew Lunn
Add properties to the gpio nodes to allow them to be also used as pwm lines. Signed-off-by: Andrew Lunn --- arch/arm/boot/dts/armada-370.dtsi| 10 -- arch/arm/boot/dts/armada-xp-mv78230.dtsi | 10 -- arch/arm/boot/dts/armada-xp-mv78260.dtsi | 8 ++-- arch/arm/boot/dt

[PATCH 0/7] Add PWM support to mvebu gpio driver

2015-01-09 Thread Andrew Lunn
This patchset starts out with some cleanups and fixes for the mvebu gpio driver. Then new functionality is added. The Armada 370 and XP SoC has the ability to "blink" the gpio lines at a configuration on and off duration. So simple PWM support is added. However only a single gpio line per gpio chip

Re: [PATCH RESEND v3] gpio: lib-sysfs: Add 'wakeup' attribute

2015-01-09 Thread Sören Brinkmann
On Fri, 2015-01-09 at 10:32AM +0100, Linus Walleij wrote: > On Mon, Jan 5, 2015 at 7:16 PM, Soren Brinkmann > wrote: > > > Add an attribute 'wakeup' to the GPIO sysfs interface which allows > > marking/unmarking a GPIO as wake IRQ. > > The file 'wakeup' is created in each exported GPIOs directory

[PATCH 2/2] mdio-mux-gpio: use new gpiod_get_array and gpiod_put_array functions

2015-01-09 Thread Rojhalat Ibrahim
Use the new gpiod_get_array and gpiod_put_array functions for obtaining and disposing of GPIO descriptors. Signed-off-by: Rojhalat Ibrahim --- This patch depends on my previous patch "gpiolib: add gpiod_get_array and gpiod_put_array functions". drivers/net/phy/mdio-mux-gpio.c | 28 ---

[PATCH 1/2] gpiolib: add gpiod_get_array and gpiod_put_array functions

2015-01-09 Thread Rojhalat Ibrahim
Introduce new functions for conveniently obtaining and disposing of an entire array of GPIOs with one function call. Suggested-by: Alexandre Courbot Signed-off-by: Rojhalat Ibrahim --- Documentation/gpio/consumer.txt | 28 - drivers/gpio/gpiolib.c | 84 +

Re: [PATCH v3 5/8] gpio: Add Fujitsu MB86S7x GPIO driver

2015-01-09 Thread Jassi Brar
On 9 January 2015 at 18:22, Russell King - ARM Linux wrote: > On Fri, Jan 09, 2015 at 07:33:32PM +0800, Vincent Yang wrote: >> +static int mb86s70_gpio_remove(struct platform_device *pdev) >> +{ >> + struct mb86s70_gpio_chip *gchip = platform_get_drvdata(pdev); >> + >> + gpiochip_remove(&g

Re: [PATCH v3 5/8] gpio: Add Fujitsu MB86S7x GPIO driver

2015-01-09 Thread Russell King - ARM Linux
On Fri, Jan 09, 2015 at 07:33:32PM +0800, Vincent Yang wrote: > +static int mb86s70_gpio_remove(struct platform_device *pdev) > +{ > + struct mb86s70_gpio_chip *gchip = platform_get_drvdata(pdev); > + > + gpiochip_remove(&gchip->gc); This doesn't disable and unprepare the clock. -- FTTC

[PATCH v3 5/8] gpio: Add Fujitsu MB86S7x GPIO driver

2015-01-09 Thread Vincent Yang
From: Jassi Brar Driver for Fujitsu MB86S7x SoCs that have a memory mapped GPIO controller. Signed-off-by: Andy Green Signed-off-by: Jassi Brar Signed-off-by: Vincent Yang Signed-off-by: Tetsuya Nuriya --- .../bindings/gpio/fujitsu,mb86s70-gpio.txt | 20 ++ drivers/gpio/Kconfig

Re: [PATCH] pinctrl: pass -DDEBUG in subdirs

2015-01-09 Thread Yingjoe Chen
On Fri, 2015-01-09 at 10:41 +0100, Linus Walleij wrote: > When drivers are compiled in subdirectories the -DDEBUG flag need > to be passed in the individual Makefiles. Hi, It will be easy to forget adding this when adding new subdirectories. Can we do this instead? diff --git a/drivers/pinctrl/

Re: [PATCH 15/28] pinctrl: intel: drop owner assignment from platform_drivers

2015-01-09 Thread Linus Walleij
On Sun, Dec 21, 2014 at 10:14 PM, Wolfram Sang wrote: > This platform_driver does not need to set an owner, it will be populated by > the > driver core. > > Signed-off-by: Wolfram Sang Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio"

Re: [PATCH 2/2] pinctrl: cherryview: Save and restore pin configs over system sleep

2015-01-09 Thread Linus Walleij
On Thu, Dec 4, 2014 at 11:32 AM, Mika Westerberg wrote: > Before resuming from system sleep BIOS restores its view of pin > configuration. If we have configured some pins differently from that, for > instance some driver requested a pin as a GPIO but it was not in GPIO mode > originally, our view

Re: [PATCH 1/2] pinctrl: intel: Pass CONFIG_DEBUG_PINCTRL to drivers

2015-01-09 Thread Linus Walleij
On Thu, Dec 4, 2014 at 11:32 AM, Mika Westerberg wrote: > If the user has selected CONFIG_DEBUG_PINCTRL=y make sure that Intel > pinctrl drivers will be compiled with that option as well. > > Signed-off-by: Mika Westerberg Patch applied, and conjured a patch doing the same on the other subdirs

[PATCH] pinctrl: pass -DDEBUG in subdirs

2015-01-09 Thread Linus Walleij
When drivers are compiled in subdirectories the -DDEBUG flag need to be passed in the individual Makefiles. Reported-by: Mika Westerberg Signed-off-by: Linus Walleij --- drivers/pinctrl/berlin/Makefile| 1 + drivers/pinctrl/freescale/Makefile | 1 + drivers/pinctrl/mvebu/Makefile | 1 +

Re: [PATCH RESEND v3] gpio: lib-sysfs: Add 'wakeup' attribute

2015-01-09 Thread Linus Walleij
On Mon, Jan 5, 2015 at 7:16 PM, Soren Brinkmann wrote: > Add an attribute 'wakeup' to the GPIO sysfs interface which allows > marking/unmarking a GPIO as wake IRQ. > The file 'wakeup' is created in each exported GPIOs directory, if an IRQ > is associated with that GPIO and the irqchip implements

Re: [PATCH v1 1/5] gpio: moxart: convert to use basic mmio gpio library

2015-01-09 Thread Linus Walleij
On Mon, Dec 1, 2014 at 1:09 PM, wrote: > From: Kamlakant Patel > > This patch converts MOXART GPIO driver to use basic_mmio_gpio > generic library. > > Signed-off-by: Kamlakant Patel > Tested-by: Jonas Jensen Patch applied for v3.20. Sorry for eternal delays :( Yours, Linus Walleij -- To un

Re: [PATCH v1 4/5] gpio: ge: convert to use basic mmio gpio library

2015-01-09 Thread Linus Walleij
Martyn, do you have some feedback on this patch? Can you test it? Shall I just apply it? Yours, Linus Walleij On Mon, Dec 1, 2014 at 1:09 PM, wrote: > From: Kamlakant Patel > > This patch converts GE GPIO driver to use basic_mmio_gpio > generic library. > > Signed-off-by: Kamlakant Patel > -

Re: [PATCH v1 3/5] gpio: iop: convert to use basic mmio gpio library

2015-01-09 Thread Linus Walleij
Lennert/Arnaud: is any one of you guys still maintaining and testing IOP stuff so you can say something about this patch? Or should I just apply it? Yours, Linus Walleij On Mon, Dec 1, 2014 at 1:09 PM, wrote: > From: Kamlakant Patel > > This patch converts IOP GPIO driver to use basic_mmio_g

Re: [PATCH v1 2/5] gpio: timberdale: convert to use basic mmio gpio library

2015-01-09 Thread Linus Walleij
Richard can you look at this patch and even test it maybe? Do you still work with the Timberdale hardware or do you know anyone who does? Yours, Linus Walleij On Mon, Dec 1, 2014 at 1:09 PM, wrote: > From: Kamlakant Patel > > This patch converts TIMBERDALE GPIO driver to use basic_mmio_gpio >

[PATCH] gpiolib: of: Correct error handling in of_get_named_gpiod_flags

2015-01-09 Thread Hans Holmberg
of_get_named_gpiod_flags fails with -EPROBE_DEFER in cases where the gpio chip is available and the GPIO translation fails. This causes drivers to be re-probed erroneusly, and hides the real problem(i.e. the GPIO number being out of range). Signed-off-by: Hans Holmberg --- drivers/gpio/gpiolib-

Re: [PATCH 0/9] ARM Versatile multi-platform support

2015-01-09 Thread Linus Walleij
On Thu, Jan 8, 2015 at 10:38 PM, Rob Herring wrote: > On Thu, Jan 8, 2015 at 1:47 PM, Linus Walleij > wrote: >> On Tue, Dec 30, 2014 at 8:28 PM, Rob Herring wrote: >> >>> From: Rob Herring >>> >>> This series converts ARM Versatile platform to multi-platform. I started >>> this some time ago a