Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ struct reset_control *reset_control_get(struct device *dev, const char *id)

	if (!rcdev) {
		mutex_unlock(&reset_controller_list_mutex);
		return ERR_PTR(-ENODEV);
		return ERR_PTR(-EPROBE_DEFER);
	}

	rstc_id = rcdev->of_xlate(rcdev, &args);