]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: spi-nor / spi / MFD: Convert intel-spi to SPI MEM
authorMark Brown <broonie@kernel.org>
Tue, 15 Feb 2022 12:53:31 +0000 (12:53 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 15 Feb 2022 12:53:31 +0000 (12:53 +0000)
commit6de9b193ea96376f64495a3047ac20e972cdeb9a
tree55888e58957dcef4534424329836f8d03824dde6
parent6b7a29dc46dfd840e774c2d791ce396c42e91a98
parent772ada8c3931d590dd223d738ad21e496a06ef1c
mtd: spi-nor / spi / MFD: Convert intel-spi to SPI MEM

Merge series from Mika Westerberg <mika.westerberg@linux.intel.com>:

Based on discussion on the patch I sent some time ago here:

  http://lists.infradead.org/pipermail/linux-mtd/2021-June/086867.html

it turns out that the preferred way to deal with the SPI flash controller
drivers is through SPI MEM which is part of Linux SPI subsystem.

This series does that for the intel-spi driver. This also renames the
driver to follow the convention used in the SPI subsystem. The first patch
improves the write protection handling to be slightly more safer. The
following two patches do the conversion itself. Note the Intel SPI flash
controller only allows commands such as read, write and so on and it
internally uses whatever addressing etc. it figured from the SFDP on the
flash device.

base-commit: 6e424e6bafec35e47db4b693fe41eff065b7dbf6
drivers/spi/Kconfig
drivers/spi/Makefile