On 13.2.2017 13:46, Anssi Hannula wrote: [...] > Fix the code to allow 4-bit and 8-bit widths even without high-speed > mode, as before. > > Tested with a Zynq-7000 PicoZed 7020 board. > > Signed-off-by: Anssi Hannula <anssi.hannula@xxxxxxxxxx> > Cc: Seungwon Jeon <tgih.jun@xxxxxxxxxxx> FYI, looks like the above CC bounced. > Cc: <stable@xxxxxxxxxxxxxxx> > Fixes: 577fb13199b1 ("mmc: rework selection of bus speed mode") > --- > drivers/mmc/core/mmc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c > index b61b52f9..0fccca0 100644 > --- a/drivers/mmc/core/mmc.c > +++ b/drivers/mmc/core/mmc.c > @@ -1706,10 +1706,10 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, > err = mmc_select_hs400(card); > if (err) > goto free_card; > - } else if (mmc_card_hs(card)) { > + } else { > /* Select the desired bus width optionally */ > err = mmc_select_bus_width(card); > - if (err > 0) { > + if (err > 0 && mmc_card_hs(card)) { > err = mmc_select_hs_ddr(card); > if (err) > goto free_card; -- Anssi Hannula / Bitwise Oy +358503803997 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html