Message ID | 20180717145216.16840-2-niklas.soderlund+renesas@ragnatech.se (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Tue, Jul 17, 2018 at 04:52:13PM +0200, Niklas Söderlund wrote: > From: Masaharu Hayakawa <masaharu.hayakawa.ry@renesas.com> > > If the return value of mmc_send_tuning() is error other than -EILSEQ, > the tuning fails and process goes out of for_loop. The correct > processing is to judge their TAP as not good (NG) and continue. > > Signed-off-by: Masaharu Hayakawa <masaharu.hayakawa.ry@renesas.com> > [Niklas: update commit message] > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> > Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> > Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Simon Horman <horms+renesas@verge.net.au> -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tue, Jul 17, 2018 at 04:52:13PM +0200, Niklas Söderlund wrote: > From: Masaharu Hayakawa <masaharu.hayakawa.ry@renesas.com> > > If the return value of mmc_send_tuning() is error other than -EILSEQ, > the tuning fails and process goes out of for_loop. The correct > processing is to judge their TAP as not good (NG) and continue. > > Signed-off-by: Masaharu Hayakawa <masaharu.hayakawa.ry@renesas.com> > [Niklas: update commit message] > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> > Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> > Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Re-tested this with Simon's HS400 patches. Actually, this patch is needed to make HS400 work on my M3-N board. Simon, did I get it correctly, it worked without this patch for you?
On Tue, Jul 24, 2018 at 12:42:54PM +0200, Wolfram Sang wrote: > On Tue, Jul 17, 2018 at 04:52:13PM +0200, Niklas Söderlund wrote: > > From: Masaharu Hayakawa <masaharu.hayakawa.ry@renesas.com> > > > > If the return value of mmc_send_tuning() is error other than -EILSEQ, > > the tuning fails and process goes out of for_loop. The correct > > processing is to judge their TAP as not good (NG) and continue. > > > > Signed-off-by: Masaharu Hayakawa <masaharu.hayakawa.ry@renesas.com> > > [Niklas: update commit message] > > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> > > Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> > > Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com> > > Re-tested this with Simon's HS400 patches. > > Actually, this patch is needed to make HS400 work on my M3-N board. > > Simon, did I get it correctly, it worked without this patch for you? I think so but I would have to re-test for sure as at some point I had a variant of this patch in my patch stack. -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
> > Simon, did I get it correctly, it worked without this patch for you? > > I think so but I would have to re-test for sure as at some > point I had a variant of this patch in my patch stack. Not needed IMO. We had this case already that some memories work without this patch and some don't.
diff --git a/drivers/mmc/host/tmio_mmc_core.c b/drivers/mmc/host/tmio_mmc_core.c index 416f9e078fda8b24..72ac806e0c762d83 100644 --- a/drivers/mmc/host/tmio_mmc_core.c +++ b/drivers/mmc/host/tmio_mmc_core.c @@ -818,8 +818,6 @@ static int tmio_mmc_execute_tuning(struct mmc_host *mmc, u32 opcode) host->prepare_tuning(host, i % host->tap_num); ret = mmc_send_tuning(mmc, opcode, NULL); - if (ret && ret != -EILSEQ) - goto out; if (ret == 0) set_bit(i, host->taps);