]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpufreq: qcom-nvmem: add compatible fallback for ipq806x for no SMEM
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 5 Nov 2025 11:21:34 +0000 (12:21 +0100)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 10 Nov 2025 10:46:52 +0000 (16:16 +0530)
commit58f5d39d5ed8f2e43f230389ea0d59791afdcd55
treea101f2f589b5d25c3ce073e0901b85f4058d72a1
parent1971b18785d198ae5adbb861136ae5c0f195c14d
cpufreq: qcom-nvmem: add compatible fallback for ipq806x for no SMEM

On some IPQ806x SoC SMEM might be not initialized by SBL. This is the
case for some Google devices (the OnHub family) that can't make use of
SMEM to detect the SoC ID (and socinfo can't be used either as it does
depends on SMEM presence).

To handle these specific case, check if the SMEM is not initialized (by
checking if the qcom_smem_get_soc_id returns -ENODEV) and fallback to
OF machine compatible checking to identify the SoC variant.

Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-nvmem.c