Re: [PATCH v4] mmc: litex_mmc: Set mandatory idle clocks before CMD0

From: Gabriel L. Somlo

Date: Tue May 19 2026 - 19:49:09 EST


On Tue, May 19, 2026 at 10:52:10AM +0300, Andy Shevchenko wrote:
> On Tue, May 19, 2026 at 5:51 AM Inochi Amaoto <inochiama@xxxxxxxxx> wrote:
> > On Mon, May 18, 2026 at 06:45:26PM -0400, Gabriel L. Somlo wrote:
>
> ...
>
> > /* Update sd_clk */
> > - if (ios->clock != host->sd_clk)
> > + if (ios->clock != host->sd_clk) {
> > litex_mmc_setclk(host, ios->clock);
> > + }
>
> FWIW, it's a stray change.

and I'm still getting:

[ 6.508084] mmc0: invalid bus width
[ 6.510652] mmc0: error -22 whilst initialising SD card

when booting with this change on 64-bit litex/rocket.

Thanks,
--Gabriel