[U-Boot] [U-Boot, 1/2] mmc: mtk-sd: fix possible incomplete read ops

Tom Rini trini at konsulko.com
Sun Jan 27 03:52:19 UTC 2019


On Thu, Jan 17, 2019 at 06:06:00PM +0100, Fabien Parent wrote:

> The code is checking for incomplete read when it see the INT_XFER_COMPL
> flag, but it forget to first check whether there is anything left in the
> FIFO to copy to the RX buffer. This means that sometimes we will get
> errors because of erroneous incomplete read operation.
> 
> This commit fixes the driver re-ordering the code so that we first
> check for data inside the RX fifo and only after check the status
> of the INT_XFER_COMPL flag.
> 
> Signed-off-by: Fabien Parent <fparent at baylibre.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190126/d091f59b/attachment.sig>


More information about the U-Boot mailing list