[PATCH 09/17] phy: samsung-ufs: use exynos_get_pmu_regmap_by_phandle() to obtain PMU regmap
Alim Akhtar
alim.akhtar at samsung.com
Tue Apr 9 17:59:13 PDT 2024
Hi Peter,
> -----Original Message-----
> From: Peter Griffin <peter.griffin at linaro.org>
> Sent: Thursday, April 4, 2024 5:56 PM
> To: mturquette at baylibre.com; sboyd at kernel.org; robh at kernel.org;
> krzk+dt at kernel.org; conor+dt at kernel.org; vkoul at kernel.org;
> kishon at kernel.org; alim.akhtar at samsung.com; avri.altman at wdc.com;
> bvanassche at acm.org; s.nawrocki at samsung.com; cw00.choi at samsung.com;
> jejb at linux.ibm.com; martin.petersen at oracle.com;
> chanho61.park at samsung.com; ebiggers at kernel.org
> Cc: linux-scsi at vger.kernel.org; linux-phy at lists.infradead.org;
> devicetree at vger.kernel.org; linux-clk at vger.kernel.org; linux-samsung-
> soc at vger.kernel.org; linux-kernel at vger.kernel.org; linux-arm-
> kernel at lists.infradead.org; tudor.ambarus at linaro.org;
> andre.draszik at linaro.org; saravanak at google.com;
> willmcvicker at google.com; Peter Griffin <peter.griffin at linaro.org>
> Subject: [PATCH 09/17] 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 <peter.griffin at linaro.org>
> ---
Acked-by: Alim Akhtar <alim.akhtar at samsung.com>
> drivers/phy/samsung/phy-samsung-ufs.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/phy/samsung/phy-samsung-ufs.c
> b/drivers/phy/samsung/phy-samsung-ufs.c
> index 183c88e3d1ec..c567efafc30f 100644
> --- a/drivers/phy/samsung/phy-samsung-ufs.c
> +++ b/drivers/phy/samsung/phy-samsung-ufs.c
> @@ -18,6 +18,7 @@
> #include <linux/phy/phy.h>
> #include <linux/platform_device.h>
> #include <linux/regmap.h>
> +#include <linux/soc/samsung/exynos-pmu.h>
>
> #include "phy-samsung-ufs.h"
>
> @@ -255,8 +256,8 @@ static int samsung_ufs_phy_probe(struct
> platform_device *pdev)
> goto out;
> }
>
> - phy->reg_pmu = syscon_regmap_lookup_by_phandle(
> - dev->of_node, "samsung,pmu-syscon");
> + phy->reg_pmu = exynos_get_pmu_regmap_by_phandle(dev-
> >of_node,
> + "samsung,pmu-
> syscon");
> if (IS_ERR(phy->reg_pmu)) {
> err = PTR_ERR(phy->reg_pmu);
> dev_err(dev, "failed syscon remap for pmu\n");
> --
> 2.44.0.478.gd926399ef9-goog
More information about the linux-arm-kernel
mailing list