aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
diff options
context:
space:
mode:
authorYicong Yang <[email protected]>2020-07-06 17:22:36 +0800
committerTudor Ambarus <[email protected]>2020-07-13 12:09:52 +0300
commitcc59e6bb6cd69d3347c06ccce088c5c6052e041e (patch)
treefd3cd1bd329abe7802c348e42af6829e9ae046ff /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
parentbe192209d5a33c912caa4a05d6f92b89328d8db8 (diff)
mtd: spi-nor: Disable the flash quad mode in spi_nor_restore()
If the flash's quad mode is enabled, it'll remain in the quad mode when it's removed. If we drive the flash next time in Standard/Dual SPI mode, the QE bit is not cleared and the function of flash's WP# and RESET#/HOLD# have been switched to IO2 and IO3 and are not restored. Disable the Quad mode in spi_nor_restore(), then the flash's QE bit will be cleared when removed. This will make sure the flash always enter the Standard/Dual SPI mode when loaded. Signed-off-by: Yicong Yang <[email protected]> Signed-off-by: Tudor Ambarus <[email protected]> Reviewed-by: Pratyush Yadav <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions