diff options
| author | Etienne Carriere <[email protected]> | 2022-05-31 18:09:18 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-06-23 13:12:55 -0400 |
| commit | 8bcb1b4898be4849b711687fd140b43074b648da (patch) | |
| tree | a5e8b5f18efae6704faeccff4104844b1ef7a5ca /drivers/reset/reset-scmi.c | |
| parent | 5d8eb4ce33b4620264461a4ab00abd293f4537d5 (diff) | |
firmware: scmi: prepare scmi uclass API to multi-channel
Changes SCMI driver API function devm_scmi_process_msg() to add
an SCMI channel reference argument for when SCMI agent supports
SCMI protocol specific channels. First argument of devm_scmi_process_msg()
is also change to point to the caller SCMI protocol device rather
than its parent device (the SCMI agent device).
The argument is a pointer to opaque struct scmi_channel known from
the SCMI transport drivers. It is currently unused and caller a pass
NULL value. A later change will enable such support once SCMI protocol
drivers have means to get the channel reference during initialization.
Cc: Lukasz Majewski <[email protected]>
Cc: Sean Anderson <[email protected]>
Cc: Jaehoon Chung <[email protected]>
Signed-off-by: Etienne Carriere <[email protected]>
Diffstat (limited to 'drivers/reset/reset-scmi.c')
| -rw-r--r-- | drivers/reset/reset-scmi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/reset/reset-scmi.c b/drivers/reset/reset-scmi.c index 81d195a06a9..30b26ec9d31 100644 --- a/drivers/reset/reset-scmi.c +++ b/drivers/reset/reset-scmi.c @@ -26,7 +26,7 @@ static int scmi_reset_set_level(struct reset_ctl *rst, bool assert_not_deassert) in, out); int ret; - ret = devm_scmi_process_msg(rst->dev, &msg); + ret = devm_scmi_process_msg(rst->dev, NULL, &msg); if (ret) return ret; @@ -58,7 +58,7 @@ static int scmi_reset_request(struct reset_ctl *rst) * We don't really care about the attribute, just check * the reset domain exists. */ - ret = devm_scmi_process_msg(rst->dev, &msg); + ret = devm_scmi_process_msg(rst->dev, NULL, &msg); if (ret) return ret; |
