mtd: spi-nor: spansion: write 2 bytes when disabling Octal DTR mode
authorPratyush Yadav <p.yadav@ti.com>
Mon, 31 May 2021 18:17:53 +0000 (23:47 +0530)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Thu, 23 Dec 2021 13:04:13 +0000 (15:04 +0200)
commit63017068a6d991fdf31147c4996cd29bfde61ac2
treedf1903952d6b4f8b98ee15921f56945aa09da7b4
parent0d051a49829a96b26716a724df286be30da42f0e
mtd: spi-nor: spansion: write 2 bytes when disabling Octal DTR mode

The Octal DTR configuration is stored in the CFR5V register. This
register is 1 byte wide. But 1 byte long transactions are not allowed in
8D-8D-8D mode. Since the next byte address does not contain any
register, it is safe to write any value to it. Write a 0 to it.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20210531181757.19458-3-p.yadav@ti.com
drivers/mtd/spi-nor/spansion.c