OSDN Git Service

pinctrl: Support stopping deferred probe after initcalls
authorRob Herring <robh@kernel.org>
Mon, 9 Jul 2018 15:41:50 +0000 (09:41 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Jul 2018 15:22:35 +0000 (17:22 +0200)
commitd19c5e79d46efdf89306be99f3c8824cf58e35f6
treec264ec79e263828ad363e8658bc516aebf5aea04
parent7930eb919feb59b8c799cb3085d0e9f7b5ae34d1
pinctrl: Support stopping deferred probe after initcalls

Pinctrl drivers are a common dependency which can prevent a system
booting even if the default or bootloader configured settings can work.
If a pinctrl node in DT indicates that the default pin setup can be used
with the 'pinctrl-use-default' property, then only defer probe until
initcalls are done. If the deferred probe timeout is enabled or loadable
modules are disabled, then we'll stop deferring probe regardless of the
DT property. This gives platforms the option to work without their
pinctrl driver being enabled.

Dropped the pinctrl specific deferring probe message as the driver core
can print deferred probe related messages if needed.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/devicetree.c