sf: Make IO modes at last in read modes
PATCH 1/1 sf: Make IO modes at last in read modes
SLOW, FAST, DUAL, DUAL_IO, QUAD, QUAD_IO changed order to SLOW, FAST, DUAL, QUAD, DUAL_IO, QUAD_IO
Cc Simon Glass <[email protected]>
Cc Bin Meng <[email protected]>
Cc Michal Simek <[email protected]>
Cc Siva Durga Prasad Paladugu <[email protected]>
Tested-by Jagan Teki <[email protected]>
Signed-off-by Jagan Teki <[email protected]>
--- drivers/mtd/spi/sf_internal.h | 4 ++-- drivers/mtd/spi/spi_flash.c | 2 +- include/spi.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/mtd/spi/sf_internal.h +2 -2
@@ -25,8 +25,8 @@ enum spi_read_cmds {ARRAY_SLOW =BIT (0 ),ARRAY_FAST =BIT (1 ),DUAL_OUTPUT_FAST =BIT (2 ), -DUAL_IO_FAST =BIT (3 ), -QUAD_OUTPUT_FAST =BIT (4 ), +QUAD_OUTPUT_FAST =BIT (3 ), +DUAL_IO_FAST =BIT (4 ), QUAD_IO_FAST = BIT(5), };
drivers/mtd/spi/spi_flash.c +1 -1
@@ -975,8 +975,8 @@ int spi_flash_scan(struct spi_flash *flash)CMD_READ_ARRAY_SLOW ,CMD_READ_ARRAY_FAST ,CMD_READ_DUAL_OUTPUT_FAST , -CMD_READ_DUAL_IO_FAST ,CMD_READ_QUAD_OUTPUT_FAST , +CMD_READ_DUAL_IO_FAST , CMD_READ_QUAD_IO_FAST };/* Read the ID codes */
include/spi.h +1 -1
@@ -105,7 +105,7 @@ struct spi_slave {#define SPI_RX_SLOW BIT(0)/* receive with 1 wire slow */ #define SPI_RX_FAST BIT(1)/* receive with 1 wire fast */ #define SPI_RX_DUAL BIT(2)/* receive with 2 wires */ -#define SPI_RX_QUAD BIT(4)/* receive with 4 wires */ +#define SPI_RX_QUAD BIT(3)/* receive with 4 wires */ unsigned int wordlen;unsigned int max_write_size;
Signature · 1 line
1.9.1
PATCH 1/1 sf: Make IO modes at last in read modes
Quoted 9 lines · Jagan Teki
SLOW, FAST, DUAL,
DUAL_IO, QUAD,QUAD_IOchanged order to SLOW, FAST, DUAL, QUAD,DUAL_IO,QUAD_IOCc Simon Glass <[email protected]>Cc Bin Meng <[email protected]>Cc Michal Simek <[email protected]>Cc Siva Durga Prasad Paladugu <[email protected]>Tested-by Jagan Teki <[email protected]>Signed-off-by Jagan Teki <[email protected]>
Quoted 6 lines
--- drivers/mtd/spi/sf_internal.h | 4 ++-- drivers/mtd/spi/spi_flash.c | 2 +- include/spi.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
Reviewed-by Bin Meng <[email protected]>