[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <a70a17e3873f84681de379bde82d49ab96e70d21.camel@gmail.com>
Date: Mon, 12 Apr 2021 19:46:56 +0200
From: Bean Huo <huobean@...il.com>
To: Ulf Hansson <ulf.hansson@...aro.org>
Cc: "Shimoda, Yoshihiro" <yoshihiro.shimoda.uh@...esas.com>,
Wolfram Sang <wsa+renesas@...g-engineering.com>,
Adrian Hunter <adrian.hunter@...el.com>,
linux-mmc <linux-mmc@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Bean Huo <beanhuo@...ron.com>
Subject: Re: [PATCH v3 2/2] mmc: core: Let sanitize not retry in case of
timeout/failure
On Mon, 2021-04-12 at 09:50 +0200, Ulf Hansson wrote:
> > diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c
> > index 8bfd4d95b386..9778093d7006 100644
> > --- a/drivers/mmc/core/block.c
> > +++ b/drivers/mmc/core/block.c
> > @@ -836,7 +836,7 @@ static inline int mmc_blk_part_switch(struct
> > mmc_card *card,
> > ret = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL,
> > EXT_CSD_PART_CONFIG, part_config,
> > - card->ext_csd.part_time);
> > + card->ext_csd.part_time,
> > MMC_CMD_RETRIES);
>
>
> I would rather not change the mmc_switch() function definition, but
>
> only __mmc_switch(). Just let mmc_switch() pass another in-parameter
>
> (MMC_CMD_RETRIES) to __mmc_switch(), which means all callers of
>
> mmc_switch() doesn't need to get changed, but only callers of
>
> __mmc_switch().
>
>
>
> [...]
>
>
>
Hi Uffe,
Good point, I will change it in the next version of this patch.
thanks,
Bean
> Kind regards
>
> Uffe
Powered by blists - more mailing lists