Explorar o código

revert r21085, fixes #7282

SVN-Revision: 21352
Florian Fainelli %!s(int64=15) %!d(string=hai) anos
pai
achega
f89ff525ee

+ 1 - 1
target/linux/brcm63xx/patches-2.6.32/040-bcm963xx_flashmap.patch

@@ -140,7 +140,7 @@ Signed-off-by: Axel Gembe <[email protected]>
 +		return -ENOMEM;
 +
 +	/* Get the tag */
-+	ret = master->read(master,0x10000,sizeof(struct bcm_tag), &retlen, (void *)buf);
++	ret = master->read(master,master->erasesize,sizeof(struct bcm_tag), &retlen, (void *)buf);
 +	if (retlen != sizeof(struct bcm_tag)){
 +		vfree(buf);
 +		return -EIO;

+ 1 - 1
target/linux/brcm63xx/patches-2.6.33/040-bcm963xx_flashmap.patch

@@ -140,7 +140,7 @@ Signed-off-by: Axel Gembe <[email protected]>
 +		return -ENOMEM;
 +
 +	/* Get the tag */
-+	ret = master->read(master,0x10000,sizeof(struct bcm_tag), &retlen, (void *)buf);
++	ret = master->read(master,mater->erasesize,sizeof(struct bcm_tag), &retlen, (void *)buf);
 +	if (retlen != sizeof(struct bcm_tag)){
 +		vfree(buf);
 +		return -EIO;