summaryrefslogtreecommitdiff
path: root/src/southbridge/amd/sb700/spi.c
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineering.com>2016-08-03 14:49:01 -0500
committerTimothy Pearson <tpearson@raptorengineering.com>2016-08-04 21:47:50 +0200
commit751bff14db1c2f3bca90913a98dfcfe6d7401bf3 (patch)
treeb252185a1fa1ab3fc94fde26888cdcec772a3524 /src/southbridge/amd/sb700/spi.c
parent8ff24803a36d0fd7e02dc558141f5a3966815da5 (diff)
sb/amd/sb700: Do not reset fifo after skipping the sent bytes
Port commit e08493 to the SB700 platform Change-Id: Ie18c6cc0ccb31a0d16a80fcb4c2e147c19e228fe Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com> Reviewed-on: https://review.coreboot.org/16054 Tested-by: build bot (Jenkins) Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/southbridge/amd/sb700/spi.c')
-rw-r--r--src/southbridge/amd/sb700/spi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/southbridge/amd/sb700/spi.c b/src/southbridge/amd/sb700/spi.c
index 0641ff9ebd..fa316f16e6 100644
--- a/src/southbridge/amd/sb700/spi.c
+++ b/src/southbridge/amd/sb700/spi.c
@@ -134,8 +134,7 @@ int spi_xfer(struct spi_slave *slave, const void *dout,
for (count = 0; count < bytesout; count++) {
cmd = read8((void *)(spibar + 0x0C));
}
-
- reset_internal_fifo_pointer();
+ /* read response bytes */
for (count = 0; count < bytesin; count++, din++) {
*(u8 *)din = read8((void *)(spibar + 0x0C));
}