summaryrefslogtreecommitdiff
path: root/drivers/firmware/scmi/smccc_agent.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-10-14 10:47:52 -0400
committerTom Rini <trini@konsulko.com>2023-10-14 10:47:52 -0400
commit25edd247a84a31298c22a34ec5cf2851cbf61f70 (patch)
tree636b2beef8d9056926eee1d61b94d90e800b3b58 /drivers/firmware/scmi/smccc_agent.c
parentab9fbac81670478feccd439a5d84a67bd14d581d (diff)
parent66abf2bba36f8c5f3929b6de6fa377350d52bdd8 (diff)
Merge branch '2023-10-13-firmware-scmi-updates'
- Fix a memset call in the optee_agent code. Then to quote the author for the rest of the changes: This patch series allows users to access SCMI base protocol provided by SCMI server (platform). See SCMI specification document v3.2 beta[1] for more details about SCMI base protocol. What is currently not implemented is - SCMI_BASE_NOTIFY_ERRORS command and notification callback mechanism This feature won't be very useful in the current U-Boot environment. [1] https://developer.arm.com/documentation/den0056/e/?lang=en
Diffstat (limited to 'drivers/firmware/scmi/smccc_agent.c')
-rw-r--r--drivers/firmware/scmi/smccc_agent.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/firmware/scmi/smccc_agent.c b/drivers/firmware/scmi/smccc_agent.c
index 6a52cd75d67..972c6addde2 100644
--- a/drivers/firmware/scmi/smccc_agent.c
+++ b/drivers/firmware/scmi/smccc_agent.c
@@ -81,6 +81,7 @@ static int setup_channel(struct udevice *dev, struct scmi_smccc_channel *chan)
}
static int scmi_smccc_get_channel(struct udevice *dev,
+ struct udevice *protocol,
struct scmi_channel **channel)
{
struct scmi_smccc_channel *base_chan = dev_get_plat(dev);
@@ -88,7 +89,7 @@ static int scmi_smccc_get_channel(struct udevice *dev,
u32 func_id;
int ret;
- if (dev_read_u32(dev, "arm,smc-id", &func_id)) {
+ if (dev_read_u32(protocol, "arm,smc-id", &func_id)) {
/* Uses agent base channel */
*channel = container_of(base_chan, struct scmi_channel, ref);
@@ -100,7 +101,7 @@ static int scmi_smccc_get_channel(struct udevice *dev,
if (!chan)
return -ENOMEM;
- ret = setup_channel(dev, chan);
+ ret = setup_channel(protocol, chan);
if (ret) {
free(chan);
return ret;