Skip to contentSkip to conversation

soc: mediatek: Add deprecated compatible to mmsys

PATCH Superseded [email protected] 3 participants 3 messages Nov 10, 2022 – Nov 11, 2022 Arm MediaTek

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: mediatek: Add deprecated compatible to mmsys

From: Matthias Brugger <[email protected]>

For backward compatibility we add the deprecated compatible.

---
 drivers/soc/mediatek/mtk-mmsys.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/soc/mediatek/mtk-mmsys.c +4 -0
index ba2e79b26993b..47106f557c574 100644
@@ -303,6 +303,10 @@ static const struct of_device_id of_match_mtk_mmsys[] = {
 		.compatible = "mediatek,mt8192-mmsys",
 		.data = &mt8192_mmsys_driver_data,
 	},
+	{	/* deprecated compatible */
+		.compatible = "mediatek,mt8195-mmsys",
+		.data = &mt8195_mmsys_match_data,
+	},
 	{
 		.compatible = "mediatek,mt8195-vdosys0",
 		.data = &mt8195_vdosys0_driver_data,
Signature · 1 line
2.38.0
#1 lore raw

Il 10/11/22 13:02, [email protected] ha scritto:

Quoted 5 lines

From: Matthias Brugger <[email protected]>

For backward compatibility we add the deprecated compatible.

Hello Matthias,

You forgot to advertise that this commit depends on [1]... and I'm afraid that you have to push a v2 anyway, because...

Quoted 9 lines
---
  drivers/soc/mediatek/mtk-mmsys.c | 4 ++++
  1 file changed, 4 insertions(+)
drivers/soc/mediatek/mtk-mmsys.c +0 -0
index ba2e79b26993b..47106f557c574 100644

drivers/soc/mediatek/mtk-mmsys.c static const struct of_device_id of_match_mtk_mmsys[] = { · line 308

Quoted 6 lines
drivers/soc/mediatek/mtk-mmsys.c +3 -0
@@ -303,6 +303,10 @@ static const struct of_device_id of_match_mtk_mmsys[] = {
  		.compatible = "mediatek,mt8192-mmsys",
  		.data = &mt8192_mmsys_driver_data,
  	},
+	{	/* deprecated compatible */
+		.compatible = "mediatek,mt8195-mmsys",
+		.data = &mt8195_mmsys_match_data,

...mt8195_mmsys_match_data doesn't exist anymore after [1], so this should be

		.data = &mt8195_vdosys0_driver_data,

[1]: https://patchwork.kernel.org/project/linux-mediatek/list/?series=681097

Cheers,
Angelo

maintainer
#2 lore raw
Quoted 12 lines · AngeloGioacchino Del Regno

Il 10/11/22 13:02, [email protected] ha scritto:

Quoted 5 lines

From: Matthias Brugger <[email protected]>

For backward compatibility we add the deprecated compatible.

Hello Matthias,

You forgot to advertise that this commit depends on [1]... and I'm afraid that you have to push a v2 anyway, because...

Well yes I based it against mediateks for-next branch, sorry for the confusion.

Quoted 18 lines
Quoted 9 lines

---
  drivers/soc/mediatek/mtk-mmsys.c | 4 ++++

  1 file changed, 4 insertions(+)
drivers/soc/mediatek/mtk-mmsys.c +0 -0
index ba2e79b26993b..47106f557c574 100644

drivers/soc/mediatek/mtk-mmsys.c static const struct of_device_id of_match_mtk_mmsys[] = { · line 308

Quoted 6 lines
drivers/soc/mediatek/mtk-mmsys.c +3 -0
@@ -303,6 +303,10 @@ static const struct of_device_id of_match_mtk_mmsys[] = {
           .compatible = "mediatek,mt8192-mmsys",
           .data = &mt8192_mmsys_driver_data,
       },
+    {    /* deprecated compatible */
+        .compatible = "mediatek,mt8195-mmsys",
+        .data = &mt8195_mmsys_match_data,

...mt8195_mmsys_match_data doesn't exist anymore after [1], so this should be

Quoted 2 lines

        .data = &mt8195_vdosys0_driver_data,

Of course, should have compile tested at least. /o\

Regards,
Matthias

Quoted 5 lines

[1]: https://patchwork.kernel.org/project/linux-mediatek/list/?series=681097

Cheers,
Angelo