Skip to contentSkip to conversation

add missing cmdset field in PXA3xx NAND code

PATCH In review Daniel Mack 2 participants 2 messages Dec 1, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add missing cmdset field in PXA3xx NAND code

This adds a missing .cmdset parameter for STM 2G NAND chip definition. Even though support for built-in NAND chips is marked deprecated, the driver crashes in __readid() due to a NULL pointer dereference if it's not there.

drivers/mtd/nand/pxa3xx_nand.c +1 -0
index c0fa9c9..ff4d28e 100644
@@ -269,6 +269,7 @@ static struct pxa3xx_nand_timing stm2GbX16_timing = {
 
 static struct pxa3xx_nand_flash stm2GbX16 = {
        .timing = &stm2GbX16_timing,
+       .cmdset = &largepage_cmdset,
        .page_per_block = 64,
        .page_size = 2048,
        .flash_width = 16,