All SPI-based device drivers needs to call SPI_HWFEATURES() with zero in order to co-exist with drivers that use H/W features

This commit is contained in:
Gregory Nutt
2016-01-23 16:18:13 -06:00
parent c36c49657b
commit f6e49caba8
35 changed files with 88 additions and 42 deletions

View File

@@ -288,6 +288,7 @@ static void ee25xx_lock(FAR struct spi_dev_s *dev)
SPI_SETMODE(dev, CONFIG_EE25XX_SPIMODE);
SPI_SETBITS(dev, 8);
(void)SPI_HWFEATURES(dev, 0);
(void)SPI_SETFREQUENCY(dev, 10000000); /* This is the default speed */
}