[PATCH v10 03/10] media: mediatek: decoder: Move firmware selection to platform data

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Wed Sep 23 02:49:46 PDT 2026


On 9/23/26 10:12, Kyrie Wu wrote:
> The decoder currently selects its firmware backend by testing optional
> mediatek,vpu, mediatek,scp, and mediatek,vcp properties in the device
> tree.  The firmware backend is, however, fixed by the decoder compatible.
> 
> Add the firmware type and initialization callback to the decoder platform
> data, initialize them for each supported SoC, and use the callback from
> the platform data at probe time.  This matches the existing encoder
> platform-data design and removes the DT-property dependency.
> 
> Fixes: bf1d556ad4e0 ("media: mtk-vcodec: abstract firmware interface")
> Fixes: c7244811b1c9 ("media: mtk-vcodec: add SCP firmware ops")
> Fixes: c3da5e939cbc ("media: mediatek: vcodec: support vcp architecture")
> Signed-off-by: Kyrie Wu <kyrie.wu at mediatek.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>



More information about the linux-arm-kernel mailing list