Skip to content

can: m_can: various regmask-related cleanup

Torin Cooper-Bennun linux-can 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v14 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4can: m_can: use bits.h macros for all regmasksdrivers/net/can/m_can/m_can.c+86 -1130 replies
2/4can: m_can: clean up CCCR reg defs, order by revsdrivers/net/can/m_can/m_can.c+13 -100 replies
3/4can: m_can: make TXESC, RXESC config more explicitdrivers/net/can/m_can/m_can.c+12 -60 replies
4/4can: m_can: fix whitespace in a few commentsdrivers/net/can/m_can/m_can.c+5 -50 replies

Reviews trailers per patch

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

Read the v2 thread

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

Hi all!

1/4 modernises m_can.c, using GENMASK for all regmasks and FIELD_{GET,PREP,MAX} for ops. Maintainable, consistent and concise.

2/4 makes clear all the differences in CCCR between M_CAN spec revisions,
and orders the defs by revision, ascending.

3/4 makes explicit the config of RX & TX buffer sizes, making it a bit more readable, especially against the spec.

4/4 fixes whitespace in a few comments.

Cheers!

Torin
maxiluxsystems.com

---
v2: patches now correctly based on can-next/testing