Skip to contentSkip to conversation

soc: imx: imx8mp-blk-ctrl: Do not set power domain name

PATCH In review Marek Vasut 2 participants 3 messages Dec 17, 2022 – Jan 18, 2023 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: imx: imx8mp-blk-ctrl: Do not set power domain name

Similar to commit b64b46fbaa1da626324f304bcb5fe0662f28b6ce

Domain name set confuses the sysfs cleanup path since the rename is done after the device registration.

Fixes 556f5cf9568a ("soc: imx: add i.MX8MP HSIO blk-ctrl")

---
Cc: Adam Ford <[email protected]>
Cc: Benjamin Gaignard <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Lucas Stach <[email protected]>
Cc: Marco Felsch <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: NXP Linux Team <[email protected]>
Cc: Paul Elder <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Pengutronix Kernel Team <[email protected]>
Cc: Sascha Hauer <[email protected]>
Cc: Shawn Guo <[email protected]>
To: [email protected]

---
 drivers/soc/imx/imx8mp-blk-ctrl.c | 1 -
 1 file changed, 1 deletion(-)
drivers/soc/imx/imx8mp-blk-ctrl.c +0 -1
index b7d4161fcda9c..99fdb35d2b474 100644
@@ -560,7 +560,6 @@ static int imx8mp_blk_ctrl_probe(struct platform_device *pdev)
 			ret = PTR_ERR(domain->power_dev);
 			goto cleanup_pds;
 		}
-		dev_set_name(domain->power_dev, "%s", data->name);
 
 		domain->genpd.name = data->name;
 		domain->genpd.power_on = imx8mp_blk_ctrl_power_on;
Signature · 7 lines
2.35.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw
Quoted 7 lines · Marek Vasut

Similar to commit b64b46fbaa1da626324f304bcb5fe0662f28b6ce

Domain name set confuses the sysfs cleanup path since the rename is done after the device registration.

Fixes 556f5cf9568a ("soc: imx: add i.MX8MP HSIO blk-ctrl")

I'm afraid that without this patch, linux 6.1 does not even boot on i.MX8M Plus . It would be good to apply it.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#2 lore raw

Hi Marek,

Am Dienstag, dem 17.01.2023 um 22:45 +0100 schrieb Marek Vasut:

Quoted 11 lines · Marek Vasut
Quoted 7 lines

Similar to commit b64b46fbaa1da626324f304bcb5fe0662f28b6ce

Domain name set confuses the sysfs cleanup path since the rename is done after the device registration.

Fixes 556f5cf9568a ("soc: imx: add i.MX8MP HSIO blk-ctrl")

I'm afraid that without this patch, linux 6.1 does not even boot on i.MX8M Plus . It would be good to apply it.

The equivalent patch 21b84ebeee79 ("soc: imx: imx8mp-blk-ctrl: don't set power device name") is already in Shawns fixes branch.

Regards,
Lucas

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel