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

devicetree: make DT_..._REG_ADDR return unsigned #78766

Merged

Conversation

fabiobaltieri
Copy link
Member

@fabiobaltieri fabiobaltieri commented Sep 20, 2024

DT_..._REG_ADDR macros do not always return an unsigned value. This commit adds and unsigned 32bit prefix to ensure the value is always unsigned.

More context:

Picking up from #70761

@fabiobaltieri fabiobaltieri force-pushed the dt-addr-unsigned branch 8 times, most recently from 1658d64 to 542ebde Compare September 20, 2024 22:03
@fabiobaltieri fabiobaltieri changed the title devicetree: make dt_inst_reg_addr return unsigned devicetree: make DT_..._REG_ADDR return unsigned Sep 20, 2024
@fabiobaltieri fabiobaltieri marked this pull request as ready for review September 20, 2024 22:04
@fabiobaltieri fabiobaltieri added the RFC Request For Comments: want input from the community label Sep 20, 2024
@fabiobaltieri fabiobaltieri removed the Architecture Review Discussion in the Architecture WG required label Oct 1, 2024
@fabiobaltieri
Copy link
Member Author

fabiobaltieri commented Oct 1, 2024

  • fixed a typo in release notes and more

ghost
ghost previously approved these changes Oct 1, 2024
decsny
decsny previously approved these changes Oct 1, 2024
teburd
teburd previously approved these changes Oct 1, 2024
@aescolar
Copy link
Member

aescolar commented Oct 2, 2024

@fabiobaltieri rebase needed

`DT_..._REG_ADDR` macros do not always return an unsigned value. This
commit adds and unsigned 32bit prefix to ensure the value is always
unsigned.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
@fabiobaltieri
Copy link
Member Author

Merge conflict, rebased, I dropped the flash_simulator commit entirely as the validation code has been changed and I think the casting is not needed anymore, hang on for the CI run (can't recall what platform/combo test was failing specifically) will reapply if it's still a problem.

Copy link
Collaborator

@bjarki-andreasen bjarki-andreasen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI seems happy :)

@fabiobaltieri
Copy link
Member Author

hurray!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ADC Analog-to-Digital Converter (ADC) area: Base OS Base OS Library (lib/os) area: Devicetree area: Flash area: MSPI area: SPI SPI bus area: W1 1-Wire Release Notes To be mentioned in the release notes RFC Request For Comments: want input from the community
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.