mtd: spi-nor: Use dev_dbg insted of dev_err for low level info
authorTudor Ambarus <tudor.ambarus@microchip.com>
Sat, 2 Nov 2019 11:23:25 +0000 (11:23 +0000)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Thu, 7 Nov 2019 06:16:07 +0000 (08:16 +0200)
commitf633ebe4879b4e9876a8835d90435d9250c65bf2
treec21ea85c8144c50b6eed00d952bee128956e2c47
parent3d63ee5deb466fd66ed6ffb164a87ce36425cf36
mtd: spi-nor: Use dev_dbg insted of dev_err for low level info

What most users care about is "my dev is not working properly".
All low level information should be discovered when activating
the debug traces.

Keep error messages just for the following cases:
- when the SR/FSR report program or erase fails, or attempts of
  modifying a protected sector,
- when the JEDEC ID is not recognized,
- when the resume() call fails,
- when the spi_nor_check() fails.

Suggested-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
drivers/mtd/spi-nor/spi-nor.c