From aa0e6f7f134451af40dc7953bdbb973f2b11b6ac Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Sun, 23 Aug 2015 09:35:56 +0000 Subject: brcm63xx: ensure dummy byte is set for mapped spi flash with fast read Some CFEs seem to misconfigure the mapped memory flash access with fast read but without a dummy byte, causing all accesses to be prefixed with 0xff. This of course breaks reading out the nvram, so do not just move back to single i/o accessors, but also ensure that the dummy byte is correctly set. Signed-off-by: Jonas Gorski git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46707 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches-4.1/372_dont_register_pflash_when_available_in_dtb.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target/linux/brcm63xx/patches-4.1/372_dont_register_pflash_when_available_in_dtb.patch') diff --git a/target/linux/brcm63xx/patches-4.1/372_dont_register_pflash_when_available_in_dtb.patch b/target/linux/brcm63xx/patches-4.1/372_dont_register_pflash_when_available_in_dtb.patch index 88efc2360b..25384ebb68 100644 --- a/target/linux/brcm63xx/patches-4.1/372_dont_register_pflash_when_available_in_dtb.patch +++ b/target/linux/brcm63xx/patches-4.1/372_dont_register_pflash_when_available_in_dtb.patch @@ -1,6 +1,6 @@ --- a/arch/mips/bcm63xx/dev-flash.c +++ b/arch/mips/bcm63xx/dev-flash.c -@@ -22,6 +22,8 @@ +@@ -23,6 +23,8 @@ #include #include @@ -9,7 +9,7 @@ static int flash_type; static struct mtd_partition mtd_partitions[] = { -@@ -164,6 +166,9 @@ int __init bcm63xx_flash_register(void) +@@ -178,6 +180,9 @@ int __init bcm63xx_flash_register(void) switch (flash_type) { case BCM63XX_FLASH_TYPE_PARALLEL: -- cgit v1.2.3