Skip to content

Commit 528b541

Browse files
David Reganmiquelraynal
authored andcommitted
mtd: nand: brcmnand: fix NAND timeout when accessing eMMC
When booting a board to NAND and accessing NAND while eMMC transactions are occurring the NAND will sometimes timeout. This is due to both NAND and eMMC controller sharing the same data bus on BCMBCA chips. Fix is to extend NAND timeout to allow eMMC transactions time to complete. Signed-off-by: David Regan <[email protected]> Reviewed-by: William Zhang <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
1 parent 4a5a99b commit 528b541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mtd/nand/raw/brcmnand/brcmnand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ struct brcm_nand_dma_desc {
101101
#define BRCMNAND_MIN_DEVSIZE (4ULL * 1024 * 1024)
102102

103103
#define NAND_CTRL_RDY (INTFC_CTLR_READY | INTFC_FLASH_READY)
104-
#define NAND_POLL_STATUS_TIMEOUT_MS 100
104+
#define NAND_POLL_STATUS_TIMEOUT_MS 500
105105

106106
#define EDU_CMD_WRITE 0x00
107107
#define EDU_CMD_READ 0x01

0 commit comments

Comments
 (0)