diff mbox series

[2/2] mtd: spi-nor: winbond: use SNOR_ID3() for w25q512nwm

Message ID 20220510140232.3519184-3-michael@walle.cc
State Changes Requested
Delegated to: Ambarus Tudor
Headers show
Series None | expand

Commit Message

Michael Walle May 10, 2022, 2:02 p.m. UTC
Use the new SNOR_ID3() so we don't have to specify the number of sectors
as we are reading that property from the SFDP anyways.

Signed-off-by: Michael Walle <michael@walle.cc>
---
 drivers/mtd/spi-nor/winbond.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Tudor Ambarus July 12, 2022, 8:40 a.m. UTC | #1
Shaik, can we have your Tested-by tag on this?

Thanks,
ta
Michael Walle July 18, 2022, 7:21 a.m. UTC | #2
Am 2022-07-12 10:40, schrieb Tudor.Ambarus@microchip.com:
> Shaik, can we have your Tested-by tag on this?

This will need the following patch to work correctly:
https://lore.kernel.org/linux-mtd/20220716000643.3541839-1-quic_jaehyoo@quicinc.com/

But other that that, the SFDP data is exactly the same
as in the w25q512nwq, except for the "hello world" string.
But that string is between the header and the tables in
an unused area and I suspect it was accidentally written
during OTP testing as it happend with the w25q512nwq, too.

So this should be good to go once the w25q512nwq is merged.

-michael
Michael Walle July 18, 2022, 7:25 a.m. UTC | #3
Am 2022-07-12 10:40, schrieb Tudor.Ambarus@microchip.com:
> Shaik, can we have your Tested-by tag on this?

Sigh. His email address bounces with "The email address you
entered couldn't be found." So don't expect a Tested-by: here.

-michael
Tudor Ambarus July 19, 2022, 6 a.m. UTC | #4
On 7/18/22 10:25, Michael Walle wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> Am 2022-07-12 10:40, schrieb Tudor.Ambarus@microchip.com:
>> Shaik, can we have your Tested-by tag on this?
> 
> Sigh. His email address bounces with "The email address you
> entered couldn't be found." So don't expect a Tested-by: here.
> 

Would you drop this and pick the other patches that use your SNOR_ID3
and submit them all in a single patch set?
Michael Walle July 19, 2022, 7:02 a.m. UTC | #5
Am 2022-07-19 08:00, schrieb Tudor.Ambarus@microchip.com:
> On 7/18/22 10:25, Michael Walle wrote:
>> EXTERNAL EMAIL: Do not click links or open attachments unless you know 
>> the content is safe
>> 
>> Am 2022-07-12 10:40, schrieb Tudor.Ambarus@microchip.com:
>>> Shaik, can we have your Tested-by tag on this?
>> 
>> Sigh. His email address bounces with "The email address you
>> entered couldn't be found." So don't expect a Tested-by: here.
>> 
> 
> Would you drop this and pick the other patches that use your SNOR_ID3
> and submit them all in a single patch set?

I can collect the other patches, but why drop this if we know
for a fact that the flash will work? (Because it is the same
as the w25q512nwq)

-michael
Tudor Ambarus July 19, 2022, 7:24 a.m. UTC | #6
On 7/19/22 10:02, Michael Walle wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> Am 2022-07-19 08:00, schrieb Tudor.Ambarus@microchip.com:
>> On 7/18/22 10:25, Michael Walle wrote:
>>> EXTERNAL EMAIL: Do not click links or open attachments unless you know
>>> the content is safe
>>>
>>> Am 2022-07-12 10:40, schrieb Tudor.Ambarus@microchip.com:
>>>> Shaik, can we have your Tested-by tag on this?
>>>
>>> Sigh. His email address bounces with "The email address you
>>> entered couldn't be found." So don't expect a Tested-by: here.
>>>
>>
>> Would you drop this and pick the other patches that use your SNOR_ID3
>> and submit them all in a single patch set?
> 
> I can collect the other patches, but why drop this if we know
> for a fact that the flash will work? (Because it is the same
> as the w25q512nwq)
> 

Was it tested? I don't mind to queue it, but I thought we only queue
changes that were tested on actual hw.
diff mbox series

Patch

diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c
index 08f9b5abf4d2..12b38f6776f4 100644
--- a/drivers/mtd/spi-nor/winbond.c
+++ b/drivers/mtd/spi-nor/winbond.c
@@ -134,8 +134,7 @@  static const struct flash_info winbond_nor_parts[] = {
 	{ "w25m512jv", INFO(0xef7119, 0, 64 * 1024, 1024)
 		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_QUAD_READ |
 			      SPI_NOR_DUAL_READ) },
-	{ "w25q512nwm", INFO(0xef8020, 0, 64 * 1024, 1024)
-		PARSE_SFDP
+	{ "w25q512nwm", SNOR_ID3(0xef8020)
 		OTP_INFO(256, 3, 0x1000, 0x1000) },
 	{ "w25q512jvq", INFO(0xef4020, 0, 64 * 1024, 1024)
 		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |