RE: [PATCH 1/3] mmc: host: Quirk - Disable auto-cmd12 during ffu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> On 12/10/23 21:40, Avri Altman wrote:
> > Field Firmware Update (ffu) may use close-ended or open ended sequence.
> > Each such sequence is comprised of a write commands enclosed between 2
> > switch commands - to and from ffu mode.
> >
> > Some platforms generate auto command error interrupt when it
> > shouldn't, e.g. auto-cmd12 while in close-ended ffu sequence.
> >
> > Therefore, add a quirk that disable auto-cmd12 while close-ended ffu
> > is in progress.
> 
> If you hook the request function, maybe the existing SDHCI_AUTO_CMD12
> flag could be used instead of introducing a new quirk:
> 
> void sdhci_msm_request(etc)
> {
>         if data-mrq and using-auto-cmd-12
>                 if ffu
>                         host->flags &= ~SDHCI_AUTO_CMD12;
>                 else
>                         host->flags |= SDHCI_AUTO_CMD12;
>         sdhci_request(etc)
> }
Thanks - will do.

Thanks,
Avri




[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux