diff options
author | Victor Chong <victor.chong@linaro.org> | 2019-04-12 16:59:23 +0100 |
---|---|---|
committer | Joakim Bech <joakim.bech@linaro.org> | 2019-04-16 21:28:59 +0700 |
commit | 074131b040453b81e9ad44d83804a876c9acbde8 (patch) | |
tree | 52ecb3cf6696d1e15b71dbc89c500cb74070f6b9 | |
parent | e4b2e43c44934b500dbb9dbf7207d9bcd7a2ab77 (diff) |
pl022_spi: fix non-trivial typo
read16() was replaced with io_read8() instead of io_read16() so fix it.
Fixes: 918bb3a5 ("core: upgrade from write32() to io_write32() and friends")
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
-rw-r--r-- | core/drivers/pl022_spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/drivers/pl022_spi.c b/core/drivers/pl022_spi.c index 870cd3e6..33cef4be 100644 --- a/core/drivers/pl022_spi.c +++ b/core/drivers/pl022_spi.c @@ -204,7 +204,7 @@ static enum spi_result pl022_txrx16(struct spi_chip *chip, uint16_t *wdat, if (rdat) if (io_read8(pd->base + SSPSR) & SSPSR_RNE) { /* rx 1 packet */ - rdat[j++] = io_read8(pd->base + SSPDR); + rdat[j++] = io_read16(pd->base + SSPDR); } } @@ -213,7 +213,7 @@ static enum spi_result pl022_txrx16(struct spi_chip *chip, uint16_t *wdat, while ((j < num_pkts) && (io_read8(pd->base + SSPSR) & SSPSR_RNE)) { /* rx 1 packet */ - rdat[j++] = io_read8(pd->base + SSPDR); + rdat[j++] = io_read16(pd->base + SSPDR); } if (j < num_pkts) { |