[PATCH v2 0/4] mtd: spi-nor: OTP support
Michael Walle
michael at walle.cc
Mon Sep 14 07:24:30 EDT 2020
Am 2020-09-12 00:26, schrieb Michael Walle:
> This patchset implements the MTD OTP functions to allow access to the
> SPI
> OTP data. Specific support is added for the Adesto, Macronix and
> Winbond
> flash chips.
>
> In the past there was already an attempt by Rahul Bedarkar to add this,
> but
> there was no response. These patches are slightly based on his work.
>
> https://lore.kernel.org/linux-mtd/1489754636-21461-1-git-send-email-rahul.bedarkar@imgtec.com/
>
I've missed appending the changelog:
changes since v1:
- rebased to latest tree
- correctly check return code of otp_ops->is_locked() in
spi_nor_mtd_otp_info()
- use correct bouncebuf for spi command in spi_nor_otp_lock_sr2()
- add cleanup patch to consolidate some of the "if (spimem) {} else {}"
patterns
- add otp support for macronix and similar flashes
- moved otp code into core.c because it is used across different
vendors
- use generic naming, eg. spi_nor_otp_lock_sr2() instead of
winbond_otp_lock()
-michael
> Michael Walle (4):
> mtd: spi-nor: cleanup common code
> mtd: spi-nor: add OTP support
> mtd: spi-nor: implement OTP support for Macronix and similar flashes
> mtd: spi-nor: implement OTP support for Winbond and similar flashes
>
> drivers/mtd/chips/Kconfig | 2 +-
> drivers/mtd/spi-nor/atmel.c | 13 +-
> drivers/mtd/spi-nor/core.c | 769 ++++++++++++++++++++++++---------
> drivers/mtd/spi-nor/core.h | 61 +++
> drivers/mtd/spi-nor/macronix.c | 13 +-
> drivers/mtd/spi-nor/winbond.c | 18 +-
> include/linux/mtd/spi-nor.h | 16 +
> 7 files changed, 676 insertions(+), 216 deletions(-)
More information about the linux-mtd
mailing list