OSDN Git Service

staging: mt7621-spi: drop support for SPI mode 1/2/3
authorChuanhong Guo <gch981213@gmail.com>
Thu, 6 Dec 2018 13:15:09 +0000 (21:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Dec 2018 10:34:53 +0000 (11:34 +0100)
commit354ea2ee6d2bc08d2f73b67096e67760089887cb
treee6f29bcf8d39e4a3e8c38450d017abd0774be7f5
parent108d9dd51363e52de92019aa2107885493ddb5f3
staging: mt7621-spi: drop support for SPI mode 1/2/3

As explained in previous patch, this SPI controller seems to be
tested on SPI flash only before mass production and some bits are
swizzled under other SPI modes probably due to incorrect wiring
inside the silicon. Drop implementation of SPI mode 1/2/3 since
they are broken.

Also drop RT2880_SPI_MODE_BITS macro because we now have only
SPI_LSB_FIRST implemented and the mode_bits is so short that we
don't need a macro there.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-spi/spi-mt7621.c