Re: [PATCH V2] mmc: sdhci-msm: Avoid early clock doubling during HS400 transition

From: Ulf Hansson

Date: Tue Nov 25 2025 - 08:02:44 EST


On Mon, 17 Nov 2025 at 11:55, Ulf Hansson <ulf.hansson@xxxxxxxxxx> wrote:
>
> On Fri, 14 Nov 2025 at 09:28, Sarthak Garg
> <sarthak.garg@xxxxxxxxxxxxxxxx> wrote:
> >
> > According to the hardware programming guide, the clock frequency must
> > remain below 52MHz during the transition to HS400 mode.
> >
> > However,in the current implementation, the timing is set to HS400 (a
> > DDR mode) before adjusting the clock. This causes the clock to double
> > prematurely to 104MHz during the transition phase, violating the
> > specification and potentially resulting in CRC errors or CMD timeouts.
> >
> > This change ensures that clock doubling is avoided during intermediate
> > transitions and is applied only when the card requires a 200MHz clock
> > for HS400 operation.
> >
> > Signed-off-by: Sarthak Garg <sarthak.garg@xxxxxxxxxxxxxxxx>
>
> It sounds to me that we should add a fixes/stable tag for this, right?

I applied this for next and added a stable tag, please let me know if
you prefer something different.

[...]

Kind regards
Uffe