Re: [PATCH] drm/panfrost: Drop redundant Mediatek driver data
From: AngeloGioacchino Del Regno
Date: Mon Jan 20 2025 - 07:58:34 EST
Il 18/01/25 17:06, Krzysztof Kozlowski ha scritto:
mediatek_mt8192_supplies are exactly the same as
mediatek_mt8183_b_supplies. mediatek_mt8188_data is exactly the same as
&mediatek_mt8183_b_data. There is never point in duplicating all these
structures - it only raises questions or encourages bugs when someone
updates one variant without changing the other. Drop duplicated code.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>
The reason why these are different is that 8183 and 8192 have different
GPU architectures, where the former is bifrost and the latter is valhall.
Regardless, even if there actually was a reason for that, I agree about
this deduplication here, as the architecture is anyway made clear by the
devicetree bindings for those SoCs.
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>
Cheers!