[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <065301da8ae2$50fed190$f2fc74b0$@samsung.com>
Date: Wed, 10 Apr 2024 06:29:13 +0530
From: "Alim Akhtar" <alim.akhtar@...sung.com>
To: "'Peter Griffin'" <peter.griffin@...aro.org>, <mturquette@...libre.com>,
<sboyd@...nel.org>, <robh@...nel.org>, <krzk+dt@...nel.org>,
<conor+dt@...nel.org>, <vkoul@...nel.org>, <kishon@...nel.org>,
<avri.altman@....com>, <bvanassche@....org>, <s.nawrocki@...sung.com>,
<cw00.choi@...sung.com>, <jejb@...ux.ibm.com>, <martin.petersen@...cle.com>,
<chanho61.park@...sung.com>, <ebiggers@...nel.org>
Cc: <linux-scsi@...r.kernel.org>, <linux-phy@...ts.infradead.org>,
<devicetree@...r.kernel.org>, <linux-clk@...r.kernel.org>,
<linux-samsung-soc@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>, <tudor.ambarus@...aro.org>,
<andre.draszik@...aro.org>, <saravanak@...gle.com>,
<willmcvicker@...gle.com>
Subject: RE: [PATCH 09/17] phy: samsung-ufs: use
exynos_get_pmu_regmap_by_phandle() to obtain PMU regmap
Hi Peter,
> -----Original Message-----
> From: Peter Griffin <peter.griffin@...aro.org>
> Sent: Thursday, April 4, 2024 5:56 PM
> To: mturquette@...libre.com; sboyd@...nel.org; robh@...nel.org;
> krzk+dt@...nel.org; conor+dt@...nel.org; vkoul@...nel.org;
> kishon@...nel.org; alim.akhtar@...sung.com; avri.altman@....com;
> bvanassche@....org; s.nawrocki@...sung.com; cw00.choi@...sung.com;
> jejb@...ux.ibm.com; martin.petersen@...cle.com;
> chanho61.park@...sung.com; ebiggers@...nel.org
> Cc: linux-scsi@...r.kernel.org; linux-phy@...ts.infradead.org;
> devicetree@...r.kernel.org; linux-clk@...r.kernel.org; linux-samsung-
> soc@...r.kernel.org; linux-kernel@...r.kernel.org; linux-arm-
> kernel@...ts.infradead.org; tudor.ambarus@...aro.org;
> andre.draszik@...aro.org; saravanak@...gle.com;
> willmcvicker@...gle.com; Peter Griffin <peter.griffin@...aro.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@...aro.org>
> ---
Acked-by: Alim Akhtar <alim.akhtar@...sung.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
Powered by blists - more mailing lists