]> git.itanic.dy.fi Git - linux-stable/commitdiff
mtd: spi-nor: remove or move flash_info comments
authorMichael Walle <mwalle@kernel.org>
Fri, 8 Sep 2023 10:16:34 +0000 (12:16 +0200)
committerTudor Ambarus <tudor.ambarus@linaro.org>
Tue, 19 Sep 2023 15:57:50 +0000 (18:57 +0300)
Most of the comments are a relict of the past when the flash_info was
just one table. Most of them are useless. Remove them.

Signed-off-by: Michael Walle <mwalle@kernel.org>
Link: https://lore.kernel.org/r/20230807-mtd-flash-info-db-rework-v3-16-e60548861b10@kernel.org
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
drivers/mtd/spi-nor/atmel.c
drivers/mtd/spi-nor/eon.c
drivers/mtd/spi-nor/esmt.c
drivers/mtd/spi-nor/everspin.c
drivers/mtd/spi-nor/intel.c
drivers/mtd/spi-nor/issi.c
drivers/mtd/spi-nor/macronix.c
drivers/mtd/spi-nor/spansion.c
drivers/mtd/spi-nor/sst.c
drivers/mtd/spi-nor/winbond.c
drivers/mtd/spi-nor/xmc.c

index 58968c1e7d2f8ee668641bae12945bb885e4bbcb..d2de2cb0c066668e1b68778d57f3b2211e896c07 100644 (file)
@@ -163,7 +163,6 @@ static const struct spi_nor_fixups atmel_nor_global_protection_fixups = {
 };
 
 static const struct flash_info atmel_nor_parts[] = {
-       /* Atmel -- some are (confusingly) marketed as "DataFlash" */
        { "at25fs010",  INFO(0x1f6601, 0, 32 * 1024,   4)
                FLAGS(SPI_NOR_HAS_LOCK)
                NO_SFDP_FLAGS(SECT_4K)
index 434aaf1558562d5b35169a39d1eb84f8d32bb838..4848ffe8b38fee00d8df08d7f971429b308d8587 100644 (file)
@@ -9,7 +9,6 @@
 #include "core.h"
 
 static const struct flash_info eon_nor_parts[] = {
-       /* EON -- en25xxx */
        { "en25f32",    INFO(0x1c3116, 0, 64 * 1024,   64)
                NO_SFDP_FLAGS(SECT_4K) },
        { "en25p32",    INFO(0x1c2016, 0, 64 * 1024,   64) },
index fcc3b0e7cda9e6bf0ced412ead56ba4a4e809f49..12779bec5f992a9cc649a62496342ae1d04e4624 100644 (file)
@@ -9,7 +9,6 @@
 #include "core.h"
 
 static const struct flash_info esmt_nor_parts[] = {
-       /* ESMT */
        { "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64)
                FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_SWP_IS_VOLATILE)
                NO_SFDP_FLAGS(SECT_4K) },
index 84a07c2e0536f5835095474f61f27de8d0ec10c8..d02c32f2f7adc7ea4016fdf7e99436f20fef9d20 100644 (file)
@@ -9,7 +9,6 @@
 #include "core.h"
 
 static const struct flash_info everspin_nor_parts[] = {
-       /* Everspin */
        { "mr25h128", CAT25_INFO(16 * 1024, 1, 256, 2) },
        { "mr25h256", CAT25_INFO(32 * 1024, 1, 256, 2) },
        { "mr25h10",  CAT25_INFO(128 * 1024, 1, 256, 3) },
index 9179f2d09cbaea69da6db242cc5e414f191127d0..aba62759a02e0fd39de41f89c8a496d0e4a9a285 100644 (file)
@@ -9,7 +9,6 @@
 #include "core.h"
 
 static const struct flash_info intel_nor_parts[] = {
-       /* Intel/Numonyx -- xxxs33b */
        { "160s33b",  INFO(0x898911, 0, 64 * 1024,  32)
                FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_SWP_IS_VOLATILE) },
        { "320s33b",  INFO(0x898912, 0, 64 * 1024,  64)
index b936a28a85df3a2dd96ea5410eefe044103e6093..d31401bcab645d5beb4c3d2390571118caf17cf3 100644 (file)
@@ -47,7 +47,6 @@ static const struct spi_nor_fixups pm25lv_nor_fixups = {
 };
 
 static const struct flash_info issi_nor_parts[] = {
-       /* ISSI */
        { "is25cd512",  INFO(0x7f9d20, 0, 32 * 1024,   2)
                NO_SFDP_FLAGS(SECT_4K) },
        { "is25lq040b", INFO(0x9d4013, 0, 64 * 1024,   8)
@@ -76,7 +75,6 @@ static const struct flash_info issi_nor_parts[] = {
                FLAGS(SPI_NOR_QUAD_PP)
                .fixups = &is25lp256_fixups },
 
-       /* PMC */
        { "pm25lv512",   INFO0(32 * 1024,    2)
                NO_SFDP_FLAGS(SECT_4K)
                .fixups = &pm25lv_nor_fixups
index 0f3bd3ed8eff53a6a455b0ba5fd86d0ef97b6e61..b21e688fe056667ae806cdf124ecdd392b864189 100644 (file)
@@ -33,7 +33,6 @@ static const struct spi_nor_fixups mx25l25635_fixups = {
 };
 
 static const struct flash_info macronix_nor_parts[] = {
-       /* Macronix */
        { "mx25l512e",   INFO(0xc22010, 0, 64 * 1024,   1)
                NO_SFDP_FLAGS(SECT_4K) },
        { "mx25l2005a",  INFO(0xc22012, 0, 64 * 1024,   4)
index f6e0569366b5b1fedc8985d129433a0ed935f010..76c6ce117501c209718b39aff85d85dbd69a17eb 100644 (file)
@@ -756,9 +756,6 @@ static const struct spi_nor_fixups s25fs_s_nor_fixups = {
 };
 
 static const struct flash_info spansion_nor_parts[] = {
-       /* Spansion/Cypress -- single (large) sector size only, at least
-        * for the chips listed here (without boot sectors).
-        */
        { "s25sl032p",  INFO(0x010215, 0x4d00,  64 * 1024,  64)
                NO_SFDP_FLAGS(SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
        { "s25sl064p",  INFO(0x010216, 0x4d00,  64 * 1024, 128)
index 57df68eab6aa542d05fc802af7ac0f7ec371316a..1e06c6841a184e4f612e78b6bfe1257ff0f17f33 100644 (file)
@@ -61,7 +61,6 @@ static const struct spi_nor_fixups sst26vf_nor_fixups = {
 };
 
 static const struct flash_info sst_nor_parts[] = {
-       /* SST -- large erase sizes are "overlays", "sectors" are 4K */
        { "sst25vf040b", INFO(0xbf258d, 0, 64 * 1024,  8)
                FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_SWP_IS_VOLATILE)
                NO_SFDP_FLAGS(SECT_4K)
index ecf52b9e3148fa98c8de8b6443fef34128f32b2c..0ca3e612ccf58507fc77e18079754843136c58ef 100644 (file)
@@ -42,7 +42,6 @@ static const struct spi_nor_fixups w25q256_fixups = {
 };
 
 static const struct flash_info winbond_nor_parts[] = {
-       /* Winbond -- w25x "blocks" are 64K, "sectors" are 4KiB */
        { "w25x05", INFO(0xef3010, 0, 64 * 1024,  1)
                NO_SFDP_FLAGS(SECT_4K) },
        { "w25x10", INFO(0xef3011, 0, 64 * 1024,  2)
index 051411e86339c8a2b1e48de50975fcc4d325ecd3..48062ccb22fa6f591315bde32f115d3306dc20e3 100644 (file)
@@ -9,7 +9,6 @@
 #include "core.h"
 
 static const struct flash_info xmc_nor_parts[] = {
-       /* XMC (Wuhan Xinxin Semiconductor Manufacturing Corp.) */
        { "XM25QH64A", INFO(0x207017, 0, 64 * 1024, 128)
                NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
                              SPI_NOR_QUAD_READ) },
@@ -18,6 +17,7 @@ static const struct flash_info xmc_nor_parts[] = {
                              SPI_NOR_QUAD_READ) },
 };
 
+/* XMC (Wuhan Xinxin Semiconductor Manufacturing Corp.) */
 const struct spi_nor_manufacturer spi_nor_xmc = {
        .name = "xmc",
        .parts = xmc_nor_parts,