public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v2 0/7] mtd: nand: brcmnand: Backported fixes from Linux
@ 2024-09-16  9:58 Linus Walleij
  2024-09-16  9:58 ` [PATCH v2 1/7] mtd: rawnand: brcmnand: Fix ECC level field setting for v7.2 controller Linus Walleij
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: Linus Walleij @ 2024-09-16  9:58 UTC (permalink / raw)
  To: u-boot, Dario Binacchi, Michael Trimarchi, Anand Gore,
	William Zhang, Kursad Oney, Philippe Reynes
  Cc: Linus Walleij, Florian Fainelli, Miquel Raynal, Kamal Dasu,
	David Regan

These are a number of assorted upstream Linux fixes to the
BRCMNAND driver that I have backported in an attempt to get
BRCMBCA working with U-Boot (still not there).

This patch set lowers the hamming distance between the Linux
and U-Boot drivers a bit as well, while we deviate quite
a bit it is still possible to bring fixes over thanks to
exercises like this.

On top of this I have a BCMBCA driver which works fine
albeit with some complaints about ONFI:

NAND:  Could not find valid ONFI parameter page; aborting
256 MiB
(...)
=> nand info

Device 0: nand0, sector size 128 KiB
  Page size         2048 b
  OOB size            64 b
  Erase size      131072 b
  ecc strength         4 bits
  ecc step size      512 b
  subpagesize       2048 b
  options       0x00104200
  bbt options   0x00060000

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
Changes in v2:
- Augment the write protect handling to also support the bool
  "write-protect" property in legacy DTS files.
- Fix a mistake in the use_strap DTS property parsing.
- Tested successfully with BCMBCA driver (will be submitted
  once this is merged).
- Link to v1: https://patchwork.ozlabs.org/project/uboot/list/?series=423357

---
Linus Walleij (1):
      mtd: rawnand: brcmnand: Add read data bus interface

William Zhang (6):
      mtd: rawnand: brcmnand: Fix ECC level field setting for v7.2 controller
      mtd: rawnand: brcmnand: Fix potential false time out warning
      mtd: rawnand: brcmnand: Fix potential out-of-bounds access in oob write
      mtd: rawnand: brcmnand: Fix mtd oobsize
      mtd: rawnand: brcmnand: Support write protection setting from dts
      mtd: rawnand: brcmnand: Add support for getting ecc setting from strap

 drivers/mtd/nand/raw/brcmnand/brcmnand.c | 209 ++++++++++++++++++++++++-------
 drivers/mtd/nand/raw/brcmnand/brcmnand.h |   2 +
 2 files changed, 166 insertions(+), 45 deletions(-)
---
base-commit: a7b83ade98e0f567c82d168022e12d3ebef1f318
change-id: 20240911-brcmnand-fixes-dabd75230a63

Best regards,
-- 
Linus Walleij <linus.walleij@linaro.org>


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2024-09-29 17:20 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-16  9:58 [PATCH v2 0/7] mtd: nand: brcmnand: Backported fixes from Linux Linus Walleij
2024-09-16  9:58 ` [PATCH v2 1/7] mtd: rawnand: brcmnand: Fix ECC level field setting for v7.2 controller Linus Walleij
2024-09-17  0:21   ` William Zhang
2024-09-29 17:19   ` Michael Nazzareno Trimarchi
2024-09-16  9:58 ` [PATCH v2 2/7] mtd: rawnand: brcmnand: Fix potential false time out warning Linus Walleij
2024-09-17  0:20   ` William Zhang
2024-09-29 17:20     ` Michael Nazzareno Trimarchi
2024-09-16  9:58 ` [PATCH v2 3/7] mtd: rawnand: brcmnand: Fix potential out-of-bounds access in oob write Linus Walleij
2024-09-17  0:22   ` William Zhang
2024-09-16  9:58 ` [PATCH v2 4/7] mtd: rawnand: brcmnand: Fix mtd oobsize Linus Walleij
2024-09-17  0:22   ` William Zhang
2024-09-16  9:58 ` [PATCH v2 5/7] mtd: rawnand: brcmnand: Add read data bus interface Linus Walleij
2024-09-17  0:22   ` William Zhang
2024-09-16  9:58 ` [PATCH v2 6/7] mtd: rawnand: brcmnand: Support write protection setting from dts Linus Walleij
2024-09-17  0:26   ` William Zhang
2024-09-16  9:58 ` [PATCH v2 7/7] mtd: rawnand: brcmnand: Add support for getting ecc setting from strap Linus Walleij
2024-09-17  0:31   ` William Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox