[RFC] mmc: meson-gx-mmc: add delay during poweroff
Da Xue
da at libre.computer
Wed Jul 2 10:22:15 PDT 2025
On Wed, Jul 2, 2025 at 1:07 PM Jerome Brunet <jbrunet at baylibre.com> wrote:
...
> If, as the description suggest, the regulator framework somehow ignore
> the timing set in DT, maybe this is what needs to be checked ?
The regulator framework only cares about timing for regulator on.
Regulator off just turns off the regulator and returns without delay.
The code makes incorrect assumptions. Then the kernel resets the board
without having enough time.
I can patch the regulator framework with the same code for regulator
on but that seems very hazardous given how many things might already
depend on the original behavior of returning immediately.
>
> TBH I would suspect the delays before the regulator framework itself.
>
> Those assert/de-assert delays tend to be just copied from boards to
> boards. Maybe some boards need different delays. If those are too short
> for the actual HW, an ON -> OFF -> ON could result in a NOP.
50ms should be sufficient for all boards as many boards don't even
have this functionality. < 30ms is sufficient most of the time.
>
...
>
> --
> Jerome
More information about the linux-amlogic
mailing list