]> git.ipfire.org Git - thirdparty/linux.git/commit
interconnect: mediatek: Don't hijack parent device
authorNicolas Frattaroli <nicolas.frattaroli@collabora.com>
Mon, 24 Nov 2025 11:07:01 +0000 (12:07 +0100)
committerGeorgi Djakov <djakov@kernel.org>
Sun, 21 Dec 2025 11:59:47 +0000 (13:59 +0200)
commit510f8214440c553e81774c5822437ccf154e9e38
tree425e30c3c663782ce48c140742199ab40061ef11
parentce69a970390ce182ccece5dea61083588ca5379a
interconnect: mediatek: Don't hijack parent device

If the intention is that users of the interconnect declare their
relationship to the child icc_emi node of the dvfsrc controller, then
this code never worked. That's because it uses the parent dvfsrc device
as the device it passes to the interconnect core framework, which means
all the OF parsing is broken.

Use the actual device instead, and pass the dvfsrc parent into the
dvfsrc calls.

Fixes: b45293799f75 ("interconnect: mediatek: Add MediaTek MT8183/8195 EMI Interconnect driver")
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Link: https://lore.kernel.org/r/20251124-mt8196-dvfsrc-v2-12-d9c1334db9f3@collabora.com
Signed-off-by: Georgi Djakov <djakov@kernel.org>
drivers/interconnect/mediatek/icc-emi.c