]> asedeno.scripts.mit.edu Git - linux.git/commit
mtd: spi-nor: intel-spi: support chips without software sequencer
authorJethro Beekman <jethro@fortanix.com>
Wed, 4 Sep 2019 01:15:14 +0000 (01:15 +0000)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Wed, 23 Oct 2019 06:27:15 +0000 (09:27 +0300)
commit3912970809cfbc005bf0b404b9d286a95def694e
tree06b7cdc8859868b5de2e516f4ac56a0bffc7d2a9
parent7d194c2100ad2a6dded545887d02754948ca5241
mtd: spi-nor: intel-spi: support chips without software sequencer

Some flash controllers don't have a software sequencer. Avoid
configuring the register addresses for it, and double check
everywhere that its not accidentally trying to be used.

Every use of `sregs` is now guarded by a check of `sregs` or
`swseq_reg`. The check might be done in the calling function.

Signed-off-by: Jethro Beekman <jethro@fortanix.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
drivers/mtd/spi-nor/intel-spi.c