Re: [PATCH] gpio: zynq: Do PM initialization earlier to support gpio hogs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 10, 2015 at 12:10 PM, Michal Simek <michal.simek@xxxxxxxxxx> wrote:

> GPIO hogs registration is call at the end of gpiochip_add() function.
> Calling sequence is:
> gpiochip_add -> of_gpiochip_add -> of_gpiochip_scan_hogs ->
> gpiod_hog -> gpiochip_request_own_desc -> __gpiod_request ->
> chip->request -> zynq_gpio_request which calls pm_runtime_get_sync()
> which returns -13 because PM is not initialized yet.
>
> Initialize PM before gpiochip_add is called to fix this issue.
>
> Signed-off-by: Michal Simek <michal.simek@xxxxxxxxxx>
> Signed-off-by: Soren Brinkmann <soren.brinkmann@xxxxxxxxxx>

Patch applied!

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux