Re: [PATCH v2 0/4] sh-pfc: handle pin array holes in sh_pfc_map_pins()

2015-06-10 Thread Linus Walleij
On Fri, Jun 5, 2015 at 1:23 AM, Sergei Shtylyov sergei.shtyl...@cogentembedded.com wrote: Hello. Here's the set of 4 patches against the 'devel' branch of Linus Walleij's 'linux-pinctrl.git' repo. Here we add proper handling of the pin array holes and then remove unused GPIO pins for

Re: [RFT v2 44/48] genirq, pinctrl: Kill the first parameter 'irq' of irq_flow_handler_t

2015-06-10 Thread Heiko Stübner
Am Donnerstag, 4. Juni 2015, 12:13:54 schrieb Jiang Liu: Now most IRQ flow handlers make no use of the first parameter 'irq'. And for those who do make use of 'irq', we could easily get the irq number through irq_desc-irq_data-irq. So kill the first parameter 'irq' of irq_flow_handler_t. To

Re: [RFT v2 34/48] pinctrl: Prepare for killing the first parameter 'irq' of irq_flow_handler_t

2015-06-10 Thread Heiko Stübner
Am Donnerstag, 4. Juni 2015, 12:13:44 schrieb Jiang Liu: Change irq flow handler to prepare for killing the first parameter 'irq' of irq_flow_handler_t. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/pinctrl/pinctrl-rockchip.c|4 ++-- For Rockchip Acked-by: Heiko

Re: [PATCH v5 0/3] Add Renesas R8A7794 PFC support

2015-06-10 Thread Sergei Shtylyov
Hello. On 6/10/2015 11:17 AM, Linus Walleij wrote: Here's the set of 3 patches against the 'devel' branch of Linus Walleij's 'linux-pinctrl.git' repo. Here we add the PFC support for the Renesas R8A7794 SoC. The patches teaching the PFC driver to deal with holes in the pin array are

Re: [PATCH] GPIO: Fix checkpatch.pl issues

2015-06-10 Thread Daniel Lockyer
On Wed, Jun 10, 2015 at 11:17:10AM +0900, Alexandre Courbot wrote: On Tue, Jun 9, 2015 at 4:03 AM, Daniel Lockyer thisisdaniellock...@gmail.com wrote: diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 6bc612b..f2cab60 100644 --- a/drivers/gpio/gpiolib.c +++

[PATCH] gpio / ACPI: Return -EPROBE_DEFER if the gpiochip was not found

2015-06-10 Thread Mika Westerberg
If a driver requests a GPIO described in its _CRS but the GPIO host controller (gpiochip) driver providing the GPIO has not been loaded yet acpi_get_gpiod() returns -ENODEV which causes the calling driver to fail. If the gpiochip driver is loaded afterwards the driver requesting the GPIO will not

Re: [PATCH 05/15] gpio: kill off set_irq_flags usage

2015-06-10 Thread Linus Walleij
On Tue, Jun 9, 2015 at 8:26 PM, Rob Herring r...@kernel.org wrote: set_irq_flags is ARM specific with custom flags which have genirq equivalents. Convert drivers to use the genirq interfaces directly, so we can kill off set_irq_flags. The translation of flags is as follows: IRQF_VALID -

Re: [PATCH 11/15] pinctrl: kill off set_irq_flags usage

2015-06-10 Thread Linus Walleij
On Tue, Jun 9, 2015 at 8:26 PM, Rob Herring r...@kernel.org wrote: set_irq_flags is ARM specific with custom flags which have genirq equivalents. Convert drivers to use the genirq interfaces directly, so we can kill off set_irq_flags. The translation of flags is as follows: IRQF_VALID -

Re: [PATCH v5 2/7] mmc: mediatek: Add Mediatek MMC driver

2015-06-10 Thread Ulf Hansson
[...] +static int msdc_drv_probe(struct platform_device *pdev) +{ + struct mmc_host *mmc; + struct msdc_host *host; + struct resource *res; + int ret; + + if (!pdev-dev.of_node) { + dev_err(pdev-dev, No DT found\n); + return

Re: [PATCH 00/21] On-demand device registration

2015-06-10 Thread Andrzej Hajda
On 06/10/2015 12:19 PM, Tomeu Vizoso wrote: On 10 June 2015 at 09:30, Linus Walleij linus.wall...@linaro.org wrote: On Tue, Jun 2, 2015 at 12:14 PM, Tomeu Vizoso tomeu.viz...@collabora.com wrote: On 2 June 2015 at 10:48, Linus Walleij linus.wall...@linaro.org wrote: This is what systemd is

Re: [RFT v2 34/48] pinctrl: Prepare for killing the first parameter 'irq' of irq_flow_handler_t

2015-06-10 Thread Linus Walleij
On Thu, Jun 4, 2015 at 6:13 AM, Jiang Liu jiang@linux.intel.com wrote: Change irq flow handler to prepare for killing the first parameter 'irq' of irq_flow_handler_t. Signed-off-by: Jiang Liu jiang@linux.intel.com Acked-by: Linus Walleij linus.wall...@linaro.org Yours, Linus Walleij

Re: [PATCH v2] gpio: Added GPIO support to Zynq Ultrascale+ MPSoC

2015-06-10 Thread Linus Walleij
On Thu, Jun 4, 2015 at 2:10 PM, Anurag Kumar Vulisha anurag.kumar.vuli...@xilinx.com wrote: Added support to Zynq Ultrascale+ MPSoC on the existing zynq gpio driver. Signed-off-by: Anurag Kumar Vulisha anura...@xilinx.com --- Chnages in v2: 1.Added device tree bingings for Zynq

Re: [RFT v2 06/48] pinctrl: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc

2015-06-10 Thread Heiko Stübner
Am Donnerstag, 4. Juni 2015, 12:13:16 schrieb Jiang Liu: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc while we already have a pointer to corresponding irq_desc. Signed-off-by: Jiang Liu jiang@linux.intel.com Acked-by: Linus Walleij linus.wall...@linaro.org ---

Re: [PATCH 0/3] Pinctrl support for msm8660

2015-06-10 Thread Linus Walleij
On Sat, Jun 6, 2015 at 12:52 AM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: Per your request Linus, happy birthday! A opening this present 4 days late it still makes my day like it was my birthday again! Will boot my Dragon with these patches on, prompto! Yours, Linus Walleij

[PATCH] GPIO / ACPI: export acpi_gpiochip_request(free)_interrupts for module use

2015-06-10 Thread Hanjun Guo
acpi_gpiochip_request(free)_interrupts can be used for modules, so export them. This also fixs a compile error when xgene-sb configured as kernel module. Fixes: 733cf014f020 gpio: xgene: add ACPI support for APM X-Gene GPIO standby driver Signed-off-by: Hanjun Guo hanjun@linaro.org ---

Re: [PATCH] pinctrl: don't try to print function groups if we can't get them

2015-06-10 Thread Linus Walleij
On Mon, Jun 8, 2015 at 5:16 PM, Ludovic Desroches ludovic.desroc...@atmel.com wrote: There is no reason to try to print groups associated to a function if get_function_groups returns an error. Moreover, it can lead to a NULL pointer dereference error. Signed-off-by: Ludovic Desroches

Re: [PATCH] GPIO / ACPI: export acpi_gpiochip_request(free)_interrupts for module use

2015-06-10 Thread Mark Brown
On Wed, Jun 10, 2015 at 05:12:07PM +0800, Hanjun Guo wrote: acpi_gpiochip_request(free)_interrupts can be used for modules, so export them. This also fixs a compile error when xgene-sb configured as kernel module. Reviwed-by: Mark Brown broo...@kernel.org signature.asc Description: Digital

Re: [PATCHv3] gpio: add ETRAXFS GPIO driver

2015-06-10 Thread Linus Walleij
On Sat, Jun 6, 2015 at 10:30 PM, Rabin Vincent ra...@rab.in wrote: Add a GPIO driver for the General I/O block on Axis ETRAX FS SoCs. Signed-off-by: Rabin Vincent ra...@rab.in --- v3: Move port number to last cell and use of_gpio_simple_xlate(). Awesome, patch applied for the v4.2 cycle!

Re: [PATCH v0] arm64: dts: Add APM X-Gene standby GPIO controller DTS entries

2015-06-10 Thread Linus Walleij
On Thu, Jun 4, 2015 at 9:19 AM, Y Vo y...@apm.com wrote: Add standby domain gpio controller for APM X-Gene SoC platform. Signed-off-by: Y Vo y...@apm.com Acked-by: Linus Walleij linus.wall...@linaro.org Please funnel this through the ARM SoC tree. Yours, Linus Walleij -- To unsubscribe from

Re: [PATCH] added device tree support to gpio-generic driver

2015-06-10 Thread Linus Walleij
This patch needs to go to the devicetree list too, see To: on this mail. On Fri, Jun 5, 2015 at 8:51 AM, Romain Baeriswyl romain.baeris...@alitech.com wrote: +Required properties: +- compatible : basic-mmio-gpio for little endian register access or + basic-mmio-gpio-be for big

Re: [PATCH] GPIO / ACPI: export acpi_gpiochip_request(free)_interrupts for module use

2015-06-10 Thread Linus Walleij
On Wed, Jun 10, 2015 at 11:12 AM, Hanjun Guo hanjun@linaro.org wrote: acpi_gpiochip_request(free)_interrupts can be used for modules, so export them. This also fixs a compile error when xgene-sb configured as kernel module. Fixes: 733cf014f020 gpio: xgene: add ACPI support for APM X-Gene

Re: [PATCH 0/2] get pinctrl more flexible for per pin muxing controllers

2015-06-10 Thread Stephen Warren
On 06/10/2015 01:33 AM, Linus Walleij wrote: On Wed, Jun 3, 2015 at 3:31 PM, Nicolas Ferre nicolas.fe...@atmel.com wrote: Le 04/05/2015 10:56, Ludovic Desroches a écrit : The way pins, groups and functions are tied is too constraining for some controllers. It concerns mainly the ones we don't

[PATCH] gpiolib: unexport requested gpios on gpiochip removal

2015-06-10 Thread Bartosz Golaszewski
When a GPIO expander device is removed - e.g. via i2c-adapter new_device/delete_device interface - with some GPIOs still requested, gpiochip_remove() function will emit a warning but remove the chip anyway. If we then reinstantiate this device and try to export any of the GPIOs still requested on

[RESEND PATCH 0/2] get pinctrl more flexible for per pin muxing controllers

2015-06-10 Thread Ludovic Desroches
Hi, The way pins, groups and functions are tied is too constraining for some controllers. It concerns mainly the ones we don't care about groups and functions, each pin can be muxed to any functions. The goal of these two patches is too remove some of the constraints. I have added the prototype

[RESEND PATCH 1/2] pinctrl: change function behavior for per pin muxing controllers

2015-06-10 Thread Ludovic Desroches
When having a controller which allows per pin muxing, declaring with which groups a function can be used is a useless constraint since groups are something virtual. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- drivers/pinctrl/pinmux.c | 58

[RESEND PROTO] pinctrl: rough draft for a future controller

2015-06-10 Thread Ludovic Desroches
Draft for a future controller which can mux each pin to any functions. There are up to 6 functions plus a gpio mode (gpio controller driver won't be included in the pincontroller driver). There is a concept of ioset. An ioset is a set of pins for a device. A device can have several iosets. There

[RESEND PATCH 2/2] pinctrl: introduce complex pin description

2015-06-10 Thread Ludovic Desroches
Using a string to describe a pin in the device tree can be not enough. Some controllers may need extra information to fully describe a pin. It concerns mainly controllers which have a per pin muxing approach which don't fit well the notions of groups and functions. Instead of using a pin name, a

Re: [PATCH] gpiolib: unexport requested gpios on gpiochip removal

2015-06-10 Thread Johan Hovold
Hi Bartosz, On Wed, Jun 10, 2015 at 04:34:21PM +0200, Bartosz Golaszewski wrote: When a GPIO expander device is removed - e.g. via i2c-adapter new_device/delete_device interface - with some GPIOs still requested, gpiochip_remove() function will emit a warning but remove the chip anyway. If

Re: [PATCH] gpio: pcf857x: handle only enabled irqs

2015-06-10 Thread Grygorii Strashko
On 06/10/2015 10:39 AM, Linus Walleij wrote: On Wed, Jun 3, 2015 at 9:33 PM, Grygorii Strashko grygorii.stras...@ti.com wrote: Now pcf857x_irq() IRQ's dispatcher will try to run nested IRQ handlers for each GPIO pin which state has changed. Such IRQs are, actually, spurious and nested IRQ

[PATCH v2] gpio: pcf857x: handle only enabled irqs

2015-06-10 Thread Grygorii Strashko
Now pcf857x_irq() IRQ's dispatcher will try to run nested IRQ handlers for each GPIO pin which state has changed. Such IRQs are, actually, spurious and nested IRQ handlers have to be called only for IRQs wich were enabled by users. This is not critical issue - just /proc/interrupts will display

Re: [PATCH v2 0/6] UHS-I support for sh_mobile_sdhi

2015-06-10 Thread Ben Hutchings
On Wed, 2015-06-10 at 11:16 +0200, Ulf Hansson wrote: On 10 June 2015 at 01:21, Ben Hutchings ben.hutchi...@codethink.co.uk wrote: This series adds support for UHS-I in sh_mobile_sdhi, partly implemented in tmio_mmc. This does not yet include tuning for SDR-104, but SDR-50 now works on the

[PATCH] gpio / ACPI: Add label to the gpio request

2015-06-10 Thread Tobias Diedrich
In create_gpio_led only the legacy pass propagates the label by passing it into devm_gpio_request_one. On the newer devicetree/acpi path the label is lost as far as the GPIO subsystem goes (it is only retained as name in struct gpio_led. Amend devm_get_gpiod_from_child to also pass the label

Re: [PATCH v2 5/6] ARM: shmobile: lager: Set clock rates for SDHI

2015-06-10 Thread Kuninori Morimoto
Hi Ben Sorry for my small amount of question, but I would like to ask 1 thing diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index aaa4f258e279..5f68e53c58ae 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts

Re: [PATCH] gpio / ACPI: Return -EPROBE_DEFER if the gpiochip was not found

2015-06-10 Thread Rafael J. Wysocki
On Wednesday, June 10, 2015 04:05:05 PM Mika Westerberg wrote: If a driver requests a GPIO described in its _CRS but the GPIO host controller (gpiochip) driver providing the GPIO has not been loaded yet acpi_get_gpiod() returns -ENODEV which causes the calling driver to fail. If the gpiochip

Re: [PATCH] gpio / ACPI: Return -EPROBE_DEFER if the gpiochip was not found

2015-06-10 Thread Amos Jianjun Kong
On Wed, Jun 10, 2015 at 9:05 PM, Mika Westerberg mika.westerb...@linux.intel.com wrote: If a driver requests a GPIO described in its _CRS but the GPIO host controller (gpiochip) driver providing the GPIO has not been loaded yet acpi_get_gpiod() returns -ENODEV which causes the calling driver to

Re: [PATCH v0] gpio_keys: fix gpio key driver to proper support GIC interrupt

2015-06-10 Thread Arnd Bergmann
On Monday 08 June 2015 09:48:29 Y Vo wrote: On Fri, Jun 5, 2015 at 7:50 PM, Arnd Bergmann a...@arndb.de wrote: On Thursday 04 June 2015 14:25:12 Y Vo wrote: GIC is designed to support two of trigger mechanisms - active level high or edge rising. But in the gpio_keys driver, it tries to use

Re: [PATCH] gpio / ACPI: Return -EPROBE_DEFER if the gpiochip was not found

2015-06-10 Thread Tobias Diedrich
Rafael J. Wysocki wrote: On Wednesday, June 10, 2015 04:05:05 PM Mika Westerberg wrote: If a driver requests a GPIO described in its _CRS but the GPIO host controller (gpiochip) driver providing the GPIO has not been loaded yet acpi_get_gpiod() returns -ENODEV which causes the calling

Re: [PATCH v2] GPIO: Fix checkpatch.pl issues

2015-06-10 Thread Alexandre Courbot
On Wed, Jun 10, 2015 at 10:26 PM, Daniel Lockyer thisisdaniellock...@gmail.com wrote: This patch fixes some issues given by checkpatch. Fixes include bracket placement, spacing and indenting. Looks good, thanks! Reviewed-by: Alexandre Courbot acour...@nvidia.com -- To unsubscribe from this

Re: [PATCH v2 0/6] UHS-I support for sh_mobile_sdhi

2015-06-10 Thread Simon Horman
On Thu, Jun 11, 2015 at 12:57:57AM +0100, Ben Hutchings wrote: On Wed, 2015-06-10 at 11:16 +0200, Ulf Hansson wrote: On 10 June 2015 at 01:21, Ben Hutchings ben.hutchi...@codethink.co.uk wrote: This series adds support for UHS-I in sh_mobile_sdhi, partly implemented in tmio_mmc. This

[RESEND PROTO] ARM: at91/dt: proto dt

2015-06-10 Thread Ludovic Desroches
Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com Conflicts: arch/arm/boot/dts/Makefile --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/at91-sama5d4ek_proto.dts | 243 ++ arch/arm/boot/dts/sama5d4_proto-pinfunc.h | 463 +++