Skip to content
Commit b69d4d92 authored by Amit Kumar Mahapatra's avatar Amit Kumar Mahapatra Committed by Quanyang Wang
Browse files

mtd: spi-nor: gigadevice: Set hardware capabilities inline with the opcodes defined in flash info

commit 7f5fb704aba9788c798d46b2309d2d2efd51580b from
https://github.com/Xilinx/linux-xlnx.git

 xlnx_rebase_v6.6

In previous kernel releases, the hardware capabilities of the flash part
were updated based on the opcodes mentioned in the flash info structure.
However, the commit d189614f ("mtd: spi-nor: sfdp: Update
params->hwcaps.mask at xSPI profile 1.0 table parse") unconditionally
enables 8D-8D-8D read/write capabilities for all flashes. This results in
read/write failures for some Gigadevice OSPI flashes that do not have
8D-8D-8D read/write commands defined in their flash info structure.
Add a late_init fixup to disable 8D-8D-8D read/write capabilities for
flashes that do not have these commands defined in their flash info entry.

Signed-off-by: default avatarAmit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
Reviewed-by: default avatarRadhey Shyam Pandey <radhey.shyam.pandey@amd.com>
State: pending
Signed-off-by: default avatarQuanyang Wang <quanyang.wang@windriver.com>
parent 95da7974
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment