mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 03:13:20 +02:00
[brcm63xx] alwasy read imagetag with 64K erase block size
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21085 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e2acb9f8d8
commit
636b91e85b
@ -148,7 +148,7 @@ Index: linux-2.6.32.10/drivers/mtd/maps/bcm963xx-flash.c
|
||||
+ return -ENOMEM;
|
||||
+
|
||||
+ /* Get the tag */
|
||||
+ ret = master->read(master,master->erasesize,sizeof(struct bcm_tag), &retlen, (void *)buf);
|
||||
+ ret = master->read(master,0x10000,sizeof(struct bcm_tag), &retlen, (void *)buf);
|
||||
+ if (retlen != sizeof(struct bcm_tag)){
|
||||
+ vfree(buf);
|
||||
+ return -EIO;
|
||||
|
@ -189,7 +189,7 @@ Signed-off-by: Axel Gembe <ago@bastart.eu.org>
|
||||
+ return -ENOMEM;
|
||||
+
|
||||
+ /* Get the tag */
|
||||
+ ret = master->read(master,master->erasesize,sizeof(union bcm_tag), &retlen, (void *)buf);
|
||||
+ ret = master->read(master,0x10000,sizeof(union bcm_tag), &retlen, (void *)buf);
|
||||
+ if (retlen != sizeof(union bcm_tag)){
|
||||
+ vfree(buf);
|
||||
+ return -EIO;
|
||||
|
Loading…
Reference in New Issue
Block a user