Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mtd: spi-nor: gigadevice: Set hardware capabilities inline with the o…
…pcodes defined in flash info 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 d189614 ("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>
- Loading branch information