spi: mediatek: use correct mata->xfer_len when in fifo transfer
authorLeilk Liu <leilk.liu@mediatek.com>
Wed, 31 Oct 2018 08:49:16 +0000 (16:49 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 31 Oct 2018 10:00:10 +0000 (10:00 +0000)
commita4d8f64f7267a88d4688f5c216926f5f6cafbae6
treef368845c8aa106186b0bda49f43336b224600a72
parent3511ba7d4ca6f39e2d060bb94e42a41ad1fee7bf
spi: mediatek: use correct mata->xfer_len when in fifo transfer

when xfer_len is greater than 64 bytes and use fifo mode
to transfer, the actual length from the third time is mata->xfer_len
but not len in mtk_spi_interrupt().

Signed-off-by: Leilk Liu <leilk.liu@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mt65xx.c