summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPratyush Yadav <[email protected]>2021-06-26 00:47:15 +0530
committerJagan Teki <[email protected]>2021-06-28 11:59:47 +0530
commit6182d15b3e4a40929df22e403601fd24abd3f918 (patch)
tree925882760bcf92cd731662c09dd75704199c7128 /include/linux
parent71025f013ccb2da5a39e60cec319f1fdef031d3d (diff)
mtd: spi-nor-core: Do not set data direction when there is no data
Even when spi_nor_write_reg() has no data to write, like when executing a write enable operation, it sets the data direction to SPI_MEM_DATA_OUT. This trips up spi_mem_check_buswidth() because it expects a data phase when there is none. Make sure the data direction is set to SPI_MEM_NO_DATA when there is no data to write. Signed-off-by: Pratyush Yadav <[email protected]> Reviewed-by: Jagan Teki <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions