lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 25 Jan 2017 18:49:25 +0100
From:   Cyrille Pitchen <>
To:     <>
CC:     <>,
        <>, <>,
        <>, <>,
        Cyrille Pitchen <>
Subject: [PATCH 0/3] mtd: spi-nor: add support to SPI 1-2-2 and SPI 1-4-4 protocols

Hi all,

this series of patches updates the spi-nor framework to add support to
more SPI protocols. Also the 3rd argument of spi_nor_scan() is changed so
we can now make the difference between read and write operations.
Indeed some SPI controllers may support Quad SPI protocols only for read
operations but not for write operations.

The new argument is designed so SPI controller drivers can precisely
describe their hardware capabilies to the spi-nor framework. In turn, this
framework selects the right SPI protocols, op code, number of dummy cycles
and so on for (Fast) Read and Page Program commands by computing the best
match between the SPI memory and controller hardware capabilities.

Please note that a spi_nor_basic_flash_parameter structure is also
introduced by this series. It's used to describe the hardware capabilities
and requirements of SPI memories. The structure fields are based on what
can be read from the SFDP Basic Flash Parameter table of the JESD216B
specification. Indeed this series of patch is also a base for a further
series which will add support to the SFDP tables in the spi-nor framework.

This series is based on the next branch of the spi-nor tree.

Best regards,


Cyrille Pitchen (3):
  mtd: spi-nor: add support of SPI protocols like SPI 1-2-2 and SPI
  mtd: spi-nor: remove unused set_quad_mode() function
  mtd: m25p80: add support of SPI 1-2-2 and 1-4-4 protocols

 drivers/mtd/devices/m25p80.c          | 133 +++++++++++----
 drivers/mtd/spi-nor/aspeed-smc.c      |  22 +--
 drivers/mtd/spi-nor/atmel-quadspi.c   |  82 ++++++----
 drivers/mtd/spi-nor/cadence-quadspi.c |  18 ++-
 drivers/mtd/spi-nor/fsl-quadspi.c     |   8 +-
 drivers/mtd/spi-nor/hisi-sfc.c        |  31 +++-
 drivers/mtd/spi-nor/intel-spi.c       |   6 +-
 drivers/mtd/spi-nor/mtk-quadspi.c     |  16 +-
 drivers/mtd/spi-nor/nxp-spifi.c       |  21 +--
 drivers/mtd/spi-nor/spi-nor.c         | 295 +++++++++++++++++++++++++---------
 include/linux/mtd/spi-nor.h           | 163 +++++++++++++++++--
 11 files changed, 604 insertions(+), 191 deletions(-)


Powered by blists - more mailing lists