diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-11-15 11:30:22 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2008-11-15 11:30:22 +0000 |
commit | 1064d5a460c7caac3c422f1132ca874b9e6ea613 (patch) | |
tree | 34b67b8000880cbb9baa9b52fd2933e89f0d1df4 /target/linux/brcm63xx/files | |
parent | 67df4eb0fff6dc72c0fc06b5006e8d44bc6f140e (diff) | |
download | master-187ad058-1064d5a460c7caac3c422f1132ca874b9e6ea613.tar.gz master-187ad058-1064d5a460c7caac3c422f1132ca874b9e6ea613.tar.bz2 master-187ad058-1064d5a460c7caac3c422f1132ca874b9e6ea613.zip |
This patch is for broadcom 96348GW-11 boards, to get USB and Ethernet working. Also it patches mtd map driver for bcm96xx boards to be sure that CFE1CFE1 code is detected when booting from CFE. (#4201)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13213 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/files')
-rw-r--r-- | target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c b/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c index 504dfac849..9543c172a4 100644 --- a/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c +++ b/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c @@ -177,13 +177,14 @@ static int bcm963xx_detect_cfe(struct mtd_info *master) { int idoffset = 0x4e0; static char idstring[8] = "CFE1CFE1"; - char buf[8]; + char buf[9]; int ret; size_t retlen; ret = master->read(master, idoffset, 8, &retlen, (void *)buf); + buf[retlen] = 0; printk("bcm963xx: Read Signature value of %s\n", buf); - return strcmp(idstring,buf); + return strncmp(idstring,buf,8); } static int __init bcm963xx_mtd_init(void) |