-
Notifications
You must be signed in to change notification settings - Fork 7.7k
soc: sensry: fix irq enable/disable #91235
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
Conversation
2b9e608
to
40cf7fb
Compare
@tswaehn can you comment here? Or maybe share the relevant portion of the reference manual? thanks! |
To be honest, from documentation point of view - your fix is 100% correct. the registers are both write-only. So the reading before writing is absolutely non-sense. I m running the changes on hardware and update comments here, ... |
@tswaehn thanks! Let me put this out of draft then, since at least it doesn't look to be complete nonsense :) |
moreover, the inversion for clear is incorrect and that should also fix with your commit. |
@tswaehn it looks like you might need to ask to be added as a collaborator in the GH organization, your +1 should be counting towards approval and showing up as green, but it doesn't. |
uint32_t current = sys_read32(SY1XX_ARCHI_FC_ITC_ADDR + SY1XX_ARCHI_ITC_MASK_SET_OFFSET); | ||
|
||
sys_write32(current | (1 << (idx & 0x1f)), | ||
sys_write32(BIT(idx & 0x1f), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not for this PR but this mask should have a define, also the parenthesis on SY1XX_ARCHI_REF_CLOCK
and SY1XX_ARCHI_PER_CLOCK
and redundant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there you go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you.
removed redundant parentheses Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
SET/CLR registers are write-only so trying to read/modify/write is inefficient & illegal Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
|
SET/CLR registers are write-only so trying to read/modify/write is inefficient & illegal
@tswaehn just curious if this fix is correct - it was a suggestion I got while experimenting with LLMs on the codebase, but since it doesn't seem the ganymed documentation is public, it's hard to tell if it's correct :)