Re: [PATCH] sunxi: mmc: A20: Fix MMC optimisation

2021-09-04 Thread Jaehoon Chung
Andre Przywara wrote on 9/4/21 12:49 AM: > Some SoCs (as seen on A20) seem to misreport the MMC FIFO level if the > FIFO is completely full: the level size reads as zero, but the FIFO_FULL > bit is set. We won't do a single iteration of the read loop in this > case, so will be stuck forever. > >

[PATCH] sunxi: mmc: A20: Fix MMC optimisation

2021-09-03 Thread Andre Przywara
Some SoCs (as seen on A20) seem to misreport the MMC FIFO level if the FIFO is completely full: the level size reads as zero, but the FIFO_FULL bit is set. We won't do a single iteration of the read loop in this case, so will be stuck forever. Check for this situation and use a safe minimal FIFO s