Skip to content

macb usrio/tsu patches

Conor Dooley linux-devicetree linux-riscv lkml netdev 5 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am 20260325-unsterile-flail-4c7729750dc4@spud

Versions newest first · linked by author and title

  1. v5 Latest14 patches 2 repliesApplied 14/14
  2. v413 patches 2 repliesSuperseded
  3. v310 patches 7 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v28 patches11 repliesSuperseded
v1 RFC7 patches1 replySuperseded

Changes in v5 from the cover letter

- rebase on net-next
- revert one of the commits that landed in net-next in the meantime

Patches in v5 All 14 applied

#Subject and filesSizeRepliesApplied
1/14Revert "net: macb: Clean up the .usrio settings in macb_config instances"drivers/net/ethernet/cadence/macb_main.c+18 -10 repliesApplied
2/14net: macb: rename macb_default_usrio to at91_default_usrio as not all platforms have mii mode control in usriodrivers/net/ethernet/cadence/macb.h drivers/net/ethernet/cadence/macb_main.c+63 -460 repliesApplied
3/14net: macb: split USRIO_HAS_CLKEN capability in twodrivers/net/ethernet/cadence/macb.h drivers/net/ethernet/cadence/macb_main.c+10 -30 repliesApplied
4/14dt-bindings: net: cdns,macb: replace cdns,refclk-ext with cdns,refclk-sourceDocumentation/devicetree/bindings/net/cdns,macb.yaml+53 -30 repliesApplied
5/14net: macb: rework usrio refclk selection codedrivers/net/ethernet/cadence/macb.h drivers/net/ethernet/cadence/macb_main.c+44 -120 repliesApplied
6/14net: macb: np4 doesn't need a usrio pointerdrivers/net/ethernet/cadence/macb_main.c+0 -10 repliesApplied
7/14net: macb: add mpfs specific usrio configurationdrivers/net/ethernet/cadence/macb.h drivers/net/ethernet/cadence/macb_main.c+12 -20 repliesApplied
8/14net: macb: warn on pclk use as a tsu_clk fallbackdrivers/net/ethernet/cadence/macb_main.c+1 -00 repliesApplied
9/14net: macb: clean up tsu clk rate acquisitiondrivers/net/ethernet/cadence/macb_main.c+5 -70 repliesApplied
10/14dt-bindings: net: macb: add property indicating timer adjust modeDocumentation/devicetree/bindings/net/cdns,macb.yaml+15 -00 repliesApplied
11/14net: macb: timer adjust mode is not supporteddrivers/net/ethernet/cadence/macb_main.c+7 -00 repliesApplied
12/14net: macb: runtime detect MACB_CAPS_USRIO_DISABLEDdrivers/net/ethernet/cadence/macb.h drivers/net/ethernet/cadence/macb_main.c+4 -00 repliesApplied
13/14net: macb: set MACB_CAPS_USRIO_DISABLED if no usrio config is provideddrivers/net/ethernet/cadence/macb_main.c+4 -20 repliesApplied
14/14net: macb: drop usrio pointer on EyeQ5 configdrivers/net/ethernet/cadence/macb_main.c+0 -10 repliesApplied

Reviews trailers per patch

1 of 14 patches has a Reviewed-by or Acked-by.

PatchKrzysztof Kozlowski
1/14
2/14
3/14
4/14
5/14
6/14
7/14
8/14
9/14
10/14R-b
11/14
12/14
13/14
14/14

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH net-next v5 00/14] macb usrio/tsu patches

From: Conor Dooley <[email protected]>

Hey folks,

At the very least, it'd be good of the soc vendor folks could check their platforms and see if their usrio stuff actually lines up with what the driver currently calls "macb_default_usrio". Ours didn't and it was a nasty surprise.

Ryan and I figured out that the sama7g5 stuff is not actually using the same usrio bits as earlier devices, so there's now more patches in this series to split them apart. I've not tested the split or the new property due to lack of hardware, but Ryan has.

Marking this stuff net-next, because although they're fixes I don't see any particular urgency, and it avoids creating some dependencies between cleanup items and the fixes.

Cheers,
Conor.

v5:
- rebase on net-next
- revert one of the commits that landed in net-next in the meantime

v4:
- deprecate instead of remove existing devicetree property
- pick up Theo's patches

v3:
- reorder patches
- fix smatch issue reported by Simon
- add patches reworking usrio handling of clken/refclk (and remove the issue the llm reported in the process)
- add a new devicetree property for refclk selection, replacing the existing one.
- drop the dts patch

CC Andrew Lunn <[email protected]>
CC David S. Miller <[email protected]>
CC Eric Dumazet <[email protected]>
CC Jakub Kicinski <[email protected]>
CC Paolo Abeni <[email protected]>
CC Rob Herring <[email protected]>
CC Krzysztof Kozlowski <[email protected]>
CC Conor Dooley <[email protected]>
CC Daire McNamara <[email protected]>
CC Paul Walmsley <[email protected]>
CC Palmer Dabbelt <[email protected]>
CC Albert Ou <[email protected]>
CC Alexandre Ghiti <[email protected]>
CC Nicolas Ferre <[email protected]>
CC Claudiu Beznea <[email protected]>
CC Richard Cochran <[email protected]>
CC Samuel Holland <[email protected]>
CC Dave Stevenson <[email protected]>
CC Sean Anderson <[email protected]>
CC Vineeth Karumanchi <[email protected]>
CC Abin Joseph <[email protected]>
CC Théo Lebrun <[email protected]>
CC Kevin Hao <[email protected]>

Conor Dooley (11):
Revert "net: macb: Clean up the .usrio settings in macb_config
instances"
net: macb: rename macb_default_usrio to at91_default_usrio as not all
platforms have mii mode control in usrio
net: macb: split USRIO_HAS_CLKEN capability in two
dt-bindings: net: cdns,macb: replace cdns,refclk-ext with
cdns,refclk-source
net: macb: rework usrio refclk selection code
net: macb: np4 doesn't need a usrio pointer
net: macb: add mpfs specific usrio configuration
net: macb: warn on pclk use as a tsu_clk fallback
net: macb: clean up tsu clk rate acquisition
dt-bindings: net: macb: add property indicating timer adjust mode
net: macb: timer adjust mode is not supported

Théo Lebrun (3):
net: macb: runtime detect MACB_CAPS_USRIO_DISABLED
net: macb: set MACB_CAPS_USRIO_DISABLED if no usrio config is provided
net: macb: drop usrio pointer on EyeQ5 config

 .../devicetree/bindings/net/cdns,macb.yaml    |  71 ++++++-
 drivers/net/ethernet/cadence/macb.h           |   8 +
 drivers/net/ethernet/cadence/macb_main.c      | 187 +++++++++++++-----
 3 files changed, 212 insertions(+), 54 deletions(-)
Signature · 1 line
2.53.0