[PATCH 0/2] mtd: spi-nor: Fix Quad Enable method for MX25L12835F

Tudor.Ambarus at microchip.com Tudor.Ambarus at microchip.com
Tue Mar 1 02:56:21 PST 2022


On 3/1/22 12:54, Tudor Ambarus wrote:
> On 3/1/22 12:29, Heiko Thiery wrote:
>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>>
>> Hi Tudor,
>>
>> Am Di., 1. März 2022 um 10:56 Uhr schrieb Tudor Ambarus
>> <tudor.ambarus at microchip.com>:
>>>
>>> Hi, Heiko,
>>>
>>> Would you please apply this patch set on top of:
>>> https://lore.kernel.org/linux-mtd/20220228134505.203270-1-tudor.ambarus@microchip.com/
>>
>> When applying that series the flash will be properly detected.
>>
>> [    1.322655] spi-nor spi0.0: mx25l12835f (16384 Kbytes)
>>
> 
> Cool. I'll resubmit a new series where I'll add your tested by tag. I'll also
> reword the commit messages.
> 
> Also, can you run such a script to verify erase-write-read?
> #!/bin/sh 
> 
> dd if=/dev/urandom of=./qspi_test bs=1M count=6 
> mtd_debug erase /dev/mtd5 0 6291456 
> mtd_debug write /dev/mtd5 0 6291456 qspi_test 
> mtd_debug read /dev/mtd5 0 6291456 qspi_read 
> sha1sum qspi_test qspi_read
> 

Also, would be good to dump all the sysfs entries, I have just the SFDP one.
I promise this is the last request :). Here's an example:

#  cat /sys/devices/platform/ahb/ahb:apb/f0020000.spi/spi_master/spi1/spi1.0/spi-nor/jedec_id
c22016
# cat /sys/devices/platform/ahb/ahb:apb/f0020000.spi/spi_master/spi1/spi1.0/spi-nor/manufacturer
macronix
# cat /sys/devices/platform/ahb/ahb:apb/f0020000.spi/spi_master/spi1/spi1.0/spi-nor/partname
mx25l3233f
# cat /sys/devices/platform/ahb/ahb:apb/f0020000.spi/spi_master/spi1/spi1.0/spi-nor/sfdp > mx25l3233f-sfdp


# xxd -p mx25l3233f-sfdp
53464450000101ff00000109300000ffc2000104600000ffffffffffffff
ffffffffffffffffffffffffffffffffffffe520f1ffffffff0144eb086b
083b04bbeeffffffffff00ffffff00ff0c200f5210d800ffffffffffffff
ffffffffffff003650269cf97764fecfffffffffffff

# sha1sum mx25l3233f-sfdp 
1b6e0f75b4a6d08d570082992455affa72b2dc81  mx25l3233f-sfdp



More information about the linux-arm-kernel mailing list