diff options
author | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2021-02-25 18:49:57 +0100 |
---|---|---|
committer | Matthias Brugger <matthias.bgg@gmail.com> | 2021-04-01 11:36:04 +0200 |
commit | 022b02b4505ecea5eda02b18683531e49f7d8eb7 (patch) | |
tree | 190ccf72c612d9445f40e742ff63df20bef50eb3 /drivers/soc/mediatek/mtk-pm-domains.h | |
parent | soc: mediatek: Make symbol 'mtk_mutex_driver' static (diff) | |
download | linux-022b02b4505ecea5eda02b18683531e49f7d8eb7.tar.xz linux-022b02b4505ecea5eda02b18683531e49f7d8eb7.zip |
soc: mediatek: pm-domains: Add a meaningful power domain name
Add the power domains names to the power domain struct so we
have meaningful name for every power domain. This also removes the
following debugfs error message.
[ 2.242068] debugfs: Directory 'power-domain' with parent 'pm_genpd' already present!
[ 2.249949] debugfs: Directory 'power-domain' with parent 'pm_genpd' already present!
[ 2.257784] debugfs: Directory 'power-domain' with parent 'pm_genpd' already present!
...
Fixes: 59b644b01cf4 ("soc: mediatek: Add MediaTek SCPSYS power domains")
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Hsin-Yi Wang <hsinyi@chromium.org>
Link: https://lore.kernel.org/r/20210225175000.824661-1-enric.balletbo@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Diffstat (limited to 'drivers/soc/mediatek/mtk-pm-domains.h')
-rw-r--r-- | drivers/soc/mediatek/mtk-pm-domains.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/soc/mediatek/mtk-pm-domains.h b/drivers/soc/mediatek/mtk-pm-domains.h index 141dc76054e6..21a4e113bbec 100644 --- a/drivers/soc/mediatek/mtk-pm-domains.h +++ b/drivers/soc/mediatek/mtk-pm-domains.h @@ -76,6 +76,7 @@ struct scpsys_bus_prot_data { /** * struct scpsys_domain_data - scp domain data for power on/off flow + * @name: The name of the power domain. * @sta_mask: The mask for power on/off status bit. * @ctl_offs: The offset for main power control register. * @sram_pdn_bits: The mask for sram power control bits. @@ -85,6 +86,7 @@ struct scpsys_bus_prot_data { * @bp_smi: bus protection for smi subsystem */ struct scpsys_domain_data { + const char *name; u32 sta_mask; int ctl_offs; u32 sram_pdn_bits; |