From: Stephen Warren Date: Mon, 13 Aug 2012 22:46:21 +0000 (-0600) Subject: sf: winbond: fix page_size X-Git-Tag: v2012.10-rc1~368^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c75942c7b792f420d1bf41e15cb1c00189f26ccd;p=u-boot sf: winbond: fix page_size Commit a4ed3b6 "sf: inline data constants" modified winbond.c's page_size from 256 to 4096. This prevents either/both of "sf write" writing the correct data, or "sf read" from reading the correct data back. This allows U-Boot running on Compulab Tegra to upgrade itself. Signed-off-by: Stephen Warren Signed-off-by: Mike Frysinger --- diff --git a/drivers/mtd/spi/winbond.c b/drivers/mtd/spi/winbond.c index 6d9b3affb0..f6aab3d32f 100644 --- a/drivers/mtd/spi/winbond.c +++ b/drivers/mtd/spi/winbond.c @@ -99,7 +99,7 @@ struct spi_flash *spi_flash_probe_winbond(struct spi_slave *spi, u8 *idcode) flash->write = spi_flash_cmd_write_multi; flash->erase = spi_flash_cmd_erase; flash->read = spi_flash_cmd_read_fast; - flash->page_size = 4096; + flash->page_size = 256; flash->sector_size = 4096; flash->size = 4096 * 16 * params->nr_blocks;