Skip to content

Commit 0d9fff6

Browse files
petegriffinvinodkoul
authored andcommitted
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>
1 parent 0fd0b31 commit 0d9fff6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

drivers/phy/samsung/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ config PHY_SAMSUNG_UFS
3333
tristate "Exynos SoC series UFS PHY driver"
3434
depends on OF && (ARCH_EXYNOS || COMPILE_TEST)
3535
select GENERIC_PHY
36+
select MFD_SYSCON
3637
help
3738
Enable this to support the Samsung Exynos SoC UFS PHY driver for
3839
Samsung Exynos SoCs. This driver provides the interface for UFS host

drivers/phy/samsung/phy-samsung-ufs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
#include <linux/of.h>
1414
#include <linux/io.h>
1515
#include <linux/iopoll.h>
16+
#include <linux/mfd/syscon.h>
1617
#include <linux/module.h>
1718
#include <linux/phy/phy.h>
1819
#include <linux/platform_device.h>
1920
#include <linux/regmap.h>
20-
#include <linux/soc/samsung/exynos-pmu.h>
2121

2222
#include "phy-samsung-ufs.h"
2323

@@ -268,8 +268,8 @@ static int samsung_ufs_phy_probe(struct platform_device *pdev)
268268
goto out;
269269
}
270270

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");
273273
if (IS_ERR(phy->reg_pmu)) {
274274
err = PTR_ERR(phy->reg_pmu);
275275
dev_err(dev, "failed syscon remap for pmu\n");

0 commit comments

Comments
 (0)