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

Heiko Thiery heiko.thiery at gmail.com
Tue Mar 1 06:23:39 PST 2022


Hi Tudor,

Am Di., 1. März 2022 um 11:56 Uhr schrieb <Tudor.Ambarus at microchip.com>:
>
> 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:

Then I am curious if this is the last request ;-)

> #  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
>

and here you're:

# cat /sys/devices/platform/soc at 0/30800000.bus/30bb0000.spi/spi_master/spi0/spi0.0/spi-nor/jedec_id
c22018
# cat /sys/devices/platform/soc at 0/30800000.bus/30bb0000.spi/spi_master/spi0/spi0.0/spi-nor/manufacturer
macronix
# cat /sys/devices/platform/soc at 0/30800000.bus/30bb0000.spi/spi_master/spi0/spi0.0/spi-nor/partname
mx25l12835f
# xxd -p /sys/devices/platform/soc at 0/30800000.bus/30bb0000.spi/spi_master/spi0/spi0.0/spi-nor/sfdp
53464450000101ff00000109300000ffc2000104600000ffffffffffffff
ffffffffffffffffffffffffffffffffffffe520f1ffffffff0744eb086b
083b04bbfeffffffffff00ffffff44eb0c200f5210d800ffffffffffffff
ffffffffffff003600279df9c06485cbffffffffffff
# sha1sum  /sys/devices/platform/soc at 0/30800000.bus/30bb0000.spi/spi_master/spi0/spi0.0/spi-nor/sfdp
c5e5abe6c5650a9d9c448690b1eeebdf5bfe57d4
/sys/devices/platform/soc at 0/30800000.bus/30bb0000.spi/spi_master/spi0/spi0.0/spi-nor/sfdp

-- 
Heiko



More information about the linux-arm-kernel mailing list