Commit 3d103020 authored by Philipp Zabel's avatar Philipp Zabel

reset: allow drivers to request probe deferral

If the requested reset controller is not yet available, have reset_control_get
and device_reset return -EPROBE_DEFER so the driver can decide to request
probe deferral.
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Acked-by: default avatarShawn Guo <shawn.guo@linaro.org>
Reviewed-by: default avatarStephen Warren <swarren@nvidia.com>
parent 38dbfb59
...@@ -167,7 +167,7 @@ struct reset_control *reset_control_get(struct device *dev, const char *id) ...@@ -167,7 +167,7 @@ struct reset_control *reset_control_get(struct device *dev, const char *id)
if (!rcdev) { if (!rcdev) {
mutex_unlock(&reset_controller_list_mutex); mutex_unlock(&reset_controller_list_mutex);
return ERR_PTR(-ENODEV); return ERR_PTR(-EPROBE_DEFER);
} }
rstc_id = rcdev->of_xlate(rcdev, &args); rstc_id = rcdev->of_xlate(rcdev, &args);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment