lists.openwall.net   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  linux-cve-announce  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]
Message-Id: <20240926155127.2450246-1-erezgeva@nwtime.org>
Date: Thu, 26 Sep 2024 17:51:24 +0200
From: Erez Geva <erezgeva@...ime.org>
To: linux-mtd@...ts.infradead.org,
	Tudor Ambarus <tudor.ambarus@...aro.org>,
	Pratyush Yadav <pratyush@...nel.org>,
	Michael Walle <mwalle@...nel.org>
Cc: linux-kernel@...r.kernel.org,
	Miquel Raynal <miquel.raynal@...tlin.com>,
	Richard Weinberger <richard@....at>,
	Vignesh Raghavendra <vigneshr@...com>,
	devicetree@...r.kernel.org,
	Rob Herring <robh@...nel.org>,
	Krzysztof Kozlowski <krzk+dt@...nel.org>,
	Conor Dooley <conor+dt@...nel.org>,
	Esben Haabendal <esben@...nix.com>,
	Erez Geva <ErezGeva2@...il.com>
Subject: [PATCH v6 0/3] Add support for SPI-NOR Macronix OTP

From: Erez Geva <ErezGeva2@...il.com>

Add support for SPI-NOR Macronix OTP.

v2:
Improve description of mx25l12833f.
Add note about mx25l12833f using the same JEDEC ID as mx25l12805d.

v3:
Improve description.
Rename _nor_send_cmd() to spi_nor_send_cmd_internal().
Remove MX25L12833F specific changes.
Add reading SFDP to all Macronix chips.
Add support of reading OTP parameters from device tree.
Reorgenize patches to 2 SPI-NOR patches and 2 Macronix patches.
Testing with MX25L3233F using BeagleBone Black.
Test results are in "mtd: spi-nor: macronix: add manufacturer flags" patch.

v4:
Add DT bindings of new OTP parameters.
Test OTP with 'flash_otp_write' and 'flash_otp_lock'.
Fix macronix_nor_otp_lock() and macronix_nor_otp_is_locked(),
Macronix uses a single flag for all regions.

v5:
Fix DT binding errors.
Fix functions description of Macronix OTP functions.

v6:
Remove DT.
The patch contain the Macronix OTP functions.
But this patch seria do not contain any means to configure the OTP.
As a proper way to do it was not concluded!
I think we do need dynamic OTP for future use.

Erez Geva (3):
  mtd: spi-nor: core: make OTP configuration dynamic
  mtd: spi-nor: core: add generic functions
  mtd: spi-nor: macronix: add support for OTP

 drivers/mtd/spi-nor/core.c     | 134 +++++++++++++++++++-------
 drivers/mtd/spi-nor/core.h     |  29 +-----
 drivers/mtd/spi-nor/macronix.c | 167 +++++++++++++++++++++++++++++++++
 drivers/mtd/spi-nor/otp.c      |   6 +-
 drivers/mtd/spi-nor/winbond.c  |   2 +-
 include/linux/mtd/spi-nor.h    |   9 ++
 6 files changed, 283 insertions(+), 64 deletions(-)

-- 
2.39.5


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ