[PATCH v2 08/10] mtd: st_spi_fsm: replace FLACH_CMD_* with SPINOR_OP_*
Brian Norris
computersforpeace at gmail.com
Thu Apr 10 17:24:25 PDT 2014
On Thu, Apr 10, 2014 at 12:21:02PM -0700, Brian Norris wrote:
> diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c b/drivers/mtd/spi-nor/fsl-quadspi.c
> index 2977f026f39d..b41bbbc531ff 100644
> --- a/drivers/mtd/spi-nor/fsl-quadspi.c
> +++ b/drivers/mtd/spi-nor/fsl-quadspi.c
> @@ -294,12 +294,12 @@ static void fsl_qspi_init_lut(struct fsl_qspi *q)
> lut_base = SEQID_QUAD_READ * 4;
>
> if (q->nor_size <= SZ_16M) {
> - cmd = SPINOR_OP_QUAD_READ;
> + cmd = SPINOR_OP_READ_1_1_4;
> addrlen = ADDR24BIT;
> dummy = 8;
> } else {
> /* use the 4-byte address */
> - cmd = SPINOR_OP_QUAD_READ;
> + cmd = SPINOR_OP_READ_1_1_4;
> addrlen = ADDR32BIT;
> dummy = 8;
> }
> @@ -388,7 +388,7 @@ static void fsl_qspi_init_lut(struct fsl_qspi *q)
> static int fsl_qspi_get_seqid(struct fsl_qspi *q, u8 cmd)
> {
> switch (cmd) {
> - case SPINOR_OP_QUAD_READ:
> + case SPINOR_OP_READ_1_1_4:
> return SEQID_QUAD_READ;
> case SPINOR_OP_WREN:
> return SEQID_WREN;
I'm sorry, I squashed these into the wrong patch. The full result
builds, but this is not bisect clean :(
I'll send out another version once I've had a better look at everything.
Sorry for the noise.
Brian
More information about the linux-mtd
mailing list