Skip to contentSkip to conversation

mtd: nand: Fixes for 4.13-rc4

GIT PULL Boris Brezillon 2 participants 2 messages Aug 2, 2017 – Aug 7, 2017 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi Brian,

Sending a v2 of this PR because I forgot to add the Fixes and CC-stable tags on Miquel's patch.

This PR contains a few fixes for 4.13. Some of them are fixing long standing bugs which no one ever complained about (like the small page OOB layout fix) or theoretical ones (like the div-by-zero in the sunxi driver), but others are fixing real bugs introduced in 4.13 (all atmel related bugs have been discovered recently and should ideally be fixed before 4.13 is released).

As usual, let me know if there's something wrong in this PR. If not, can you do your best to get these sent to Linus before the end of the week?

Thanks,

Boris

The following changes since commit 5771a8c08880cdca3bfb4a3fc6d309d6bba20877:

Linux v4.13-rc1 (2017-07-15 15:22:10 -0700)

are available in the git repository at:

git://git.infradead.org/l2-mtd.git tags/nand/fixes-for-4.13-rc4

for you to fetch changes up to ee02f73e04c0e690600f621a3a1d2245834af7fe:

mtd: nand: atmel: Fix EDO mode check (2017-08-02 10:26:43 +0200)

----------------------------------------------------------------
This PR contains both core and drivers fixes for 4.13.

Core fixes:
- Fix data interface setup for ONFI NANDs that do not support the SET FEATURES command
- Fix a kernel doc header
- Fix potential integer overflow when retrieving timing information from the parameter page
- Fix wrong OOB layout for small page NANDs

Driver fixes:
- Fix potential division-by-zero bug
- Fix backward compat with old atmel-nand DT bindings
- Fix ->setup_data_interface() in the atmel NAND driver

----------------------------------------------------------------
Boris Brezillon (4):
mtd: nand: atmel: Fix DT backward compatibility in pmecc.c
mtd: nand: Fix timing setup for NANDs that do not support SET FEATURES
mtd: nand: Declare tBERS, tR and tPROG as u64 to avoid integer overflow
mtd: nand: atmel: Fix EDO mode check

Bryan O'Donoghue (1):
mtd: nand: sunxi: fix potential divide-by-zero error

Jonathan Corbet (1):
mtd: nand: Fix a docs build warning

Miquel Raynal (1):
nand: fix wrong default oob layout for small pages using soft ecc

 drivers/mtd/nand/atmel/nand-controller.c |  2 +-
 drivers/mtd/nand/atmel/pmecc.c           | 21 ++++++---------------
 drivers/mtd/nand/nand_base.c             | 13 ++++++++++---
 drivers/mtd/nand/nand_timings.c          |  6 +++---
 drivers/mtd/nand/sunxi_nand.c            |  4 ++++
 include/linux/mtd/nand.h                 |  6 +++---
 6 files changed, 27 insertions(+), 25 deletions(-)
#1 lore raw
Quoted 12 lines · Boris Brezillon

Hi Brian,

Sending a v2 of this PR because I forgot to add the Fixes and CC-stable tags on Miquel's patch.

This PR contains a few fixes for 4.13. Some of them are fixing long standing bugs which no one ever complained about (like the small page OOB layout fix) or theoretical ones (like the div-by-zero in the sunxi driver), but others are fixing real bugs introduced in 4.13 (all atmel related bugs have been discovered recently and should ideally be fixed before 4.13 is released).

Quoted 2 lines

As usual, let me know if there's something wrong in this PR. If not, can you do your best to get these sent to Linus before the end of the week?

I'm not sure if I've satisfied the last part, but otherwise...pulled.

BTW, you've double-tagged your sign-off on a few of these, probably because you wrote them yourself, then still used an automated 'apply + sign off' script. Not a big deal.

Brian