From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752081AbdAYRtc (ORCPT ); Wed, 25 Jan 2017 12:49:32 -0500 Received: from exsmtp01.microchip.com ([198.175.253.37]:40283 "EHLO email.microchip.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751919AbdAYRt3 (ORCPT ); Wed, 25 Jan 2017 12:49:29 -0500 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 Date: Wed, 25 Jan 2017 18:49:25 +0100 Message-ID: X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Brightmail-Tracker: H4sIAAAAAAAAC+NgFlrOKsWRWlGSWpSXmKPExsXCxeXDoqv2tCPC4OWLXQtYLQ68WMhiceTCWmaLe9/PM1tc3jWHzWJ30zJ2i6N77jFbTN75htGB3WPBr60sHk82XWT02DnrLrvH5iX1HjfnFXp83iQXwBbFmpmXlF+RwJqx98R5toKnAhWPVx5gb2DcxNvFyMUhJLCOUWLmvCcsXYycHGwChhJvHxxlBbFFBCQlNpy4wAhSxCxwnFFiwYrXbCAJYYFgia1TbjOD2CwCqhK3zvaAxXkFbCTWLd4JNkhCQE7i5rlOZoi4oMTJmRALmAUkJA6+eAEWFxJQk1jYsoIZoj5Q4sXzD6wQtpPEy6Mv2SBsO4nD0y+yQ9j2EmfXbGaHqfm5awdUvbbE9lf7oGwdiW0H+6FusJXYM2MiE4TtLvHg0XIo21di1sMGqJooiYYFJ5gmMIrNQnLqLCSnLmBkWsUo7ezhpxscpusa4exhYKiXm5xRoJubmJmnl5yfu4kREmuqOxhv/Qs/xCjJwaQkynvqVEeEEF9SfkplRmJxRnxRaU5q8SFGGQ4OJQle5cdAOcGi1PTUirTMHGDUw6SZODgPMUpw8CiJ8CaC1PAWFyTmFmemQ+RPMUpKifNaPAJKCIAkMkrz4HovMYpKCfOevQOU4ylILcrNLIGI32IU5njIJMSSl5+XKgV0JwMQaDC+YhTnYFQS5v0DsoQnM68EbscroPVMQOsvMLeDrC9JREhJNTA6GbW+NN0QIzan6krDmhg98TXS2z8WM6bOYnx7ZM+iV+a79vA3VH+N531z+dacyryrur8/C/rNXNt/yHg7b5V985sny94wVyU7ef3yn5wyQ+s6G/eJWBlxqaoMxjy+OO96ladPW+r3hKdapz3WD1lntfXtp40Prx6db1xrLH/boObMpcAlpwWUWIozEg21mIuKEwG6LGFbOgMAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cyrille Pitchen (3): mtd: spi-nor: add support of SPI protocols like SPI 1-2-2 and SPI 1-4-4 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(-) -- 2.7.4