]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cpufreq: ti-cpufreq: Introduce quirks to handle syscon fails appropriately
authorNishanth Menon <nm@ti.com>
Wed, 28 Aug 2024 13:19:15 +0000 (08:19 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:10:45 +0000 (15:10 +0200)
commitb6e1cdf2d625c5e2f2034b723f85bd85392cf915
treee0c963cee918598e56f761b6bec66478eecd76f2
parent3e2b7c9d5ec8df52ea076e7a4b18b699a6fca907
cpufreq: ti-cpufreq: Introduce quirks to handle syscon fails appropriately

[ Upstream commit abc00ffda43bd4ba85896713464c7510c39f8165 ]

Commit b4bc9f9e27ed ("cpufreq: ti-cpufreq: add support for omap34xx
and omap36xx") introduced special handling for OMAP3 class devices
where syscon node may not be present. However, this also creates a bug
where the syscon node is present, however the offset used to read
is beyond the syscon defined range.

Fix this by providing a quirk option that is populated when such
special handling is required. This allows proper failure for all other
platforms when the syscon node and efuse offsets are mismatched.

Fixes: b4bc9f9e27ed ("cpufreq: ti-cpufreq: add support for omap34xx and omap36xx")
Signed-off-by: Nishanth Menon <nm@ti.com>
Tested-by: Dhruva Gole <d-gole@ti.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/cpufreq/ti-cpufreq.c