Skip to contentSkip to conversation

mmc: tmio: remove workaround for NON_REMOVABLE

PATCH In review Wolfram Sang 4 participants 5 messages Feb 15, 2021 – Feb 16, 2021

Subsystems (2)
lore
Share & tools
lore

Wolfram Sang

author maintainer
#0 lore raw

PATCH 1/1 mmc: tmio: remove workaround for NON_REMOVABLE

RPM handling has been improved twice since this comment, and also SCC handling has been improved a lot. Time to test if we the workaround can be removed!

Not-yet-Signed-off-by Wolfram Sang <[email protected]>

---

I'd be very grateful if you guys could have this patch boot-tested with your boardfarms. If the failure is still there, then it used to hang when detecting the eMMC. Maybe these days eMMC will just not show up. But hopefully all is well now. This always was difficult to trigger, so a wide test coverage would be highly appreciated. It works for me(tm), but that is not enough here.

 drivers/mmc/host/tmio_mmc_core.c | 9 ---------
 1 file changed, 9 deletions(-)
drivers/mmc/host/tmio_mmc_core.c +0 -9
index 49c2d406c48e..2478a91e84b2 100644
@@ -1160,15 +1160,6 @@ int tmio_mmc_host_probe(struct tmio_mmc_host *_host)
 				  mmc->caps & MMC_CAP_NEEDS_POLL ||
 				  !mmc_card_is_removable(mmc));
 
-	/*
-	 * On Gen2+, eMMC with NONREMOVABLE currently fails because native
-	 * hotplug gets disabled. It seems RuntimePM related yet we need further
-	 * research. Since we are planning a PM overhaul anyway, let's enforce
-	 * for now the device being active by enabling native hotplug always.
-	 */
-	if (pdata->flags & TMIO_MMC_MIN_RCAR2)
-		_host->native_hotplug = true;
-
 	/*
 	 * While using internal tmio hardware logic for card detection, we need
 	 * to ensure it stays powered for it to work.
Signature · 1 line
2.30.0
#1 lore raw

Hi Wolfram,

Quoted 5 lines · Wolfram Sang

RPM handling has been improved twice since this comment, and also SCC handling has been improved a lot. Time to test if we the workaround can be removed!

Not-yet-Signed-off-by Wolfram Sang <[email protected]>
Quoted 8 lines

---

I'd be very grateful if you guys could have this patch boot-tested with your boardfarms. If the failure is still there, then it used to hang when detecting the eMMC. Maybe these days eMMC will just not show up. But hopefully all is well now. This always was difficult to trigger, so a wide test coverage would be highly appreciated. It works for me(tm), but that is not enough here.

Thank you, I'll give it a try on tomorrow's renesas-drivers release.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
#2 lore raw

Hi Wolfram,

Quoted 9 lines · Geert Uytterhoeven
Quoted 7 lines · Wolfram Sang

RPM handling has been improved twice since this comment, and also SCC handling has been improved a lot. Time to test if we the workaround can be removed!

Not-yet-Signed-off-by Wolfram Sang <[email protected]>

---

Quoted 8 lines
Quoted 6 lines

I'd be very grateful if you guys could have this patch boot-tested with your boardfarms. If the failure is still there, then it used to hang when detecting the eMMC. Maybe these days eMMC will just not show up. But hopefully all is well now. This always was difficult to trigger, so a wide test coverage would be highly appreciated. It works for me(tm), but that is not enough here.

Thank you, I'll give it a try on tomorrow's renesas-drivers release.

No regressions detected during booting, so

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Tested-by on v1 1/1
#4 lore raw
In reply to Wolfram Sang

Hi Wolfram,

Thanks for your patch.

Quoted 5 lines · Wolfram Sang

RPM handling has been improved twice since this comment, and also SCC handling has been improved a lot. Time to test if we the workaround can be removed!

Not-yet-Signed-off-by Wolfram Sang <[email protected]>

I boot tested this on M3W, M3N, H3-ES2, H3-ES1 and Koelsch without any noticeable issues. It feels nice that we can get rid of this.

Quoted 35 lines

---

I'd be very grateful if you guys could have this patch boot-tested with your boardfarms. If the failure is still there, then it used to hang when detecting the eMMC. Maybe these days eMMC will just not show up. But hopefully all is well now. This always was difficult to trigger, so a wide test coverage would be highly appreciated. It works for me(tm), but that is not enough here.

 drivers/mmc/host/tmio_mmc_core.c | 9 ---------
 1 file changed, 9 deletions(-)
drivers/mmc/host/tmio_mmc_core.c +0 -9
index 49c2d406c48e..2478a91e84b2 100644
@@ -1160,15 +1160,6 @@ int tmio_mmc_host_probe(struct tmio_mmc_host *_host)
 				  mmc->caps & MMC_CAP_NEEDS_POLL ||
 				  !mmc_card_is_removable(mmc));
 
-	/*
-	 * On Gen2+, eMMC with NONREMOVABLE currently fails because native
-	 * hotplug gets disabled. It seems RuntimePM related yet we need further
-	 * research. Since we are planning a PM overhaul anyway, let's enforce
-	 * for now the device being active by enabling native hotplug always.
-	 */
-	if (pdata->flags & TMIO_MMC_MIN_RCAR2)
-		_host->native_hotplug = true;
-
 	/*
 	 * While using internal tmio hardware logic for card detection, we need
 	 * to ensure it stays powered for it to work.
Signature · 1 line
2.30.0
Signature · 2 lines
Regards,
Niklas Söderlund