-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers: flash: flash_mcux_flexspi_nor: check all 3 bytes of JEDEC ID #82448
drivers: flash: flash_mcux_flexspi_nor: check all 3 bytes of JEDEC ID #82448
Conversation
Marking as DNM until I have verified this change on the full set of flash chips that these switch cases should support. |
The FlexSPI NOR driver should verify all 3 bytes of the JEDEC ID match the expected value before attempting to use a custom LUT table with a flash chip. This reduces the odds that an incompatible LUT will be used with a flash chip, as some flash chips may share the same first byte of their device ID but not be compatible with the custom LUT table. Signed-off-by: Daniel DeGrasse <[email protected]>
27e7d99
to
58892bb
Compare
Hardware tests completed, PR should be good to go |
@jtlas19 if you'd like to try this PR on your hardware please do. I expect flash should work correctly now that we are checking all 3 bytes of the JEDEC ID. |
Awesome work, I will give this a go today. |
Tested and it is working on my hardware with the W25Q128JV. |
@de-nordic , I have added myself as the assignee as well as this touching only NXP Flash driver. |
The FlexSPI NOR driver should verify all 3 bytes of the JEDEC ID match the expected value before attempting to use a custom LUT table with a flash chip. This reduces the odds that an incompatible LUT will be used with a flash chip, as some flash chips may share the same first byte of their device ID but not be compatible with the custom LUT table.
This PR has been validated on the following flash chips using
tests/drivers/flash/common
: