Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1459120
| From | Jagan Teki <jteki@openedev.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/6] mtd: m25p80: Use spi-nor quad page program |
| Date | 2016-08-09 22:50 +0200 |
| Message-ID | <s4m8h-404-9@gated-at.bofh.it> (permalink) |
| References | <s4m8h-404-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Identify the 4-wire tx transfer from spi controller mode value and then assign QPP support to nor->flags to make use of that. Cc: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Jagan Teki <jteki@openedev.com> --- drivers/mtd/devices/m25p80.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index 9cf7fcd..1033595 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c @@ -224,6 +224,8 @@ static int m25p_probe(struct spi_device *spi) mode = SPI_NOR_QUAD; else if (spi->mode & SPI_RX_DUAL) mode = SPI_NOR_DUAL; + else if (spi->mode & SPI_TX_QUAD) + nor->flags = SNOR_F_USE_QPP; if (data && data->name) nor->mtd.name = data->name; -- 2.7.4
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/6] mtd: spi-nor: Add quad page program support Jagan Teki <jteki@openedev.com> - 2016-08-09 22:50 +0200 [PATCH 2/6] mtd: m25p80: Use spi-nor quad page program Jagan Teki <jteki@openedev.com> - 2016-08-09 22:50 +0200 [PATCH 3/6] mtd: spi-nor: Enable QPP for macronix parts Jagan Teki <jteki@openedev.com> - 2016-08-09 22:50 +0200 [PATCH 5/6] mtd: spi-nor: Enable QPP for spansion parts Jagan Teki <jteki@openedev.com> - 2016-08-09 22:50 +0200 [PATCH 6/6] mtd: spi-nor: Enable QPP for winbond parts Jagan Teki <jteki@openedev.com> - 2016-08-09 22:50 +0200
csiph-web