]> git.baikalelectronics.ru Git - uboot.git/commit
firmware: scmi: fix the multi channel support with CCF
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 30 Sep 2022 07:36:38 +0000 (09:36 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 12 Oct 2022 12:55:31 +0000 (08:55 -0400)
commit058af88cef539e341aaa30c88b59f2002e2f8cc5
tree205785156234277f4a69f3bcdd5c54ce273549bd
parent1458e635d14954586000a258a7bb278176b6fe5f
firmware: scmi: fix the multi channel support with CCF

When the CCF is activated, the dev->parent is not necessary
the reference to SCMI transport and the function devm_scmi_of_get_channel
failed for the registered SCMI clock, child for protocol@14,
the channel is null and the SCMI clock driver crash for any operations.

This patch changes the first parameter of the ops of_get_channel(),
aligned with other process_msg() to pass directly the good reference,
i.e. parent result of find_scmi_transport_device(dev)
which return the reference of the scmi transport device.

Fixes: 787825a0e92 ("firmware: scmi: add multi-channel support")
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
drivers/firmware/scmi/mailbox_agent.c
drivers/firmware/scmi/optee_agent.c
drivers/firmware/scmi/scmi_agent-uclass.c
drivers/firmware/scmi/smccc_agent.c