projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21ed90a
)
mtd: spi-nor: change "error reading JEDEC id" from dbg to err
author
Flavio Suligoi
<f.suligoi@asem.it>
Fri, 24 May 2019 14:45:45 +0000
(16:45 +0200)
committer
Tudor Ambarus
<tudor.ambarus@microchip.com>
Fri, 7 Jun 2019 04:49:41 +0000
(07:49 +0300)
In case of SPI error during the reading of the nor Id,
the probe fails without any error message related to
the JEDEC Id reading procedure.
Signed-off-by: Flavio Suligoi <f.suligoi@asem.it>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
drivers/mtd/spi-nor/spi-nor.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/spi-nor/spi-nor.c
b/drivers/mtd/spi-nor/spi-nor.c
index c8a965859d7b37c923f15d8b3444e492dfab3b23..c0a8837c057521288ef415f87ba7f1100cb82003 100644
(file)
--- a/
drivers/mtd/spi-nor/spi-nor.c
+++ b/
drivers/mtd/spi-nor/spi-nor.c
@@
-2065,7
+2065,7
@@
static const struct flash_info *spi_nor_read_id(struct spi_nor *nor)
tmp = nor->read_reg(nor, SPINOR_OP_RDID, id, SPI_NOR_MAX_ID_LEN);
if (tmp < 0) {
- dev_
dbg
(nor->dev, "error %d reading JEDEC ID\n", tmp);
+ dev_
err
(nor->dev, "error %d reading JEDEC ID\n", tmp);
return ERR_PTR(tmp);
}