[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ec4d793a90ed43af998c89b86b024e10@mail2012.asrmicro.com>
Date: Mon, 16 Jul 2018 08:23:59 +0000
From: Fang Hongjie(方洪杰)
<hongjiefang@...micro.com>
To: "ulf.hansson@...aro.org" <ulf.hansson@...aro.org>
CC: "adrian.hunter@...el.com" <adrian.hunter@...el.com>,
"shawn.lin@...k-chips.com" <shawn.lin@...k-chips.com>,
"linus.walleij@...aro.org" <linus.walleij@...aro.org>,
"wsa+renesas@...g-engineering.com" <wsa+renesas@...g-engineering.com>,
"bst@...gutronix.de" <bst@...gutronix.de>,
"jinqian@...gle.com" <jinqian@...gle.com>,
"chanho.min@....com" <chanho.min@....com>,
"kyle.roeschley@...com" <kyle.roeschley@...com>,
"linux-mmc@...r.kernel.org" <linux-mmc@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH V2] mmc: core: improve reasonableness of bus width
setting for HS400es
> mmc_select_hs400es() calls mmc_select_bus_width() which will continue
> to set 4bit transfer mode if fail to set 8bit mode. The bus width
> should not be set to 4bit in HS400es.
>
> When fail to set 8bit mode, need return error directly for HS400es.
>
> Signed-off-by: Hongjie Fang <hongjiefang@...micro.com>
> ---
> drivers/mmc/core/mmc.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
> index 4466f5d..4bd6c09 100644
> --- a/drivers/mmc/core/mmc.c
> +++ b/drivers/mmc/core/mmc.c
> @@ -1021,8 +1021,11 @@ static int mmc_select_bus_width(struct mmc_card *card)
> EXT_CSD_BUS_WIDTH,
> ext_csd_bits[idx],
> card->ext_csd.generic_cmd6_time);
> - if (err)
> + if (err) {
> + if (card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS400ES)
> + return err;
> continue;
> + }
>
> bus_width = bus_widths[idx];
> mmc_set_bus_width(host, bus_width);
> --
> 1.9.1
Ping.
Any suggestion for this patch ?
B&R
Hongjie
Powered by blists - more mailing lists