[PATCH v7 09/15] gpio: pl061: set initcall level to module init

Linus Walleij linus.walleij at linaro.org
Tue Jan 22 04:42:11 EST 2013


On Mon, Jan 21, 2013 at 5:24 PM, Pawel Moll <pawel.moll at arm.com> wrote:

> Hm. Doesn't this make the MMCI probing depending on the module_init
> order? As in: wouldn't it make the mmci probe completely fail (not even
> defer it) if it was called before the pl061? In that case even your,
> Linus, hack with inverting the CD status wouldn't work...

According to Haojian it works, but for sure the MMCI driver *should*
(on the eternal list of SHOULDDO) bail out and return any
-EPROBE_DEFER up to the AMBA bus core properly so it
will be tried again later if this happens.

AFAICT gpio_request() will return -EPROBE_DEFER if the GPIO
cannot be located.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list