> > 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