-
Notifications
You must be signed in to change notification settings - Fork 8.2k
drivers: can: m_can: fix alignmed issues #41326
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: can: m_can: fix alignmed issues #41326
Conversation
|
@pdietl Have made this hotfix. We can switch to your memcpy when it is through. |
a5b3483 to
c3f8df2
Compare
henrikbrixandersen
left a comment
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.
Thanks.
c91f7db to
9c70154
Compare
Make sure that all access to the msg_sram is 32 bit aligned. Signed-off-by: Alexander Wachter <alexander@wachter.cloud>
martinjaeger
left a comment
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.
|
The generic memcpy32 is not generic enough. I prefer a version with volatile qualifier so that the compiler is forced to copy 32bit in the order specified. |
I'm also puzzled to have such function implemented in a driver. If |
|
@erwango this is a hotfix. As soon as we have something generic, we will switch to that instead. |
|
I merged this to get the hotfix in, but I completely agree we need to move those functions out of the driver. |
Make sure that all access to the msg_sram is 32 bit aligned.
Fix for #41255 and #41074