-
Notifications
You must be signed in to change notification settings - Fork 8k
drivers: can: mchp_mss: New #95698
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
base: main
Are you sure you want to change the base?
drivers: can: mchp_mss: New #95698
Conversation
@con-pax Please have a look at this pull request. |
cb8a282
to
8209b29
Compare
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.
@sebhub to expand on this, using the API as described in the official docs, e.g. calling
due to type punning in mss_can_send. The controller sends out bytes MSB to LSB, hence the bus order inversion ( |
Add a CAN driver for Microchip's PolarFire SoC platform. Signed-off-by: Sebastian Huber <[email protected]>
8209b29
to
556a01f
Compare
Enable the swap endian configuration of the controller to get the behavior expected by the Zephyr CAN API. Co-authored-by: Sebastian Huber <[email protected]> Signed-off-by: Sebastian Huber <[email protected]> Signed-off-by: Donato Brusamento <[email protected]>
I had a flaw in my test setup. I use an MPFS which is connected through a CAN bus to an STM32H7 running Zephyr. In my initial test setup, the STM32H7 simply retransmitted received CAN messages. This setup cannot detect these endian issues. I changed the test setup to check also transfers in one direction. Indeed, the swap endian configuration is required. I pushed a commit based on #96938 which fixes the issue. |
|
Add a CAN driver for Microchip's PolarFire SoC platform.