Skip to content

can: m_can: various regmask-related cleanup

Torin Cooper-Bennun linux-can 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 4 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 4 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] can: m_can: various regmask-related cleanup

Dear all,

The first patch modernises m_can.c to use the proper masking macros provided in bits.h (namely GENMASK, FIELD_{GET,PREP,MAX}) to make the M_CAN driver more maintainable and readable.

We then clean up the CCCR regmask definitions, to make the differences between M_CAN spec revisions clearer.

TX and RX buffer size configuration is made more explicit, rather than just writing 0x777 to a register to set all buffer sizes to 64 bytes.

Finally, minor whitespace edits to a few comments.

Cheers,

Torin
maxiluxsystems.com