]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/panthor: Use existing OPP table if present
authorNicolas Frattaroli <nicolas.frattaroli@collabora.com>
Fri, 17 Oct 2025 15:31:11 +0000 (17:31 +0200)
committerLiviu Dudau <liviu.dudau@arm.com>
Mon, 3 Nov 2025 15:28:39 +0000 (15:28 +0000)
commit3668133e110f5d489eef85e7fbc9d76f2f976530
treea1ce9a7865811be3e09e882d1d41674eec8944b0
parent3dd4844ba04bb927c7f86edee971ea17ee881a54
drm/panthor: Use existing OPP table if present

On SoCs where the GPU's power-domain is in charge of setting performance
levels, the OPP table of the GPU node will have already been populated
during said power-domain's attach_dev operation.

To avoid initialising an OPP table twice, only set the OPP regulator and
the OPPs from DT if there's no OPP table present.

Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Link: https://patch.msgid.link/20251017-mt8196-gpufreq-v8-4-98fc1cc566a1@collabora.com
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/panthor/panthor_devfreq.c