This is a note to let you know that I've just added the patch titled soc: samsung: exynos-asv: don't defer early on not-supported SoCs to the 5.11-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: soc-samsung-exynos-asv-don-t-defer-early-on-not-supported-socs.patch and it can be found in the queue-5.11 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 0458b88267c637fb872b0359da9ff0b243081e9e Mon Sep 17 00:00:00 2001 From: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx> Date: Mon, 7 Dec 2020 20:05:14 +0100 Subject: soc: samsung: exynos-asv: don't defer early on not-supported SoCs From: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx> commit 0458b88267c637fb872b0359da9ff0b243081e9e upstream. Check if the SoC is really supported before gathering the needed resources. This fixes endless deferred probe on some SoCs other than Exynos5422 (like Exynos5410). Fixes: 5ea428595cc5 ("soc: samsung: Add Exynos Adaptive Supply Voltage driver") Cc: <stable@xxxxxxxxxxxxxxx> Signed-off-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx> Reviewed-by: Pankaj Dubey <pankaj.dubey@xxxxxxxxxxx> Link: https://lore.kernel.org/r/20201207190517.262051-2-krzk@xxxxxxxxxx Signed-off-by: Krzysztof Kozlowski <krzk@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/soc/samsung/exynos-asv.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- a/drivers/soc/samsung/exynos-asv.c +++ b/drivers/soc/samsung/exynos-asv.c @@ -119,11 +119,6 @@ static int exynos_asv_probe(struct platf u32 product_id = 0; int ret, i; - cpu_dev = get_cpu_device(0); - ret = dev_pm_opp_get_opp_count(cpu_dev); - if (ret < 0) - return -EPROBE_DEFER; - asv = devm_kzalloc(&pdev->dev, sizeof(*asv), GFP_KERNEL); if (!asv) return -ENOMEM; @@ -144,6 +139,11 @@ static int exynos_asv_probe(struct platf return -ENODEV; } + cpu_dev = get_cpu_device(0); + ret = dev_pm_opp_get_opp_count(cpu_dev); + if (ret < 0) + return -EPROBE_DEFER; + ret = of_property_read_u32(pdev->dev.of_node, "samsung,asv-bin", &asv->of_bin); if (ret < 0) Patches currently in stable-queue which might be from m.szyprowski@xxxxxxxxxxx are queue-5.11/arm-dts-exynos-correct-pmic-interrupt-trigger-level-.patch-27844 queue-5.11/soc-samsung-exynos-asv-don-t-defer-early-on-not-supported-socs.patch queue-5.11/arm-dts-exynos-correct-pmic-interrupt-trigger-level-.patch queue-5.11/misc-fastrpc-fix-incorrect-usage-of-dma_map_sgtable.patch queue-5.11/arm-dts-exynos-correct-pmic-interrupt-trigger-level-.patch-24783 queue-5.11/arm64-dts-exynos-correct-pmic-interrupt-trigger-leve.patch queue-5.11/arm-dts-exynos-correct-pmic-interrupt-trigger-level-.patch-22522