Skip to contentSkip to conversation

spi/ich.c: Set the rx operation mode for ich 7

PATCH Superseded Bin Meng 1 participant 1 message Nov 1, 2014 SPI

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH v2 2/12 spi/ich.c: Set the rx operation mode for ich 7

ICH 7 SPI controller only supports array read command (03h). Fast array read command (0Bh) is not supported.

---
 drivers/spi/ich.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/spi/ich.c +4 -0
index c4d3a29..b356411 100644
@@ -141,6 +141,10 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
 	ich->slave.max_write_size = ctlr.databytes;
 	ich->speed = max_hz;
 
+	/* ICH 7 SPI controller only supports array read command */
+	if (ctlr.ich_version == 7)
+		ich->slave.op_mode_rx = SPI_OPM_RX_AS;
+
 	return &ich->slave;
 }
 
Signature · 1 line
1.8.2.1