aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/pinctrl.txt
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2012-04-10 04:00:38 -0400
committerLinus Walleij <linus.walleij@linaro.org>2012-04-18 07:53:11 -0400
commitc05127c4e2c6e7d9949347a76fd05c337bcd5e84 (patch)
tree5b23f8a116919028317f026e3f9998dce2ffb828 /Documentation/pinctrl.txt
parentad8bb720c23a80233e45ed31d67458f5e5b7ab31 (diff)
pinctrl: implement pinctrl deferred probing
If drivers try to obtain pinctrl handles for a pin controller that has not yet registered to the subsystem, we need to be able to back out and retry with deferred probing. So let's return -EPROBE_DEFER whenever this location fails. Also downgrade the errors to info, maybe we will even set them to debug once the deferred probing is commonplace. Cc: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Documentation/pinctrl.txt')
-rw-r--r--Documentation/pinctrl.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/pinctrl.txt b/Documentation/pinctrl.txt
index eb46b1c0b07a..4431c3e727ba 100644
--- a/Documentation/pinctrl.txt
+++ b/Documentation/pinctrl.txt
@@ -1043,6 +1043,11 @@ quickly poking some registers.
1043The pins are allocated for your device when you issue the pinctrl_get() call, 1043The pins are allocated for your device when you issue the pinctrl_get() call,
1044after this you should be able to see this in the debugfs listing of all pins. 1044after this you should be able to see this in the debugfs listing of all pins.
1045 1045
1046NOTE: the pinctrl system will return -EPROBE_DEFER if it cannot find the
1047requested pinctrl handles, for example if the pinctrl driver has not yet
1048registered. Thus make sure that the error path in your driver gracefully
1049cleans up and is ready to retry the probing later in the startup process.
1050
1046 1051
1047System pin control hogging 1052System pin control hogging
1048========================== 1053==========================