Re: [PATCH v2 6/7] mtd: spi-nor: add generic flash driver

From: Michael Walle
Date: Mon Nov 07 2022 - 13:23:05 EST


Am 2022-11-01 09:46, schrieb Tudor.Ambarus@xxxxxxxxxxxxx:
On 8/11/22 01:06, Michael Walle wrote:
--- a/drivers/mtd/spi-nor/core.c
+++ b/drivers/mtd/spi-nor/core.c
@@ -1632,6 +1632,16 @@ static const struct spi_nor_manufacturer *manufacturers[] = {
&spi_nor_xmc,
};

+static const struct flash_info spi_nor_generic_flash = {
+ .name = "spi-nor-generic",

How about "jedec,spi-nor" instead? The series looks good, I intend to test it
and apply it soon.

I had that string before actually but decided against it because it
looks like "jedec" is the vendor, which is (a) not true for any flash
and (b) if it would be a vendor, it should go into the manufacturer
property, which isn't supported at the moment.

That being said, I don't care too much. After all, it's just a name.

(and yes, I'm on vacation till next week ;)

-michael