mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
mtd: spi-nor: Fix direction of the write_sr() transfer
write_sr() sends data to the SPI memory, fix the direction.
Fixes: b35b9a1036
("mtd: spi-nor: Move m25p80 code in spi-nor.c")
Reported-by: John Garry <john.garry@huawei.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Tested-by: John Garry <john.garry@huawei.com>
Acked-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
parent
54ecb8f702
commit
41e086e155
1 changed files with 1 additions and 1 deletions
|
@ -487,7 +487,7 @@ static int write_sr(struct spi_nor *nor, u8 val)
|
||||||
SPI_MEM_OP(SPI_MEM_OP_CMD(SPINOR_OP_WRSR, 1),
|
SPI_MEM_OP(SPI_MEM_OP_CMD(SPINOR_OP_WRSR, 1),
|
||||||
SPI_MEM_OP_NO_ADDR,
|
SPI_MEM_OP_NO_ADDR,
|
||||||
SPI_MEM_OP_NO_DUMMY,
|
SPI_MEM_OP_NO_DUMMY,
|
||||||
SPI_MEM_OP_DATA_IN(1, nor->bouncebuf, 1));
|
SPI_MEM_OP_DATA_OUT(1, nor->bouncebuf, 1));
|
||||||
|
|
||||||
return spi_mem_exec_op(nor->spimem, &op);
|
return spi_mem_exec_op(nor->spimem, &op);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue