Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

phy: samsung-ufs: switch back to syscon_regmap_lookup_by_phandle()

Now exynos-pmu can register its custom regmap for gs101 via
of_syscon_register_regmap() we can switch back to the standard
syscon_regmap_lookup_by_phandle() api for obtaining the regmap.

Additionally add a Kconfig dependency for MFD_SYSCON.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Link: https://lore.kernel.org/r/20241029192107.2344279-1-peter.griffin@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Peter Griffin and committed by
Vinod Koul
0d9fff6c 0fd0b319

+4 -3
+1
drivers/phy/samsung/Kconfig
··· 33 33 tristate "Exynos SoC series UFS PHY driver" 34 34 depends on OF && (ARCH_EXYNOS || COMPILE_TEST) 35 35 select GENERIC_PHY 36 + select MFD_SYSCON 36 37 help 37 38 Enable this to support the Samsung Exynos SoC UFS PHY driver for 38 39 Samsung Exynos SoCs. This driver provides the interface for UFS host
+3 -3
drivers/phy/samsung/phy-samsung-ufs.c
··· 13 13 #include <linux/of.h> 14 14 #include <linux/io.h> 15 15 #include <linux/iopoll.h> 16 + #include <linux/mfd/syscon.h> 16 17 #include <linux/module.h> 17 18 #include <linux/phy/phy.h> 18 19 #include <linux/platform_device.h> 19 20 #include <linux/regmap.h> 20 - #include <linux/soc/samsung/exynos-pmu.h> 21 21 22 22 #include "phy-samsung-ufs.h" 23 23 ··· 268 268 goto out; 269 269 } 270 270 271 - phy->reg_pmu = exynos_get_pmu_regmap_by_phandle(dev->of_node, 272 - "samsung,pmu-syscon"); 271 + phy->reg_pmu = syscon_regmap_lookup_by_phandle(dev->of_node, 272 + "samsung,pmu-syscon"); 273 273 if (IS_ERR(phy->reg_pmu)) { 274 274 err = PTR_ERR(phy->reg_pmu); 275 275 dev_err(dev, "failed syscon remap for pmu\n");