Commit 61423712 authored by Sudeep Holla's avatar Sudeep Holla
Browse files

reset: reset-scmi: add missing handle initialisation

scmi_reset_data->handle needs to be initialised at probe, so that it
can be later used to access scmi reset protocol APIs using the same.

Since it was tested with a module that obtained handle elsewhere,
it was missed easily. Add the missing scmi_reset_data->handle
initialisation to fix the issue.

Fixes: c8ae9c2d

 ("reset: Add support for resets provided by SCMI")
Acked-by: default avatarPhilipp Zabel <>
Reported-by: Etienne Carriere's avatarEtienne Carriere <>
Signed-off-by: Sudeep Holla's avatarSudeep Holla <>
parent 11ed5cf0
......@@ -102,6 +102,7 @@ static int scmi_reset_probe(struct scmi_device *sdev)
data->rcdev.owner = THIS_MODULE;
data->rcdev.of_node = np;
data->rcdev.nr_resets = handle->reset_ops->num_domains_get(handle);
data->handle = handle;
return devm_reset_controller_register(dev, &data->rcdev);
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