summaryrefslogtreecommitdiff
path: root/src/soc/intel/quark/spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/quark/spi.c')
-rw-r--r--src/soc/intel/quark/spi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/soc/intel/quark/spi.c b/src/soc/intel/quark/spi.c
index 1d257a563e..c943567e1d 100644
--- a/src/soc/intel/quark/spi.c
+++ b/src/soc/intel/quark/spi.c
@@ -166,7 +166,10 @@ static int xfer(const struct spi_slave *slave, const void *dout,
ctrlr->address = (data[0] << 16)
| (data[1] << 8)
| data[2];
+
+ /* read in order to flush the write buffer */
status = ctrlr->address;
+
data += 3;
bytesout -= 3;
}