Skip to content
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/mtd/ramtron: change nsectors size to uint32 #8561

Merged

Conversation

Igor-Misic
Copy link
Contributor

@Igor-Misic Igor-Misic commented Feb 17, 2023

Summary

PR #8453 allows for FRAM to reduce the size for sectors to 1 byte.
I was testing this with FM25V05 which has a size of 65536 bytes (in this case nsectors = 65536) that was enough to not fit into uint16 with config:

CONFIG_RAMTRON_EMULATE_PAGE_SHIFT=0
CONFIG_RAMTRON_EMULATE_SECTOR_SHIFT=0

Impact

Impacts all FRMAs with 64 KiB or more.

Testing

Tested with the board that has FM25V05 (64 KiB).

@acassis
Copy link
Contributor

acassis commented Feb 17, 2023

Nice finding @Igor-Misic

@acassis acassis merged commit 8e4d461 into apache:master Feb 17, 2023
@Igor-Misic Igor-Misic deleted the pr-ramtron_change_type_for_nsector_tp_uint32 branch February 17, 2023 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants