[U-Boot] [PATCH 12/12] sf: Pass rd_qeb_req variable as 0 for status and config reg reads

Jagannadha Sutradharudu Teki jagannadh.teki at gmail.com
Mon Dec 31 13:14:23 CET 2012


Config and Status register reads doesn't require to set
the quad enable bit, hence rd_qeb_req variable passed as 0.

Signed-off-by: Jagannadha Sutradharudu Teki <jagannadh.teki at gmail.com>
---
 drivers/mtd/spi/spi_flash.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c
index 15ad05c..7a15a69 100644
--- a/drivers/mtd/spi/spi_flash.c
+++ b/drivers/mtd/spi/spi_flash.c
@@ -293,7 +293,8 @@ int spi_flash_cmd_read_status(struct spi_flash *flash, void *data)
 	int ret;
 
 	cmd = CMD_READ_STATUS;
-	ret = spi_flash_read_common(flash, &cmd, sizeof(cmd), (void *)data, 1);
+	ret = spi_flash_read_common(flash, &cmd, 0,
+				sizeof(cmd), (void *)data, 1);
 	if (ret < 0) {
 		debug("SF: fail to read status register\n");
 		return ret;
@@ -343,7 +344,8 @@ int spi_flash_cmd_read_config(struct spi_flash *flash, void *data)
 	int ret;
 
 	cmd = CMD_READ_CONFIG;
-	ret = spi_flash_read_common(flash, &cmd, sizeof(cmd), (void *)data, 1);
+	ret = spi_flash_read_common(flash, &cmd, 0,
+				sizeof(cmd), (void *)data, 1);
 	if (ret < 0) {
 		debug("SF: fail to read config register\n");
 		return ret;
-- 
1.7.0.4



More information about the U-Boot mailing list