]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: spi-nor: Mask out fast read if not requested in DT
authorBin Meng <bmeng.cn@gmail.com>
Fri, 30 Jul 2021 07:20:17 +0000 (15:20 +0800)
committerJagan Teki <jagan@amarulasolutions.com>
Tue, 3 Aug 2021 06:26:25 +0000 (11:56 +0530)
commit76251f11ca0d0812f0f067241ed6960a2187d7ab
tree68cd0410dcd6e3d3868ae31955cd9a95687d9b6e
parentba681eecc30a0e3b128e306b2e8484b771f4e687
mtd: spi-nor: Mask out fast read if not requested in DT

The DT bindings of "jedec,spi-nor" [1] defines "m25p,fast-read" property
to indicate that "fast read" opcode can be used to read data from the
chip instead of the usual "read" opcode.

If this property is not present in DT, mask out fast read in
spi_nor_init_params(). This change mirrors the same logic in
spi_nor_info_init_params() in drivers/mtd/spi-nor/core.c in
the Linux kernel v5.14-rc3.

[1] Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml in the kernel tree

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/mtd/spi/spi-nor-core.c