Skip to contentSkip to conversation

PM / AVS: rockchip-io: fix the supply naming for the emmc supply on px30

PATCH In review Heiko Stuebner 2 participants 3 messages Jan 21, 2020 – Mar 11, 2020 Arm Rockchip

lore
Share & tools
lore

Heiko Stuebner

author maintainer
#0 lore raw

PATCH 1/1 PM / AVS: rockchip-io: fix the supply naming for the emmc supply on px30

From: Heiko Stuebner <[email protected]>

The supply going to the emmc/flash is named vccio6, not vccio0 and while the code does this correctly already, the comments and error output do not.

So just change these values to the correct ones.

---
 drivers/power/avs/rockchip-io-domain.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/power/avs/rockchip-io-domain.c +3 -3
index 398fc954419e..eece97f97ef8 100644
@@ -152,18 +152,18 @@ static void px30_iodomain_init(struct rockchip_iodomain *iod)
 	int ret;
 	u32 val;
 
-	/* if no VCCIO0 supply we should leave things alone */
+	/* if no VCCIO6 supply we should leave things alone */
 	if (!iod->supplies[PX30_IO_VSEL_VCCIO6_SUPPLY_NUM].reg)
 		return;
 
 	/*
-	 * set vccio0 iodomain to also use this framework
+	 * set vccio6 iodomain to also use this framework
 	 * instead of a special gpio.
 	 */
 	val = PX30_IO_VSEL_VCCIO6_SRC | (PX30_IO_VSEL_VCCIO6_SRC << 16);
 	ret = regmap_write(iod->grf, PX30_IO_VSEL, val);
 	if (ret < 0)
-		dev_warn(iod->dev, "couldn't update vccio0 ctrl\n");
+		dev_warn(iod->dev, "couldn't update vccio6 ctrl\n");
 }
 
 static void rk3288_iodomain_init(struct rockchip_iodomain *iod)
Signature · 1 line
2.24.1
author maintainer
#1 lore raw

Hi,

Am Dienstag, 21. Januar 2020, 23:28:59 CET schrieb Heiko Stuebner:

Quoted 8 lines

From: Heiko Stuebner <[email protected]>

The supply going to the emmc/flash is named vccio6, not vccio0 and while the code does this correctly already, the comments and error output do not.

So just change these values to the correct ones.

oh so gently ping on this tiny patch ;-)

Thanks for considering
Heiko

Quoted 31 lines
---
 drivers/power/avs/rockchip-io-domain.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/power/avs/rockchip-io-domain.c +3 -3
index 398fc954419e..eece97f97ef8 100644
@@ -152,18 +152,18 @@ static void px30_iodomain_init(struct rockchip_iodomain *iod)
 	int ret;
 	u32 val;
 
-	/* if no VCCIO0 supply we should leave things alone */
+	/* if no VCCIO6 supply we should leave things alone */
 	if (!iod->supplies[PX30_IO_VSEL_VCCIO6_SUPPLY_NUM].reg)
 		return;
 
 	/*
-	 * set vccio0 iodomain to also use this framework
+	 * set vccio6 iodomain to also use this framework
 	 * instead of a special gpio.
 	 */
 	val = PX30_IO_VSEL_VCCIO6_SRC | (PX30_IO_VSEL_VCCIO6_SRC << 16);
 	ret = regmap_write(iod->grf, PX30_IO_VSEL, val);
 	if (ret < 0)
-		dev_warn(iod->dev, "couldn't update vccio0 ctrl\n");
+		dev_warn(iod->dev, "couldn't update vccio6 ctrl\n");
 }
 
 static void rk3288_iodomain_init(struct rockchip_iodomain *iod)
Reviewed-by on v1 1/1
#2 lore raw
In reply to Heiko Stuebner
Quoted 8 lines · Heiko Stuebner

From: Heiko Stuebner <[email protected]>

The supply going to the emmc/flash is named vccio6, not vccio0 and while the code does this correctly already, the comments and error output do not.

So just change these values to the correct ones.

Raafael, feel free to apply directly.

Thanks,

Kevin