From 6773e9055f07274099f530c0862fddf591ac6a39 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 3 Aug 2016 14:49:01 -0500 Subject: [PATCH] UPSTREAM: sb/amd/sb700: Do not reset fifo after skipping the sent bytes Port commit e08493 to the SB700 platform BUG=None BRANCH=None TEST=None Change-Id: Ia61023e3cfa8be77514105b44011254fcaacca47 Signed-off-by: Timothy Pearson Reviewed-on: https://review.coreboot.org/16054 Tested-by: build bot (Jenkins) Tested-by: Raptor Engineering Automated Test Stand Reviewed-by: Patrick Georgi Reviewed-on: https://chromium-review.googlesource.com/368369 Commit-Ready: Furquan Shaikh Tested-by: Furquan Shaikh Reviewed-by: Aaron Durbin --- src/southbridge/amd/sb700/spi.c | 3 +-- 1 file changed, 1 insertion(+), 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)); }