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

2015-06-11 Thread Linus Walleij
On Wed, Jun 10, 2015 at 3: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-11 Thread Linus Walleij
On Wed, Jun 10, 2015 at 3: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

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 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 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

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

[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

[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] 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] 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