]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
eeprom: at25: make FRAM device ID error message more precise
authorMarkus Heidelberg <m.heidelberg@cab.de>
Fri, 15 Aug 2025 09:58:38 +0000 (11:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 13:58:23 +0000 (15:58 +0200)
The error description would be wrong in case the "size" Devicetree
property is missing for an FRAM without device ID.

Signed-off-by: Markus Heidelberg <m.heidelberg@cab.de>
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Link: https://lore.kernel.org/r/20250815095839.4219-4-m.heidelberg@cab.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/at25.c

index c90150f728369e9f45d74966f4c3eccef6aec3cb..e2868f7bdb035dacf1bc034d72e0c535d167817c 100644 (file)
@@ -399,7 +399,7 @@ static int at25_fram_to_chip(struct device *dev, struct spi_eeprom *chip)
                                id[j] = tmp;
                        }
                if (id[6] != 0xc2) {
-                       dev_err(dev, "Error: no Cypress FRAM (id %02x)\n", id[6]);
+                       dev_err(dev, "Error: no Cypress FRAM with device ID (manufacturer ID bank 7: %02x)\n", id[6]);
                        return -ENODEV;
                }