From 337e1a370cc36f463d57b9a7e94e8eaf0c32ca3b Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Sat, 25 May 2019 23:50:20 +0800 Subject: [PATCH] spi: don't shift into "QPI" mode Assume we're not running in QPI mode. There were some issues involving corruption that were observed as a result of shifting into QPI mode when in SPI mode. Disable this change. Signed-off-by: Sean Cross --- sw/src/spi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sw/src/spi.c b/sw/src/spi.c index b0923b1..f6b33fb 100644 --- a/sw/src/spi.c +++ b/sw/src/spi.c @@ -640,9 +640,6 @@ int spiBeginWrite(uint32_t addr, const void *v_data, unsigned int count) { uint8_t spiReset(void) { // XXX You should check the "Ready" bit before doing this! - // Shift to QPI mode, then back to Single mode, to ensure - // we're actually in Single mode. - spiSetType(ST_QPI); spiSetType(ST_SINGLE); spiBegin();