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:Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com> Reviewed-by:
Radhey Shyam Pandey <radhey.shyam.pandey@amd.com> State: pending Signed-off-by:
Quanyang Wang <quanyang.wang@windriver.com>
Loading
Please register or sign in to comment