MTK's SPI BUS driver spi-mt7621.c has a problem.
After CS>0, full-duplex is used, but there is a problem with the full-duplex driver.
When CS=0, connect the onboard SPI-FLASH and use half-duplex, no problem.
static int mt7621_spi_transfer_one_message(struct spi_master *master, struct spi_message *m) { struct spi_device *spi = m->spi; int cs = spi->chip_select;
if (cs) return mt7621_spi_transfer_full_duplex(master, m); return mt7621_spi_transfer_half_duplex(master, m); } |