mtd: spi-nor: change "error reading JEDEC id" from dbg to err

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>
This commit is contained in:
Flavio Suligoi 2019-05-24 16:45:45 +02:00 committed by Tudor Ambarus
parent 21ed90acd1
commit 92aae4ce84
No known key found for this signature in database
GPG Key ID: 4B554F47A58D14E9
1 changed files with 1 additions and 1 deletions

View File

@ -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); tmp = nor->read_reg(nor, SPINOR_OP_RDID, id, SPI_NOR_MAX_ID_LEN);
if (tmp < 0) { 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); return ERR_PTR(tmp);
} }