mtd: spi-nor: xilinx: correct the debug message
authorMichael Walle <michael@walle.cc>
Wed, 23 Feb 2022 13:43:49 +0000 (14:43 +0100)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 25 Feb 2022 16:12:12 +0000 (18:12 +0200)
XRDSR is a combination of xilinx and the RDSR opcode, but the register
is just the status register. Correct the debug message.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20220223134358.1914798-24-michael@walle.cc
drivers/mtd/spi-nor/xilinx.c

index ffd5579..9459ac2 100644 (file)
@@ -87,7 +87,7 @@ static int xilinx_nor_read_sr(struct spi_nor *nor, u8 *sr)
        }
 
        if (ret)
-               dev_dbg(nor->dev, "error %d reading XRDSR\n", ret);
+               dev_dbg(nor->dev, "error %d reading SR\n", ret);
 
        return ret;
 }