summaryrefslogtreecommitdiff
path: root/drivers/firmware/arm_scmi/reset.c
diff options
context:
space:
mode:
authorCristian Marussi <cristian.marussi@arm.com>2021-03-16 15:48:47 +0300
committerSudeep Holla <sudeep.holla@arm.com>2021-03-30 18:34:54 +0300
commit497ef0cbc6d166cef129b180dd292eec744a04fb (patch)
treed693471dd5034f92f249a3e531159b2adfe66ed1 /drivers/firmware/arm_scmi/reset.c
parent35cc2630627d2863892decf5a81b68b05bbeda5f (diff)
downloadlinux-497ef0cbc6d166cef129b180dd292eec744a04fb.tar.xz
firmware: arm_scmi: Remove legacy scmi_reset_ops protocol interface
Now that all the SCMI driver users have been migrated to the new interface remove the legacy interface and all the transient code. Link: https://lore.kernel.org/r/20210316124903.35011-23-cristian.marussi@arm.com Tested-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware/arm_scmi/reset.c')
-rw-r--r--drivers/firmware/arm_scmi/reset.c68
1 files changed, 0 insertions, 68 deletions
diff --git a/drivers/firmware/arm_scmi/reset.c b/drivers/firmware/arm_scmi/reset.c
index 26d517745d50..7ea1286bfed6 100644
--- a/drivers/firmware/arm_scmi/reset.c
+++ b/drivers/firmware/arm_scmi/reset.c
@@ -125,14 +125,6 @@ static int scmi_reset_num_domains_get(const struct scmi_protocol_handle *ph)
return pi->num_domains;
}
-static int __scmi_reset_num_domains_get(const struct scmi_handle *handle)
-{
- const struct scmi_protocol_handle *ph =
- scmi_map_protocol_handle(handle, SCMI_PROTOCOL_RESET);
-
- return scmi_reset_num_domains_get(ph);
-}
-
static char *scmi_reset_name_get(const struct scmi_protocol_handle *ph,
u32 domain)
{
@@ -143,15 +135,6 @@ static char *scmi_reset_name_get(const struct scmi_protocol_handle *ph,
return dom->name;
}
-static char *__scmi_reset_name_get(const struct scmi_handle *handle,
- u32 domain)
-{
- const struct scmi_protocol_handle *ph =
- scmi_map_protocol_handle(handle, SCMI_PROTOCOL_RESET);
-
- return scmi_reset_name_get(ph, domain);
-}
-
static int scmi_reset_latency_get(const struct scmi_protocol_handle *ph,
u32 domain)
{
@@ -161,15 +144,6 @@ static int scmi_reset_latency_get(const struct scmi_protocol_handle *ph,
return dom->latency_us;
}
-static int __scmi_reset_latency_get(const struct scmi_handle *handle,
- u32 domain)
-{
- const struct scmi_protocol_handle *ph =
- scmi_map_protocol_handle(handle, SCMI_PROTOCOL_RESET);
-
- return scmi_reset_latency_get(ph, domain);
-}
-
static int scmi_domain_reset(const struct scmi_protocol_handle *ph, u32 domain,
u32 flags, u32 state)
{
@@ -207,15 +181,6 @@ static int scmi_reset_domain_reset(const struct scmi_protocol_handle *ph,
ARCH_COLD_RESET);
}
-static int __scmi_reset_domain_reset(const struct scmi_handle *handle,
- u32 domain)
-{
- const struct scmi_protocol_handle *ph =
- scmi_map_protocol_handle(handle, SCMI_PROTOCOL_RESET);
-
- return scmi_reset_domain_reset(ph, domain);
-}
-
static int
scmi_reset_domain_assert(const struct scmi_protocol_handle *ph, u32 domain)
{
@@ -224,38 +189,11 @@ scmi_reset_domain_assert(const struct scmi_protocol_handle *ph, u32 domain)
}
static int
-__scmi_reset_domain_assert(const struct scmi_handle *handle, u32 domain)
-{
- const struct scmi_protocol_handle *ph =
- scmi_map_protocol_handle(handle, SCMI_PROTOCOL_RESET);
-
- return scmi_reset_domain_assert(ph, domain);
-}
-
-static int
scmi_reset_domain_deassert(const struct scmi_protocol_handle *ph, u32 domain)
{
return scmi_domain_reset(ph, domain, 0, ARCH_COLD_RESET);
}
-static int
-__scmi_reset_domain_deassert(const struct scmi_handle *handle, u32 domain)
-{
- const struct scmi_protocol_handle *ph =
- scmi_map_protocol_handle(handle, SCMI_PROTOCOL_RESET);
-
- return scmi_reset_domain_deassert(ph, domain);
-}
-
-static const struct scmi_reset_ops reset_ops = {
- .num_domains_get = __scmi_reset_num_domains_get,
- .name_get = __scmi_reset_name_get,
- .latency_get = __scmi_reset_latency_get,
- .reset = __scmi_reset_domain_reset,
- .assert = __scmi_reset_domain_assert,
- .deassert = __scmi_reset_domain_deassert,
-};
-
static const struct scmi_reset_proto_ops reset_proto_ops = {
.num_domains_get = scmi_reset_num_domains_get,
.name_get = scmi_reset_name_get,
@@ -357,7 +295,6 @@ static int scmi_reset_protocol_init(const struct scmi_protocol_handle *ph)
int domain;
u32 version;
struct scmi_reset_info *pinfo;
- struct scmi_handle *handle;
ph->xops->version_get(ph, &version);
@@ -382,11 +319,6 @@ static int scmi_reset_protocol_init(const struct scmi_protocol_handle *ph)
}
pinfo->version = version;
-
- /* Transient code for legacy ops interface */
- handle = scmi_map_scmi_handle(ph);
- handle->reset_ops = &reset_ops;
-
return ph->set_priv(ph, pinfo);
}