summaryrefslogtreecommitdiff
path: root/fs/yaffs2/yaffs_mtdif.h
diff options
context:
space:
mode:
authorFabien Parent <fparent@baylibre.com>2019-01-17 18:06:00 +0100
committerTom Rini <trini@konsulko.com>2019-01-26 08:13:54 -0500
commit924ed344a759f2d699ee397600af13363425ae90 (patch)
tree0c5f868bd2b0f69dda04add44770a971c0457c9c /fs/yaffs2/yaffs_mtdif.h
parent246fb9dd9c12f365bf3041547f2c4894dad4f1ab (diff)
mmc: mtk-sd: fix possible incomplete read ops
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@baylibre.com>
Diffstat (limited to 'fs/yaffs2/yaffs_mtdif.h')
0 files changed, 0 insertions, 0 deletions