Re: [U-Boot] [PATCH v3 09/17] sf: Initialize bank_sel to zero for read ops

2013-06-13 Thread Jagan Teki
On Thu, Jun 13, 2013 at 4:08 AM, Simon Glass s...@chromium.org wrote:
 On Tue, Jun 11, 2013 at 12:23 PM, Jagannadha Sutradharudu Teki
 jagannadha.sutradharudu-t...@xilinx.com wrote:

 Initialized bank_sel variable to 0 to support the updated read
 ops for flashes which has  16Mbytes.

 Signed-off-by: Jagannadha Sutradharudu Teki jaga...@xilinx.com


 Reviewed-by: Simon Glass s...@chromium.org

 (This seems like it could be merged with an early patch?)


Merged with previous patch, thanks

--
Thanks,
Jagan.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v3 09/17] sf: Initialize bank_sel to zero for read ops

2013-06-12 Thread Simon Glass
On Tue, Jun 11, 2013 at 12:23 PM, Jagannadha Sutradharudu Teki 
jagannadha.sutradharudu-t...@xilinx.com wrote:

 Initialized bank_sel variable to 0 to support the updated read
 ops for flashes which has  16Mbytes.

 Signed-off-by: Jagannadha Sutradharudu Teki jaga...@xilinx.com


Reviewed-by: Simon Glass s...@chromium.org

(This seems like it could be merged with an early patch?)
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v3 09/17] sf: Initialize bank_sel to zero for read ops

2013-06-11 Thread Jagannadha Sutradharudu Teki
Initialized bank_sel variable to 0 to support the updated read
ops for flashes which has  16Mbytes.

Signed-off-by: Jagannadha Sutradharudu Teki jaga...@xilinx.com
---
Changes for v3:
- none
Changes for v2:
- none

 drivers/mtd/spi/spi_flash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c
index ee959fc..96b8733 100644
--- a/drivers/mtd/spi/spi_flash.c
+++ b/drivers/mtd/spi/spi_flash.c
@@ -151,7 +151,7 @@ int spi_flash_read_common(struct spi_flash *flash, const u8 
*cmd,
 int spi_flash_cmd_read_fast(struct spi_flash *flash, u32 offset,
size_t len, void *data)
 {
-   u8 cmd[5], bank_sel;
+   u8 cmd[5], bank_sel = 0;
u32 remain_len, read_len;
int ret = -1;
 
-- 
1.8.3


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot