summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2012-04-10 10:00:38 +0200
committerPritesh Raithatha <praithatha@nvidia.com>2012-10-11 14:35:51 +0530
commitb78e3e67c77e881cfecf10226df29d81476d2de5 (patch)
treede090e1dff86788004461e5d7a9924d4a179717f /Documentation
parentf4b512fec01f78005d3211cdf5895f0474628d7a (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> (cherry picked from commit c05127c4e2c6e7d9949347a76fd05c337bcd5e84) Change-Id: I5c153a669989e162f6e11f7ff5f7d932f8c01d36 Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Diffstat (limited to 'Documentation')
-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.
The pins are allocated for your device when you issue the pinctrl_get() call,
after this you should be able to see this in the debugfs listing of all pins.
+NOTE: the pinctrl system will return -EPROBE_DEFER if it cannot find the
+requested pinctrl handles, for example if the pinctrl driver has not yet
+registered. Thus make sure that the error path in your driver gracefully
+cleans up and is ready to retry the probing later in the startup process.
+
System pin control hogging
==========================