Skip to contentSkip to conversation

sf: Update SST25* flash params of supported read commands

PATCH New Bin Meng 3 participants 10 messages Oct 23, 2014 – Oct 29, 2014 Memory technology devices (MTD)

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 4/5 sf: Update SST25* flash params of supported read commands

Explicitly list supported read commands in the flash prarmas table for SST25* flash parts.

---
 drivers/mtd/spi/sf_params.c | 20 ++++++++++----------
 include/spi_flash.h         |  3 ++-
 2 files changed, 12 insertions(+), 11 deletions(-)
drivers/mtd/spi/sf_params.c +10 -10
index 453edf0..d5f3597 100644
@@ -88,16 +88,16 @@ const struct spi_flash_params spi_flash_params_table[] = {
 	{"N25Q1024A",	   0x20bb21, 0x0,       64 * 1024,  2048, RD_FULL, WR_QPP | E_FSR | SECT_4K},
 #endif
 #ifdef CONFIG_SPI_FLASH_SST		/* SST */
-	{"SST25VF040B",	   0xbf258d, 0x0,	64 * 1024,     8,	0,          SECT_4K | SST_WP},
-	{"SST25VF080B",	   0xbf258e, 0x0,	64 * 1024,    16,	0,	    SECT_4K | SST_WP},
-	{"SST25VF016B",	   0xbf2541, 0x0,	64 * 1024,    32,	0,	    SECT_4K | SST_WP},
-	{"SST25VF032B",	   0xbf254a, 0x0,	64 * 1024,    64,	0,	    SECT_4K | SST_WP},
-	{"SST25VF064C",	   0xbf254b, 0x0,	64 * 1024,   128,	0,		     SECT_4K},
-	{"SST25WF512",	   0xbf2501, 0x0,	64 * 1024,     1,	0,	    SECT_4K | SST_WP},
-	{"SST25WF010",	   0xbf2502, 0x0,	64 * 1024,     2,       0,          SECT_4K | SST_WP},
-	{"SST25WF020",	   0xbf2503, 0x0,	64 * 1024,     4,       0,	    SECT_4K | SST_WP},
-	{"SST25WF040",	   0xbf2504, 0x0,	64 * 1024,     8,       0,	    SECT_4K | SST_WP},
-	{"SST25WF080",	   0xbf2505, 0x0,	64 * 1024,    16,       0,	    SECT_4K | SST_WP},
+	{"SST25VF040B",	   0xbf258d, 0x0,	64 * 1024,     8, RD_SLOW,	    SECT_4K | SST_WP},
+	{"SST25VF080B",	   0xbf258e, 0x0,	64 * 1024,    16, RD_SLOW,	    SECT_4K | SST_WP},
+	{"SST25VF016B",	   0xbf2541, 0x0,	64 * 1024,    32, RD_SLOW,	    SECT_4K | SST_WP},
+	{"SST25VF032B",	   0xbf254a, 0x0,	64 * 1024,    64, RD_SLOW,	    SECT_4K | SST_WP},
+	{"SST25VF064C",	   0xbf254b, 0x0,	64 * 1024,   128, RD_EXTN,		     SECT_4K},
+	{"SST25WF512",	   0xbf2501, 0x0,	64 * 1024,     1, RD_SLOW,	    SECT_4K | SST_WP},
+	{"SST25WF010",	   0xbf2502, 0x0,	64 * 1024,     2, RD_SLOW,	    SECT_4K | SST_WP},
+	{"SST25WF020",	   0xbf2503, 0x0,	64 * 1024,     4, RD_SLOW,	    SECT_4K | SST_WP},
+	{"SST25WF040",	   0xbf2504, 0x0,	64 * 1024,     8, RD_SLOW,	    SECT_4K | SST_WP},
+	{"SST25WF080",	   0xbf2505, 0x0,	64 * 1024,    16, RD_SLOW,	    SECT_4K | SST_WP},
 #endif
 #ifdef CONFIG_SPI_FLASH_WINBOND		/* WINBOND */
 	{"W25P80",	   0xef2014, 0x0,	64 * 1024,    16,	0,		           0},
include/spi_flash.h +2 -1
index 408a5b4..a75e030 100644
@@ -46,7 +46,8 @@ enum spi_read_cmds {
 	QUAD_OUTPUT_FAST = 1 << 3,
 	QUAD_IO_FAST = 1 << 4,
 };
-#define RD_EXTN		ARRAY_SLOW | DUAL_OUTPUT_FAST | DUAL_IO_FAST
+#define RD_SLOW		ARRAY_SLOW
+#define RD_EXTN		RD_SLOW | DUAL_OUTPUT_FAST | DUAL_IO_FAST
 #define RD_FULL		RD_EXTN | QUAD_OUTPUT_FAST | QUAD_IO_FAST
 
 /* Dual SPI flash memories */
Signature · 1 line
1.8.2.1
#1 lore raw

PATCH 4/5 sf: Update SST25* flash params of supported read commands

Quoted 8 lines · Bin Meng

Explicitly list supported read commands in the flash prarmas table for SST25* flash parts.

---
 drivers/mtd/spi/sf_params.c | 20 ++++++++++----------
 include/spi_flash.h         |  3 ++-
 2 files changed, 12 insertions(+), 11 deletions(-)

Tested on link (ich9)

(Again a few conflicts with the DM SPI series - will push to u-boot-x86/testing)

#2 lore raw

PATCH 4/5 sf: Update SST25* flash params of supported read commands

In reply to Bin Meng
Quoted 55 lines · Bin Meng

Explicitly list supported read commands in the flash prarmas table for SST25* flash parts.

---
 drivers/mtd/spi/sf_params.c | 20 ++++++++++----------
 include/spi_flash.h         |  3 ++-
 2 files changed, 12 insertions(+), 11 deletions(-)
drivers/mtd/spi/sf_params.c +10 -10
index 453edf0..d5f3597 100644
@@ -88,16 +88,16 @@ const struct spi_flash_params spi_flash_params_table[] = {
        {"N25Q1024A",      0x20bb21, 0x0,       64 * 1024,  2048, RD_FULL, WR_QPP | E_FSR | SECT_4K},
 #endif
 #ifdef CONFIG_SPI_FLASH_SST            /* SST */
-       {"SST25VF040B",    0xbf258d, 0x0,       64 * 1024,     8,       0,          SECT_4K | SST_WP},
-       {"SST25VF080B",    0xbf258e, 0x0,       64 * 1024,    16,       0,          SECT_4K | SST_WP},
-       {"SST25VF016B",    0xbf2541, 0x0,       64 * 1024,    32,       0,          SECT_4K | SST_WP},
-       {"SST25VF032B",    0xbf254a, 0x0,       64 * 1024,    64,       0,          SECT_4K | SST_WP},
-       {"SST25VF064C",    0xbf254b, 0x0,       64 * 1024,   128,       0,                   SECT_4K},
-       {"SST25WF512",     0xbf2501, 0x0,       64 * 1024,     1,       0,          SECT_4K | SST_WP},
-       {"SST25WF010",     0xbf2502, 0x0,       64 * 1024,     2,       0,          SECT_4K | SST_WP},
-       {"SST25WF020",     0xbf2503, 0x0,       64 * 1024,     4,       0,          SECT_4K | SST_WP},
-       {"SST25WF040",     0xbf2504, 0x0,       64 * 1024,     8,       0,          SECT_4K | SST_WP},
-       {"SST25WF080",     0xbf2505, 0x0,       64 * 1024,    16,       0,          SECT_4K | SST_WP},
+       {"SST25VF040B",    0xbf258d, 0x0,       64 * 1024,     8, RD_SLOW,          SECT_4K | SST_WP},
+       {"SST25VF080B",    0xbf258e, 0x0,       64 * 1024,    16, RD_SLOW,          SECT_4K | SST_WP},
+       {"SST25VF016B",    0xbf2541, 0x0,       64 * 1024,    32, RD_SLOW,          SECT_4K | SST_WP},
+       {"SST25VF032B",    0xbf254a, 0x0,       64 * 1024,    64, RD_SLOW,          SECT_4K | SST_WP},
+       {"SST25VF064C",    0xbf254b, 0x0,       64 * 1024,   128, RD_EXTN,                   SECT_4K},
+       {"SST25WF512",     0xbf2501, 0x0,       64 * 1024,     1, RD_SLOW,          SECT_4K | SST_WP},
+       {"SST25WF010",     0xbf2502, 0x0,       64 * 1024,     2, RD_SLOW,          SECT_4K | SST_WP},
+       {"SST25WF020",     0xbf2503, 0x0,       64 * 1024,     4, RD_SLOW,          SECT_4K | SST_WP},
+       {"SST25WF040",     0xbf2504, 0x0,       64 * 1024,     8, RD_SLOW,          SECT_4K | SST_WP},
+       {"SST25WF080",     0xbf2505, 0x0,       64 * 1024,    16, RD_SLOW,          SECT_4K | SST_WP},
 #endif
 #ifdef CONFIG_SPI_FLASH_WINBOND                /* WINBOND */
        {"W25P80",         0xef2014, 0x0,       64 * 1024,    16,       0,                         0},
include/spi_flash.h +2 -2
index 408a5b4..a75e030 100644
@@ -46,7 +46,8 @@ enum spi_read_cmds {
        QUAD_OUTPUT_FAST = 1 << 3,
        QUAD_IO_FAST = 1 << 4,
 };
-#define RD_EXTN                ARRAY_SLOW | DUAL_OUTPUT_FAST | DUAL_IO_FAST
+#define RD_SLOW                ARRAY_SLOW
+#define RD_EXTN                RD_SLOW | DUAL_OUTPUT_FAST | DUAL_IO_FAST
 #define RD_FULL                RD_EXTN | QUAD_OUTPUT_FAST | QUAD_IO_FAST
 
 /* Dual SPI flash memories */
--
Quoted 2 lines

1.8.2.1

What is this, by defining RD_EXTN the fastest read cmd will pick based on controller mode_rx
Why this RD_SLOW again? does this means the specific flash part will only support slow read?

thanks!

Signature · 1 line
Jagan.
author
#3 lore raw

PATCH 4/5 sf: Update SST25* flash params of supported read commands

Hi Jegan,

Quoted 4 lines · Jagan Teki

What is this, by defining RD_EXTN the fastest read cmd will pick based on controller mode_rx
Why this RD_SLOW again? does this means the specific flash part will only support slow read?

Correct, the SST25* (except SST25VF064C) only supports the array read (03h) and fast array read (0Bh) command.

Regards,
Bin

#4 lore raw

PATCH 4/5 sf: Update SST25* flash params of supported read commands

Hi Bin,

Quoted 10 lines · Bin Meng

Hi Jegan,

Quoted 4 lines · Jagan Teki

What is this, by defining RD_EXTN the fastest read cmd will pick based on controller mode_rx
Why this RD_SLOW again? does this means the specific flash part will only support slow read?

Correct, the SST25* (except SST25VF064C) only supports the array read (03h) and fast array read (0Bh) command.

Then make sure to add 0 for picking up fast read(default) and if you need a slow read
to be operate all the ways just define RD_EXTN flash side and SPI_OPM_RX_AS (but
which is not a recommended one as we have fast read supporting).

thanks!

Signature · 1 line
Jagan.
author
#5 lore raw

PATCH 4/5 sf: Update SST25* flash params of supported read commands

Hi Jagan,

Quoted 11 lines · Jagan Teki

Hi Bin,

Quoted 8 lines · Bin Meng

Hi Jegan,

Quoted 4 lines · Jagan Teki

What is this, by defining RD_EXTN the fastest read cmd will pick based on controller mode_rx
Why this RD_SLOW again? does this means the specific flash part will only support slow read?

Quoted 8 lines
Quoted 2 lines

Correct, the SST25* (except SST25VF064C) only supports the array read (03h) and fast array read (0Bh) command.

Then make sure to add 0 for picking up fast read(default) and if you need a slow read
to be operate all the ways just define RD_EXTN flash side and SPI_OPM_RX_AS (but
which is not a recommended one as we have fast read supporting).

I am not sure if I understand it correctly. Do you mean adding ARRAY_FAST to:

enum spi_read_cmds {

        ARRAY_SLOW              = 1 << 0,
        DUAL_OUTPUT_FAST        = 1 << 1,
        DUAL_IO_FAST            = 1 << 2,
        QUAD_OUTPUT_FAST        = 1 << 3,
        QUAD_IO_FAST            = 1 << 4,
+       ARRAY_FAST              = 1 << 5,

};

then changing the SST flash parameters like this:

- {"SST25WF080", 0xbf2505, 0x0, 64 * 1024, 16,
0, SECT_4K | SST_WP},
+ {"SST25VF040B", 0xbf258d, 0x0, 64 * 1024, 8,
RD_SLOW | ARRAY_FAST, SECT_4K | SST_WP},

I originally intended to do this, however I am not sure whether I should give ARRAY_FAST to 1 << 5 (meaning the fastest read command than any others). Maybe it should be 1 << 3? Also I need update every spi controller driver to initialize spi->op_mode_rx to something meaningful. Currently only ti_qspi.c has such initialization (slave->op_mode_rx = 8;).

Regards,
Bin

#6 lore raw

PATCH 4/5 sf: Update SST25* flash params of supported read commands

Hi Bin,

Your understanding is quite normal - like the way of adding supported read command support, but here the sf logic to pick the read command is different.

Please see below.

Quoted 41 lines · Bin Meng

Hi Jagan,

Quoted 11 lines · Jagan Teki

Hi Bin,

Quoted 8 lines · Bin Meng

Hi Jegan,

Quoted 4 lines · Jagan Teki

What is this, by defining RD_EXTN the fastest read cmd will pick based on controller mode_rx
Why this RD_SLOW again? does this means the specific flash part will only support slow read?

Quoted 8 lines
Quoted 2 lines

Correct, the SST25* (except SST25VF064C) only supports the array read (03h) and fast array read (0Bh) command.

Then make sure to add 0 for picking up fast read(default) and if you need a slow read
to be operate all the ways just define RD_EXTN flash side and SPI_OPM_RX_AS (but
which is not a recommended one as we have fast read supporting).

I am not sure if I understand it correctly. Do you mean adding ARRAY_FAST to:

enum spi_read_cmds {

        ARRAY_SLOW              = 1 << 0,
        DUAL_OUTPUT_FAST        = 1 << 1,
        DUAL_IO_FAST            = 1 << 2,
        QUAD_OUTPUT_FAST        = 1 << 3,
        QUAD_IO_FAST            = 1 << 4,
+       ARRAY_FAST              = 1 << 5,

};

then changing the SST flash parameters like this:

(quoted diff) +1 -1
-       {"SST25WF080",     0xbf2505, 0x0,       64 * 1024,    16,
 0,          SECT_4K | SST_WP},
+       {"SST25VF040B",    0xbf258d, 0x0,       64 * 1024,     8,

RD_SLOW | ARRAY_FAST, SECT_4K | SST_WP},

Quoted 6 lines

I originally intended to do this, however I am not sure whether I should give ARRAY_FAST to 1 << 5 (meaning the fastest read command than any others). Maybe it should be 1 << 3? Also I need update every spi controller driver to initialize spi->op_mode_rx to something meaningful. Currently only ti_qspi.c has such initialization (slave->op_mode_rx = 8;).

Legacy spi-flash has a default support for fast reads, as new sf added e_rd_cmd the way to support or extend the read commands.

Suppose the flash support all different reads slow, fast, quad and io's then sf_params
will define RD_FULL and then it's upto controller driver to handle these rx transfers or not.
Say my driver will have only single wire (say array slow or fast) then no need to define op_mode_rx
on driver as it's operates legacy and will pick the fast read by defining e_rd_cmd as 0

For the same flash above if the driver is able to work for 2 or 4 wire then e_rd_cmd will
define as best supported rx transfer in ti_qspi case 8, Quad.

The idea is clear we always get the fastest read by taking controller driver [(q)spi controller]
as a priority irrespective of supporting flash. So in your case the flash is supporting array slow
and fast and driver will able to do fast rx transfer, so there is no requirements to define op_mode_rx
on driver and e_rd_cmd on flash - it simply take fast read.

See below code for more understanding:
/* Look for the fastest read cmd */
cmd = fls(params->e_rd_cmd & flash->spi->op_mode_rx);

if (cmd) {
          cmd = spi_read_cmds_array[cmd - 1];
          flash->read_cmd = cmd;
} else {
           /* Go for default supported read cmd */
           flash->read_cmd = CMD_READ_ARRAY_FAST;
}

Let me know if you still need to know more.

thanks!

Signature · 1 line
Jagan.
author
#7 lore raw

PATCH 4/5 sf: Update SST25* flash params of supported read commands

Hi Jagan,

Thanks for the detailed explanation.

Quoted 49 lines · Jagan Teki

Hi Bin,

Your understanding is quite normal - like the way of adding supported read command support, but here the sf logic to pick the read command is different.

Please see below.

Quoted 18 lines · Bin Meng

I am not sure if I understand it correctly. Do you mean adding ARRAY_FAST to:

enum spi_read_cmds {

        ARRAY_SLOW              = 1 << 0,
        DUAL_OUTPUT_FAST        = 1 << 1,
        DUAL_IO_FAST            = 1 << 2,
        QUAD_OUTPUT_FAST        = 1 << 3,
        QUAD_IO_FAST            = 1 << 4,
+       ARRAY_FAST              = 1 << 5,

};

then changing the SST flash parameters like this:

(quoted diff) +1 -1
-       {"SST25WF080",     0xbf2505, 0x0,       64 * 1024,    16,
 0,          SECT_4K | SST_WP},
+       {"SST25VF040B",    0xbf258d, 0x0,       64 * 1024,     8,

RD_SLOW | ARRAY_FAST, SECT_4K | SST_WP},

Quoted 6 lines

I originally intended to do this, however I am not sure whether I should give ARRAY_FAST to 1 << 5 (meaning the fastest read command than any others). Maybe it should be 1 << 3? Also I need update every spi controller driver to initialize spi->op_mode_rx to something meaningful. Currently only ti_qspi.c has such initialization (slave->op_mode_rx = 8;).

Legacy spi-flash has a default support for fast reads, as new sf added e_rd_cmd the way to support or extend the read commands.

Suppose the flash support all different reads slow, fast, quad and io's then sf_params
will define RD_FULL and then it's upto controller driver to handle these rx transfers or not.
Say my driver will have only single wire (say array slow or fast) then no need to define op_mode_rx
on driver as it's operates legacy and will pick the fast read by defining e_rd_cmd as 0

For the same flash above if the driver is able to work for 2 or 4 wire then e_rd_cmd will
define as best supported rx transfer in ti_qspi case 8, Quad.

Quoted 7 lines

The idea is clear we always get the fastest read by taking controller driver [(q)spi controller]
as a priority irrespective of supporting flash. So in your case the flash is supporting array slow
and fast and driver will able to do fast rx transfer, so there is no requirements to define op_mode_rx
on driver and e_rd_cmd on flash - it simply take fast read.

Yes, I know this. The issue is that with some controller (like the ich one) only array slow is supported. Thus the spi flash params should announce this capability when I set the spi controller op_mode_rx to array slow only otherwise the sf subsystem will choose fast read, just as you indicated. Right now my patches only updates the SST25* flash params as I have tested them but ideally I should update all flash params. Before that I still need cross check datasheets of all current supported spi flashes in sf_params.c to get to know whether it is true that when a flash supports array read it must support fast array read as well though.

Quoted 10 lines

See below code for more understanding:
/* Look for the fastest read cmd */
cmd = fls(params->e_rd_cmd & flash->spi->op_mode_rx);

if (cmd) {
          cmd = spi_read_cmds_array[cmd - 1];
          flash->read_cmd = cmd;
} else {
           /* Go for default supported read cmd */
           flash->read_cmd = CMD_READ_ARRAY_FAST;
}

Yes, I understand the logic here as well. That's why I asked in my previous email

Quoted 1 line

+ARRAY_FAST = 1 << 5,

Whether this one (fast array read) should become 1 << 5. Also I started to question whether it is OK to group these command together like below

#define RD_EXTN (ARRAY_SLOW | DUAL_OUTPUT_FAST | DUAL_IO_FAST) #define RD_FULL (RD_EXTN | QUAD_OUTPUT_FAST | QUAD_IO_FAST)

Again I need cross check flash datasheets.

Regards,
Bin

#8 lore raw

PATCH 4/5 sf: Update SST25* flash params of supported read commands

Hi Bin,

Quoted 62 lines · Bin Meng

Hi Jagan,

Thanks for the detailed explanation.

Quoted 49 lines · Jagan Teki

Hi Bin,

Your understanding is quite normal - like the way of adding supported read command support, but here the sf logic to pick the read command is different.

Please see below.

Quoted 18 lines · Bin Meng

I am not sure if I understand it correctly. Do you mean adding ARRAY_FAST to:

enum spi_read_cmds {

        ARRAY_SLOW              = 1 << 0,
        DUAL_OUTPUT_FAST        = 1 << 1,
        DUAL_IO_FAST            = 1 << 2,
        QUAD_OUTPUT_FAST        = 1 << 3,
        QUAD_IO_FAST            = 1 << 4,
+       ARRAY_FAST              = 1 << 5,

};

then changing the SST flash parameters like this:

(quoted diff) +1 -1
-       {"SST25WF080",     0xbf2505, 0x0,       64 * 1024,    16,
 0,          SECT_4K | SST_WP},
+       {"SST25VF040B",    0xbf258d, 0x0,       64 * 1024,     8,

RD_SLOW | ARRAY_FAST, SECT_4K | SST_WP},

Quoted 6 lines

I originally intended to do this, however I am not sure whether I should give ARRAY_FAST to 1 << 5 (meaning the fastest read command than any others). Maybe it should be 1 << 3? Also I need update every spi controller driver to initialize spi->op_mode_rx to something meaningful. Currently only ti_qspi.c has such initialization (slave->op_mode_rx = 8;).

Legacy spi-flash has a default support for fast reads, as new sf added e_rd_cmd the way to support or extend the read commands.

Suppose the flash support all different reads slow, fast, quad and io's then sf_params
will define RD_FULL and then it's upto controller driver to handle these rx transfers or not.
Say my driver will have only single wire (say array slow or fast) then no need to define op_mode_rx
on driver as it's operates legacy and will pick the fast read by defining e_rd_cmd as 0

For the same flash above if the driver is able to work for 2 or 4 wire then e_rd_cmd will
define as best supported rx transfer in ti_qspi case 8, Quad.

Quoted 7 lines

The idea is clear we always get the fastest read by taking controller driver [(q)spi controller]
as a priority irrespective of supporting flash. So in your case the flash is supporting array slow
and fast and driver will able to do fast rx transfer, so there is no requirements to define op_mode_rx
on driver and e_rd_cmd on flash - it simply take fast read.

Quoted 10 lines

Yes, I know this. The issue is that with some controller (like the ich one) only array slow is supported. Thus the spi flash params should announce this capability when I set the spi controller op_mode_rx to array slow only otherwise the sf subsystem will choose fast read, just as you indicated. Right now my patches only updates the SST25* flash params as I have tested them but ideally I should update all flash params. Before that I still need cross check datasheets of all current supported spi flashes in sf_params.c to get to know whether it is true that when a flash supports array read it must support fast array read as well though.

This looks odd to me - supporting array slow without support on fast read. Please check the datasheets, and as per as my knowledge/experience it should support both.

Note: I have tested SST25WF080 with fast read couple of times.

Quoted 17 lines
Quoted 11 lines

See below code for more understanding:
/* Look for the fastest read cmd */
cmd = fls(params->e_rd_cmd & flash->spi->op_mode_rx);

if (cmd) {
          cmd = spi_read_cmds_array[cmd - 1];
          flash->read_cmd = cmd;
} else {
           /* Go for default supported read cmd */
           flash->read_cmd = CMD_READ_ARRAY_FAST;
}

Yes, I understand the logic here as well. That's why I asked in my previous email

Quoted 1 line

+ARRAY_FAST = 1 << 5,

Quoted 8 lines

Whether this one (fast array read) should become 1 << 5. Also I started to question whether it is OK to group these command together like below

#define RD_EXTN (ARRAY_SLOW | DUAL_OUTPUT_FAST | DUAL_IO_FAST) #define RD_FULL (RD_EXTN | QUAD_OUTPUT_FAST | QUAD_IO_FAST)

Again I need cross check flash datasheets.

Please do - for all [if possible]

thanks!

Signature · 1 line
Jagan.
author
#9 lore raw

PATCH 4/5 sf: Update SST25* flash params of supported read commands

Hi Jagan,

Quoted 5 lines · Jagan Teki

Hi Bin,

This looks odd to me - supporting array slow without support on fast read. Please check the datasheets, and as per as my knowledge/experience it should support both.

It is not the flash but the controller only supports array slow read. Yes, odd controller indeed, but supporting fast read needs a dummy cycle which I believe requires the controller to know this fact.

Quoted 1 line

Note: I have tested SST25WF080 with fast read couple of times.

It's no surprise. The spi controller you tested should support both fast read and slow read.

Quoted 20 lines
Quoted 20 lines
Quoted 10 lines

See below code for more understanding:
/* Look for the fastest read cmd */
cmd = fls(params->e_rd_cmd & flash->spi->op_mode_rx);

if (cmd) {
          cmd = spi_read_cmds_array[cmd - 1];
          flash->read_cmd = cmd;
} else {
           /* Go for default supported read cmd */
           flash->read_cmd = CMD_READ_ARRAY_FAST;
}

Yes, I understand the logic here as well. That's why I asked in my previous email

Quoted 1 line

+ARRAY_FAST = 1 << 5,

Whether this one (fast array read) should become 1 << 5. Also I started to question whether it is OK to group these command together like below

Quoted 7 lines
Quoted 4 lines

#define RD_EXTN (ARRAY_SLOW | DUAL_OUTPUT_FAST | DUAL_IO_FAST) #define RD_FULL (RD_EXTN | QUAD_OUTPUT_FAST | QUAD_IO_FAST)

Again I need cross check flash datasheets.

Please do - for all [if possible]

OK, will do in v2 patch. Thanks for the comments.

Regards,
Bin