Commit daa84735 authored by Chen Gong's avatar Chen Gong Committed by David Woodhouse

[MTD] m25p80.c extended jedec support (v2)

Include missing parts of previous patch.
Signed-off-by: default avatarChen Gong <g.chen@freescale.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 69fd3a8d
...@@ -548,7 +548,7 @@ static struct flash_info *__devinit jedec_probe(struct spi_device *spi) ...@@ -548,7 +548,7 @@ static struct flash_info *__devinit jedec_probe(struct spi_device *spi)
{ {
int tmp; int tmp;
u8 code = OPCODE_RDID; u8 code = OPCODE_RDID;
u8 id[3]; u8 id[5];
u32 jedec; u32 jedec;
u16 ext_jedec; u16 ext_jedec;
struct flash_info *info; struct flash_info *info;
...@@ -557,7 +557,7 @@ static struct flash_info *__devinit jedec_probe(struct spi_device *spi) ...@@ -557,7 +557,7 @@ static struct flash_info *__devinit jedec_probe(struct spi_device *spi)
* string for after vendor-specific data, after the three bytes * string for after vendor-specific data, after the three bytes
* we use here. Supporting some chips might require using it. * we use here. Supporting some chips might require using it.
*/ */
tmp = spi_write_then_read(spi, &code, 1, id, 3); tmp = spi_write_then_read(spi, &code, 1, id, 5);
if (tmp < 0) { if (tmp < 0) {
DEBUG(MTD_DEBUG_LEVEL0, "%s: error %d reading JEDEC ID\n", DEBUG(MTD_DEBUG_LEVEL0, "%s: error %d reading JEDEC ID\n",
spi->dev.bus_id, tmp); spi->dev.bus_id, tmp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment