Skip to content

collected fallout of porting an ATSAMA5D27 based board

Benedikt Spranger u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tiny-printf: Handle NULL pointer argument to %slib/tiny-printf.c+1 -10 replies
2/5drivers/mtd/ubispl/ubispl.c: Fix error messagedrivers/mtd/ubispl/ubispl.c+1 -10 replies
3/5mtd: nand: raw: Fix potential NULL pointer dereferencedrivers/mtd/nand/raw/nand_base.c+4 -40 replies
4/5mtd: nand: Update NAND manufacturer Idsdrivers/mtd/nand/raw/nand_ids.c include/linux/mtd/rawnand.h+25 -203 replies
5/5mtd: nand: raw: atmel_nand: Add missing nand_scan_ident()drivers/mtd/nand/raw/atmel_nand.c+4 -00 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchJohn Ogness
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] collected fallout of porting an ATSAMA5D27 based board

Hi,

while porting an ATSAMA5D2 based board (booting from NAND flash with UBI) I stumbled over generic, NAND- and UBI related asperity:

1. tiny-printf does not handle NULL arguments to '%s' in a proper way
2. vtbl_check() has an useless debug output due to a typo
3. NAND: An informative output fails badly, if the NAND vendor is unknown
4. the nand_atmel driver lacks a vital initialisation

OK, you might say the nand_atmel NAND driver is obsolete, but it was the only solution to get booting from NAND running. The new DM based NAND driver refused to do anything usefull, so I dropped it after spending a couple of days debugging it:

<RANT>brilliant!</RANT>

regards
Benedikt Spranger

Benedikt Spranger (5):
tiny-printf: Handle NULL pointer argument to %s drivers/mtd/ubispl/ubispl.c: Fix error message
mtd: nand: raw: Fix potential NULL pointer dereference
mtd: nand: Update NAND manufacturer Ids
mtd: nand: raw: atmel_nand: Add missing nand_scan_ident()

 drivers/mtd/nand/raw/atmel_nand.c |  4 ++++
 drivers/mtd/nand/raw/nand_base.c  |  8 ++++----
 drivers/mtd/nand/raw/nand_ids.c   | 22 ++++++++++++----------
 drivers/mtd/ubispl/ubispl.c       |  2 +-
 include/linux/mtd/rawnand.h       | 23 +++++++++++++----------
 lib/tiny-printf.c                 |  2 +-
 6 files changed, 35 insertions(+), 26 deletions(-)
Signature · 1 line
2.45.2