Skip to content

Commit f2c6d0f

Browse files
petegriffinvinodkoul
authored andcommitted
phy: samsung-ufs: use exynos_get_pmu_regmap_by_phandle() to obtain PMU regmap
This allows us to obtain a PMU regmap that is created by the exynos-pmu driver. Platforms such as gs101 require exynos-pmu created regmap to issue SMC calls for PMU register accesses. Existing platforms still get a MMIO regmap as before. Signed-off-by: Peter Griffin <[email protected]> Reviewed-by: André Draszik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 724e4fc commit f2c6d0f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <linux/phy/phy.h>
1919
#include <linux/platform_device.h>
2020
#include <linux/regmap.h>
21+
#include <linux/soc/samsung/exynos-pmu.h>
2122

2223
#include "phy-samsung-ufs.h"
2324

@@ -255,8 +256,8 @@ static int samsung_ufs_phy_probe(struct platform_device *pdev)
255256
goto out;
256257
}
257258

258-
phy->reg_pmu = syscon_regmap_lookup_by_phandle(
259-
dev->of_node, "samsung,pmu-syscon");
259+
phy->reg_pmu = exynos_get_pmu_regmap_by_phandle(dev->of_node,
260+
"samsung,pmu-syscon");
260261
if (IS_ERR(phy->reg_pmu)) {
261262
err = PTR_ERR(phy->reg_pmu);
262263
dev_err(dev, "failed syscon remap for pmu\n");

0 commit comments

Comments
 (0)