All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFT only] mmc: tmio: remove workaround for NON_REMOVABLE
@ 2021-02-15 10:17 Wolfram Sang
  2021-02-15 10:35 ` Geert Uytterhoeven
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Wolfram Sang @ 2021-02-15 10:17 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: Geert Uytterhoeven, 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 <wsa+renesas@sang-engineering.com>
---

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(-)

diff --git a/drivers/mmc/host/tmio_mmc_core.c b/drivers/mmc/host/tmio_mmc_core.c
index 49c2d406c48e..2478a91e84b2 100644
--- a/drivers/mmc/host/tmio_mmc_core.c
+++ b/drivers/mmc/host/tmio_mmc_core.c
@@ -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.
-- 
2.30.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH RFT only] mmc: tmio: remove workaround for NON_REMOVABLE
  2021-02-15 10:17 [PATCH RFT only] mmc: tmio: remove workaround for NON_REMOVABLE Wolfram Sang
@ 2021-02-15 10:35 ` Geert Uytterhoeven
  2021-02-16 12:44   ` Geert Uytterhoeven
  2021-02-15 17:17 ` Sergei Shtylyov
  2021-02-16 21:58 ` Niklas Söderlund
  2 siblings, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2021-02-15 10:35 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: Linux-Renesas

Hi Wolfram,

On Mon, Feb 15, 2021 at 11:18 AM Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> 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 <wsa+renesas@sang-engineering.com>
> ---
>
> 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

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH RFT only] mmc: tmio: remove workaround for NON_REMOVABLE
  2021-02-15 10:17 [PATCH RFT only] mmc: tmio: remove workaround for NON_REMOVABLE Wolfram Sang
  2021-02-15 10:35 ` Geert Uytterhoeven
@ 2021-02-15 17:17 ` Sergei Shtylyov
  2021-02-16 21:58 ` Niklas Söderlund
  2 siblings, 0 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2021-02-15 17:17 UTC (permalink / raw)
  To: Wolfram Sang, linux-renesas-soc; +Cc: Geert Uytterhoeven

On 2/15/21 1:17 PM, Wolfram Sang wrote:

> 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

   We the workaround? The royal "we"? :-)

> be removed!
> 
> Not-yet-Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
[...]

MBR, Sergei

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH RFT only] mmc: tmio: remove workaround for NON_REMOVABLE
  2021-02-15 10:35 ` Geert Uytterhoeven
@ 2021-02-16 12:44   ` Geert Uytterhoeven
  0 siblings, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2021-02-16 12:44 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: Linux-Renesas

Hi Wolfram,

On Mon, Feb 15, 2021 at 11:35 AM Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> On Mon, Feb 15, 2021 at 11:18 AM Wolfram Sang
> <wsa+renesas@sang-engineering.com> wrote:
> > 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 <wsa+renesas@sang-engineering.com>
> > ---
> >
> > 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
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH RFT only] mmc: tmio: remove workaround for NON_REMOVABLE
  2021-02-15 10:17 [PATCH RFT only] mmc: tmio: remove workaround for NON_REMOVABLE Wolfram Sang
  2021-02-15 10:35 ` Geert Uytterhoeven
  2021-02-15 17:17 ` Sergei Shtylyov
@ 2021-02-16 21:58 ` Niklas Söderlund
  2 siblings, 0 replies; 5+ messages in thread
From: Niklas Söderlund @ 2021-02-16 21:58 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: linux-renesas-soc, Geert Uytterhoeven

Hi Wolfram,

Thanks for your patch.

On 2021-02-15 11:17:54 +0100, Wolfram Sang wrote:
> 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 <wsa+renesas@sang-engineering.com>

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.

Tested-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>

> ---
> 
> 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(-)
> 
> diff --git a/drivers/mmc/host/tmio_mmc_core.c b/drivers/mmc/host/tmio_mmc_core.c
> index 49c2d406c48e..2478a91e84b2 100644
> --- a/drivers/mmc/host/tmio_mmc_core.c
> +++ b/drivers/mmc/host/tmio_mmc_core.c
> @@ -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.
> -- 
> 2.30.0
> 

-- 
Regards,
Niklas Söderlund

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-16 21:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-15 10:17 [PATCH RFT only] mmc: tmio: remove workaround for NON_REMOVABLE Wolfram Sang
2021-02-15 10:35 ` Geert Uytterhoeven
2021-02-16 12:44   ` Geert Uytterhoeven
2021-02-15 17:17 ` Sergei Shtylyov
2021-02-16 21:58 ` Niklas Söderlund

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.