linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] Add support for XM25LU64C
       [not found] <20250526121148.9417-1-ssunkkan@gmail.com>
@ 2025-05-27 16:37 ` Pratyush Yadav
  2025-06-30 10:55   ` [PATCH v2] " Ssunk
  0 siblings, 1 reply; 8+ messages in thread
From: Pratyush Yadav @ 2025-05-27 16:37 UTC (permalink / raw)
  To: Ssunk
  Cc: tudor.ambarus, pratyush, mwalle, miquel.raynal, richard, vigneshr,
	hhlee, roccochen, linux-mtd

On Mon, May 26 2025, Ssunk wrote:

> From: Kankan Sun <ssunkkan@gmail.com>
>
> The device is produced by Wuhan Xinxin Semiconductor Manufacturing Corp.
> and found on some routers from Chinese manufactures.
> We need to add this chip to google's AVL
> The data sheet can be found here:
> https://www.xmcwh.com/uploads/954/XM25LU64C%20_%20Ver1.4.pdf

Please read [0] for patch requirements.

Also, does the flash support SFDP? In that case, you shouldn't need an
entry for it at all and let the generic SFDP-based driver drive the
flash instead. Can you try using the flash without add its entry and
check if it works?

[0] https://docs.kernel.org/driver-api/mtd/spi-nor.html

[...]

-- 
Regards,
Pratyush Yadav

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v2] Add support for XM25LU64C
  2025-05-27 16:37 ` [PATCH] Add support for XM25LU64C Pratyush Yadav
@ 2025-06-30 10:55   ` Ssunk
  2025-06-30 11:59     ` Michael Walle
  0 siblings, 1 reply; 8+ messages in thread
From: Ssunk @ 2025-06-30 10:55 UTC (permalink / raw)
  To: pratyush
  Cc: hhlee, linux-mtd, miquel.raynal, mwalle, richard, roccochen,
	ssunkkan, tudor.ambarus, vigneshr

The device is produced by Wuhan Xinxin Semiconductor Manufacturing Corp. (XMC)
and found on some routers from Chinese manufactures.
We need to add this chip to google's AVL
The flash ID was incorrectly set to 0x16 0x41 0x17.
Update to 0x20 0x41 0x17 as per the datasheet.

The data sheet can be found here:
https://www.xmcwh.com/uploads/954/XM25LU64C%20_%20Ver1.5.pdf

Signed-off-by: Kankan Sun <ssunkkan@gmail.com>
---
Changes in v2: 
 - Fix flash ID from 0x16 0x41 0x17 to 0x20 0x41 0x17 (datasheet confirmed).
 drivers/mtd/spi-nor/xmc.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/mtd/spi-nor/xmc.c b/drivers/mtd/spi-nor/xmc.c
index d5a06054b0dd..bc7b1a2afa9b 100644
--- a/drivers/mtd/spi-nor/xmc.c
+++ b/drivers/mtd/spi-nor/xmc.c
@@ -19,6 +19,11 @@ static const struct flash_info xmc_nor_parts[] = {
 		.name = "XM25QH128A",
 		.size = SZ_16M,
 		.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
+	}, {
+		.id = SNOR_ID(0x20, 0x41, 0x17),
+		.name = "XM25LU64C",
+		.size = SZ_8M,
+		.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
 	},
 };
 
-- 
2.34.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] Add support for XM25LU64C
  2025-06-30 10:55   ` [PATCH v2] " Ssunk
@ 2025-06-30 11:59     ` Michael Walle
  2025-07-07 12:14       ` [PATCH v3] " Ssunk
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Walle @ 2025-06-30 11:59 UTC (permalink / raw)
  To: Ssunk, pratyush
  Cc: hhlee, linux-mtd, miquel.raynal, richard, roccochen,
	tudor.ambarus, vigneshr


[-- Attachment #1.1: Type: text/plain, Size: 1663 bytes --]

On Mon Jun 30, 2025 at 12:55 PM CEST, Ssunk wrote:
> The device is produced by Wuhan Xinxin Semiconductor Manufacturing Corp. (XMC)
> and found on some routers from Chinese manufactures.
> We need to add this chip to google's AVL

What is google AVL?

> The flash ID was incorrectly set to 0x16 0x41 0x17.
> Update to 0x20 0x41 0x17 as per the datasheet.

This is not something what you put into the commit message.

> The data sheet can be found here:
> https://www.xmcwh.com/uploads/954/XM25LU64C%20_%20Ver1.5.pdf

I get a 404 here.

> Signed-off-by: Kankan Sun <ssunkkan@gmail.com>
> ---
> Changes in v2: 
>  - Fix flash ID from 0x16 0x41 0x17 to 0x20 0x41 0x17 (datasheet confirmed).
>  drivers/mtd/spi-nor/xmc.c | 5 +++++
>  1 file changed, 5 insertions(+)

NAK.

This flash probably supports SFDP. Pratyush and Tudor have
already asked that and there was no answer as far as I can tell.

That is also probably why the flash was working with your v1
although the ID was wrong. Or you don't even test your patches which
would be even worse.

-michael

>
> diff --git a/drivers/mtd/spi-nor/xmc.c b/drivers/mtd/spi-nor/xmc.c
> index d5a06054b0dd..bc7b1a2afa9b 100644
> --- a/drivers/mtd/spi-nor/xmc.c
> +++ b/drivers/mtd/spi-nor/xmc.c
> @@ -19,6 +19,11 @@ static const struct flash_info xmc_nor_parts[] = {
>  		.name = "XM25QH128A",
>  		.size = SZ_16M,
>  		.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
> +	}, {
> +		.id = SNOR_ID(0x20, 0x41, 0x17),
> +		.name = "XM25LU64C",
> +		.size = SZ_8M,
> +		.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
>  	},
>  };
>  


[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 297 bytes --]

[-- Attachment #2: Type: text/plain, Size: 144 bytes --]

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v3] Add support for XM25LU64C
  2025-06-30 11:59     ` Michael Walle
@ 2025-07-07 12:14       ` Ssunk
  2025-07-07 12:57         ` Michael Walle
  2025-07-11  8:43         ` [PATCH v4] mtd: spi-nor: " Ssunk
  0 siblings, 2 replies; 8+ messages in thread
From: Ssunk @ 2025-07-07 12:14 UTC (permalink / raw)
  To: mwalle
  Cc: hhlee, linux-mtd, miquel.raynal, pratyush, richard, roccochen,
	ssunkkan, tudor.ambarus, vigneshr

The device is produced by Wuhan Xinxin Semiconductor Manufacturing Corp. (XMC)
and found on some routers from Chinese manufactures.
We need to add this chip to google's AVL
The flash ID was incorrectly set to 0x16 0x41 0x17.
Update to 0x20 0x41 0x17 as per the datasheet.

The data sheet can be found here:
https://www.xmcwh.com/uploads/954/XM25LU64C_V1.5.pdf

Signed-off-by: Kankan Sun <ssunkkan@gmail.com>
---
Changes since v3:
  - Our xm25lu64c is not working properly with flashrom, we need to add the following SPI_NOR_HAS_LOCK, SPI_NOR_HAS_TB flags to make the flashrom work normally.
 v2->v3: Add SPI_NOR_HAS_LOCK, SPI_NOR_HAS_TB flags to make the flashrom work normally.
 v1->v2: Update the flash ID to 0x20 0x41 0x17 as per the datasheet.
 drivers/mtd/spi-nor/xmc.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/mtd/spi-nor/xmc.c b/drivers/mtd/spi-nor/xmc.c
index d5a06054b0dd..f1f2a9ba353e 100644
--- a/drivers/mtd/spi-nor/xmc.c
+++ b/drivers/mtd/spi-nor/xmc.c
@@ -19,6 +19,12 @@ static const struct flash_info xmc_nor_parts[] = {
 		.name = "XM25QH128A",
 		.size = SZ_16M,
 		.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
+	}, {
+		.id = SNOR_ID(0x20, 0x41, 0x17),
+		.name = "XM25LU64C",
+		.size = SZ_8M,
+		.flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB,
+		.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
 	},
 };
 
-- 
2.34.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH v3] Add support for XM25LU64C
  2025-07-07 12:14       ` [PATCH v3] " Ssunk
@ 2025-07-07 12:57         ` Michael Walle
  2025-07-07 16:25           ` Ssunk
  2025-07-11  8:43         ` [PATCH v4] mtd: spi-nor: " Ssunk
  1 sibling, 1 reply; 8+ messages in thread
From: Michael Walle @ 2025-07-07 12:57 UTC (permalink / raw)
  To: Ssunk
  Cc: hhlee, linux-mtd, miquel.raynal, pratyush, richard, roccochen,
	tudor.ambarus, vigneshr


[-- Attachment #1.1: Type: text/plain, Size: 636 bytes --]

On Mon Jul 7, 2025 at 2:14 PM CEST, Ssunk wrote:
> The device is produced by Wuhan Xinxin Semiconductor Manufacturing Corp. (XMC)
> and found on some routers from Chinese manufactures.
> We need to add this chip to google's AVL
> The flash ID was incorrectly set to 0x16 0x41 0x17.
> Update to 0x20 0x41 0x17 as per the datasheet.
>
> The data sheet can be found here:
> https://www.xmcwh.com/uploads/954/XM25LU64C_V1.5.pdf
>
> Signed-off-by: Kankan Sun <ssunkkan@gmail.com>

NAK.

Please read the former responses. Until there are any answers to
the open questions I'll going to ignore any further patches.

-michael

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 297 bytes --]

[-- Attachment #2: Type: text/plain, Size: 144 bytes --]

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v3] Add support for XM25LU64C
  2025-07-07 12:57         ` Michael Walle
@ 2025-07-07 16:25           ` Ssunk
  0 siblings, 0 replies; 8+ messages in thread
From: Ssunk @ 2025-07-07 16:25 UTC (permalink / raw)
  To: mwalle; +Cc: linux-mtd

Hi Michael,

Thanks for your review and my apologies for missing your earlier questions.  
Here is v4 of the patch, which addresses all open issues:

---

> *What is "Google AVL"?*

For clarity, "Google AVL" refers to the **Approved Vendor List** used by ChromiumOS to validate flash parts.  

---

> *The datasheet link gives a 404 here.*

The new and working datasheet link is:  
https://www.xmcwh.com/uploads/954/XM25LU64C_V1.5.pdf

---
> *does the flash support SFDP?*

Yes, I have verified that the chip does support SFDP.

Thanks again for your guidance.

Best regards,
Sun


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v4] mtd: spi-nor: Add support for XM25LU64C
  2025-07-07 12:14       ` [PATCH v3] " Ssunk
  2025-07-07 12:57         ` Michael Walle
@ 2025-07-11  8:43         ` Ssunk
  2025-07-16 13:42           ` Tudor Ambarus
  1 sibling, 1 reply; 8+ messages in thread
From: Ssunk @ 2025-07-11  8:43 UTC (permalink / raw)
  To: ssunkkan
  Cc: hhlee, linux-mtd, miquel.raynal, mwalle, pratyush, richard,
	roccochen, tudor.ambarus, vigneshr

The XM25LU64C is a 64Mbit (8MB) SPI-NOR flash memory manufactured by
Wuhan Xinxin Semiconductor Manufacturing Corp. (XMC). This device
supports SFDP. However, additional flashflags beyond SFDP are required
to fully describe its capabilities.
This patch adds an explicit entry for the XM25LU64C, marking support for:

  - 4KiB sector erase (SECT_4K)
  - Dual and Quad read modes (DUAL_READ, QUAD_READ)
  - Block-level lock/unlock support (HAS_LOCK)
  - Top/Bottom protection bits (HAS_TB)

These flash capabilities were confirmed against the vendor datasheet:

  https://www.xmcwh.com/uploads/954/XM25LU64C_V1.5.pdf

### Testing:
Tested according to the "Minimum testing requirements" described in:

  https://docs.kernel.org/driver-api/mtd/spi-nor.html

- This flash is populated on the MT8189-chromebook board and was tested at 52M
- frequency using the jedec,spi-nor SPI controller.
- Detected correctly by Linux MTD subsystem:

    # cat /sys/bus/spi/devices/spi5.0/spi-nor/partname
    XM25LU64C

    # cat /sys/bus/spi/devices/spi5.0/spi-nor/jedec_id
    204117

    # cat /sys/bus/spi/devices/spi5.0/spi-nor/manufacturer
    xmc

- Verified SFDP table presence and correctness:

    # xxd -p /sys/bus/spi/devices/spi5.0/spi-nor/sfdp
    53464450060102ff00060110300000ff20000104d00000ff84000102c0...
    # sha256sum /sys/bus/spi/devices/spi5.0/spi-nor/sfdp
    27ef209af54d6fef4f51f14300e50db95f13180024f3e1aa1c4202edb4914be5
    
- Dump debugfs data:
    # cat /sys/kernel/debug/spi-nor/spi5.0/capabilities
    Supported read modes by the flash
     1S-1S-1S
      opcode	0x03
      mode cycles	0
      dummy cycles	0
     1S-1S-2S
      opcode	0x3b
      mode cycles	0
      dummy cycles	8
     1S-2S-2S
      opcode	0xbb
      mode cycles	2
      dummy cycles	2
     1S-1S-4S
      opcode	0x6b
      mode cycles	0
      dummy cycles	8
     1S-4S-4S
      opcode	0xeb
      mode cycles	2
      dummy cycles	4
     4S-4S-4S
      opcode	0xeb
      mode cycles	2
      dummy cycles	0
    Supported page program modes by the flash
     1S-1S-1S
      opcode		0x02
    Supported page program modes by the flash
     1S-1S-1S
     opcode		0x02
      
    # cat /sys/kernel/debug/spi-nor/spi5.0/params
    name		XM25LU64C
    id			20 41 17 20 41 17
    size		8.00 MiB
    write size		1
    page size		256
    address nbytes	3
    flags		HAS_16BIT_SR | SOFT_RESET

    opcodes
     read		0xbb
     dummy cycles	4
     erase		0x20
     program		0x02
     8D extension	none

    protocols
     read		1S-2S-2S
     write		1S-1S-1S
     register		1S-1S-1S

    erase commands
     20 (4.00 KiB) [1]
     52 (32.0 KiB) [2]
     d8 (64.0 KiB) [3]
     c7 (8.00 MiB)

    sector map
     region (in hex)   | erase mask | flags
     ------------------+------------+----------
     00000000-007fffff |     [ 123] |

- Vrify write:
    # dd if=/dev/urandom of=./spi_test bs=1M count=2
    2+0 records in
    2+0 records out
    2097152 bytes (2.1 MB, 2.0 MiB) copied, 0.0334051 s, 62.8 MB/s
    
    # sha256sum spi*
    be845b59c00525b0e0d570468c7b014bc8e9895c61ce74e8ca4cfc00e34d08aa  spi_test

Signed-off-by: Kankan Sun <ssunkkan@gmail.com>

---

Changes since v2:
- Fixed broken datasheet URL
- Rewrote commit message to clarify SFDP usage and flash flags
- Removed irrelevant internal vendor references
- Added test information of Minimum testing requirements

---
 drivers/mtd/spi-nor/xmc.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/mtd/spi-nor/xmc.c b/drivers/mtd/spi-nor/xmc.c
index d5a06054b0dd..f1f2a9ba353e 100644
--- a/drivers/mtd/spi-nor/xmc.c
+++ b/drivers/mtd/spi-nor/xmc.c
@@ -19,6 +19,12 @@ static const struct flash_info xmc_nor_parts[] = {
 		.name = "XM25QH128A",
 		.size = SZ_16M,
 		.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
+	}, {
+		.id = SNOR_ID(0x20, 0x41, 0x17),
+		.name = "XM25LU64C",
+		.size = SZ_8M,
+		.flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB,
+		.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
 	},
 };
 
-- 
2.34.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH v4] mtd: spi-nor: Add support for XM25LU64C
  2025-07-11  8:43         ` [PATCH v4] mtd: spi-nor: " Ssunk
@ 2025-07-16 13:42           ` Tudor Ambarus
  0 siblings, 0 replies; 8+ messages in thread
From: Tudor Ambarus @ 2025-07-16 13:42 UTC (permalink / raw)
  To: Ssunk
  Cc: hhlee, linux-mtd, miquel.raynal, mwalle, pratyush, richard,
	roccochen, vigneshr



On 7/11/25 9:43 AM, Ssunk wrote:
> The XM25LU64C is a 64Mbit (8MB) SPI-NOR flash memory manufactured by
> Wuhan Xinxin Semiconductor Manufacturing Corp. (XMC). This device
> supports SFDP. However, additional flashflags beyond SFDP are required
> to fully describe its capabilities.

what flags are you referring to?
> This patch adds an explicit entry for the XM25LU64C, marking support for:
> 
>   - 4KiB sector erase (SECT_4K)
won't need it, defined in sfdp
>   - Dual and Quad read modes (DUAL_READ, QUAD_READ)
defined in sfdp

>   - Block-level lock/unlock support (HAS_LOCK)
>   - Top/Bottom protection bits (HAS_TB)

these shall be ok
> 
> These flash capabilities were confirmed against the vendor datasheet:
> 
>   https://www.xmcwh.com/uploads/954/XM25LU64C_V1.5.pdf
> 
> ### Testing:

you can add the testing comments in the "---" comment section

> Tested according to the "Minimum testing requirements" described in:
> 
>   https://docs.kernel.org/driver-api/mtd/spi-nor.html
> 
> - This flash is populated on the MT8189-chromebook board and was tested at 52M
> - frequency using the jedec,spi-nor SPI controller.

this is the compatible for the SPI NOR flash, not the SPI controller :)

> - Detected correctly by Linux MTD subsystem:
> 
>     # cat /sys/bus/spi/devices/spi5.0/spi-nor/partname
>     XM25LU64C
> 
>     # cat /sys/bus/spi/devices/spi5.0/spi-nor/jedec_id
>     204117
> 
>     # cat /sys/bus/spi/devices/spi5.0/spi-nor/manufacturer
>     xmc
> 
> - Verified SFDP table presence and correctness:
> 
>     # xxd -p /sys/bus/spi/devices/spi5.0/spi-nor/sfdp
>     53464450060102ff00060110300000ff20000104d00000ff84000102c0...

we need the full output. We'll reference it in case there will be updates
to this flash entry. Please send the full output.

>     # sha256sum /sys/bus/spi/devices/spi5.0/spi-nor/sfdp
>     27ef209af54d6fef4f51f14300e50db95f13180024f3e1aa1c4202edb4914be5
>     
> - Dump debugfs data:
>     # cat /sys/kernel/debug/spi-nor/spi5.0/capabilities
>     Supported read modes by the flash
>      1S-1S-1S
>       opcode	0x03
>       mode cycles	0
>       dummy cycles	0
>      1S-1S-2S
>       opcode	0x3b
>       mode cycles	0
>       dummy cycles	8
>      1S-2S-2S
>       opcode	0xbb
>       mode cycles	2
>       dummy cycles	2
>      1S-1S-4S
>       opcode	0x6b
>       mode cycles	0
>       dummy cycles	8
>      1S-4S-4S
>       opcode	0xeb
>       mode cycles	2
>       dummy cycles	4
>      4S-4S-4S
>       opcode	0xeb
>       mode cycles	2
>       dummy cycles	0
>     Supported page program modes by the flash
>      1S-1S-1S
>       opcode		0x02
>     Supported page program modes by the flash
>      1S-1S-1S
>      opcode		0x02
>       
>     # cat /sys/kernel/debug/spi-nor/spi5.0/params
>     name		XM25LU64C
>     id			20 41 17 20 41 17
>     size		8.00 MiB
>     write size		1
>     page size		256
>     address nbytes	3
>     flags		HAS_16BIT_SR | SOFT_RESET
> 
>     opcodes
>      read		0xbb
>      dummy cycles	4
>      erase		0x20
>      program		0x02
>      8D extension	none
> 
>     protocols
>      read		1S-2S-2S
>      write		1S-1S-1S
>      register		1S-1S-1S
> 
>     erase commands
>      20 (4.00 KiB) [1]
>      52 (32.0 KiB) [2]
>      d8 (64.0 KiB) [3]
>      c7 (8.00 MiB)
> 
>     sector map
>      region (in hex)   | erase mask | flags
>      ------------------+------------+----------
>      00000000-007fffff |     [ 123] |
> 
> - Vrify write:
>     # dd if=/dev/urandom of=./spi_test bs=1M count=2
>     2+0 records in
>     2+0 records out
>     2097152 bytes (2.1 MB, 2.0 MiB) copied, 0.0334051 s, 62.8 MB/s

here you just generated a file of 2 MB
>     
>     # sha256sum spi*
>     be845b59c00525b0e0d570468c7b014bc8e9895c61ce74e8ca4cfc00e34d08aa  spi_test
> 

and here you get the sha256sum of it. you haven't verified the correctness
of a flash write. Please follow the testing steps in their fullness. 

> Signed-off-by: Kankan Sun <ssunkkan@gmail.com>
> 
> ---
> 
> Changes since v2:
> - Fixed broken datasheet URL
> - Rewrote commit message to clarify SFDP usage and flash flags
> - Removed irrelevant internal vendor references
> - Added test information of Minimum testing requirements
> 
> ---
>  drivers/mtd/spi-nor/xmc.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/mtd/spi-nor/xmc.c b/drivers/mtd/spi-nor/xmc.c
> index d5a06054b0dd..f1f2a9ba353e 100644
> --- a/drivers/mtd/spi-nor/xmc.c
> +++ b/drivers/mtd/spi-nor/xmc.c
> @@ -19,6 +19,12 @@ static const struct flash_info xmc_nor_parts[] = {
>  		.name = "XM25QH128A",
>  		.size = SZ_16M,
>  		.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
> +	}, {
> +		.id = SNOR_ID(0x20, 0x41, 0x17),
> +		.name = "XM25LU64C",

remove name, but add it as a comment. See commits of recent flash additions.
> +		.size = SZ_8M,

if the flash defines SFDP, you won't need the size field.

> +		.flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB

these are ok, if tested. Did you test locking?
,
> +		.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,

you won't need this, they'll be discovered at sfdp parsing.
>  	},
>  };
>  


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-07-16 13:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20250526121148.9417-1-ssunkkan@gmail.com>
2025-05-27 16:37 ` [PATCH] Add support for XM25LU64C Pratyush Yadav
2025-06-30 10:55   ` [PATCH v2] " Ssunk
2025-06-30 11:59     ` Michael Walle
2025-07-07 12:14       ` [PATCH v3] " Ssunk
2025-07-07 12:57         ` Michael Walle
2025-07-07 16:25           ` Ssunk
2025-07-11  8:43         ` [PATCH v4] mtd: spi-nor: " Ssunk
2025-07-16 13:42           ` Tudor Ambarus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).