alwasy read imagetag with 64K erase block size

SVN-Revision: 21085
This commit is contained in:
Florian Fainelli 2010-04-22 15:27:42 +00:00
parent 43311d7182
commit be2a5389e6
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;