Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1291179 > unrolled thread

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

Started byLinus Walleij <linus.walleij@linaro.org>
First post2015-12-14 14:20 +0100
Last post2015-12-14 14:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] gpio: zynq: Do PM initialization earlier to support gpio hogs Linus Walleij <linus.walleij@linaro.org> - 2015-12-14 14:20 +0100

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

FromLinus Walleij <linus.walleij@linaro.org>
Date2015-12-14 14:20 +0100
SubjectRe: [PATCH] gpio: zynq: Do PM initialization earlier to support gpio hogs
Message-ID<qFBcL-6CH-27@gated-at.bofh.it>
On Thu, Dec 10, 2015 at 12:10 PM, Michal Simek <michal.simek@xilinx.com> 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@xilinx.com>
> Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>

Patch applied!

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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web