linux/drivers/soc/mediatek
AngeloGioacchino Del Regno 07933fe29f
soc: mediatek: mtk-svs: Build bank name string dynamically
In svs_bank_resource_setup() there is a "big" switch assigning different
names depending on sw_id and type and this will surely grow: for example
MT8186 has got a two-line type (high/low) SVS bank for CPU_BIG, and this
would require more switch nesting.

Simplify all of this by changing that to a devm_kasprintf() call that
will concatenate the SW_ID string (e.g. SVSB_CPU_LITTLE) with the Type
string (e.g. _LOW), resulting in the expected full bank name (e.g.
SVSB_CPU_LITTLE_LOW).

This being a dynamic allocation can be slower, but this happens only
once in the life of this driver and it's not a performance path, so it's
totally acceptable.

Link: https://lore.kernel.org/r/20231121125044.78642-5-angelogioacchino.delregno@collabora.com
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
2023-12-11 11:36:13 +01:00
..
Kconfig pmdomain: mediatek: Move Kconfig options to the pmdomain subsystem 2023-10-04 23:41:18 +02:00
Makefile soc: mediatek: Move power-domain drivers to the genpd dir 2023-07-11 15:30:09 +02:00
mt8167-mmsys.h soc: mediatek: add DDP_DOMPONENT_DITHER0 enum for mt8195 vdosys0 2022-04-22 14:38:53 +02:00
mt8173-mmsys.h soc: mediatek: mtk-mmsys: Split out MT8173 mmsys DDP routing table 2023-04-02 19:01:40 +02:00
mt8183-mmsys.h soc: mediatek: add DDP_DOMPONENT_DITHER0 enum for mt8195 vdosys0 2022-04-22 14:38:53 +02:00
mt8186-mmsys.h soc: mediatek: Add all settings to mtk_mmsys_ddp_dpi_fmt_config func 2022-11-08 19:25:30 +01:00
mt8188-mmsys.h soc: mediatek: Add MT8188 VDOSYS reset bit map 2023-12-11 11:36:12 +01:00
mt8192-mmsys.h soc: mediatek: add DDP_DOMPONENT_DITHER0 enum for mt8195 vdosys0 2022-04-22 14:38:53 +02:00
mt8195-mmsys.h soc: mediatek: mmsys: add config api for RSZ switching and DCM 2023-03-06 14:35:44 +01:00
mt8365-mmsys.h soc: mediatek: mt8365-mmsys: add DPI/HDMI display path 2022-06-17 12:25:57 +02:00
mtk-cmdq-helper.c soc: mediatek: Explicitly include correct DT includes 2023-08-12 10:31:01 +02:00
mtk-devapc.c soc/mediatek: mtk-devapc: Convert to platform remove callback returning void 2023-10-14 23:27:25 +02:00
mtk-infracfg.c soc: mediatek: mtk-infracfg: Disable ACP on MT8192 2022-03-01 08:21:28 +01:00
mtk-mmsys.c soc: mediatek: Add MT8188 VDOSYS reset bit map 2023-12-11 11:36:12 +01:00
mtk-mmsys.h soc: mediatek: Support reset bit mapping in mmsys driver 2023-12-11 11:36:12 +01:00
mtk-mutex.c soc: mediatek: Support MT8188 VDOSYS1 Padding in mtk-mmsys 2023-12-11 11:36:12 +01:00
mtk-pmic-wrap.c soc: mediatek: Explicitly include correct DT includes 2023-08-12 10:31:01 +02:00
mtk-regulator-coupler.c soc: mediatek: Introduce mediatek-regulator-coupler driver 2023-01-30 11:27:49 +01:00
mtk-svs.c soc: mediatek: mtk-svs: Build bank name string dynamically 2023-12-11 11:36:13 +01:00