All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/5] net/fsl: xgmac_mdio: Preamble suppression and custom MDC frequencies
@ 2022-01-26 16:05 Tobias Waldekranz
  2022-01-26 16:05 ` [PATCH v2 net-next 1/5] dt-bindings: net: xgmac_mdio: Remove unsupported "bus-frequency" Tobias Waldekranz
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Tobias Waldekranz @ 2022-01-26 16:05 UTC (permalink / raw)
  To: davem, kuba; +Cc: netdev

The first patch removes the docs for a binding that has never been
supported by the driver as far as I can see. This is a bit of a
mystery to me, maybe Freescale/NXP had/has support for it in an
internal version?

We then start working on the xgmac_mdio driver, converting the driver
to exclusively use managed resources, thereby simplifying the error
paths. Suggested by Andrew.

Preamble suppression is then added, followed by MDC frequency
customization. Neither code will change any bits if the corresponding
dt properties are not specified, so as to not trample on any setup
done by the bootloader, which boards might have relied on up to now.

Finally, we document the new bindings.

Tested on a T1023 based board.

v1 -> v2:
 - Whitespace (Andrew)
 - Fail the probe if a custom frequency has been set, but can not be
   applied. I.e. the input clock is missing or the frequency is out of
   range (Andrew)

Tobias Waldekranz (5):
  dt-bindings: net: xgmac_mdio: Remove unsupported "bus-frequency"
  net/fsl: xgmac_mdio: Use managed device resources
  net/fsl: xgmac_mdio: Support preamble suppression
  net/fsl: xgmac_mdio: Support setting the MDC frequency
  dt-bindings: net: xgmac_mdio: Add "clock-frequency" and
    "suppress-preamble"

 .../devicetree/bindings/net/fsl-fman.txt      | 22 +++--
 drivers/net/ethernet/freescale/xgmac_mdio.c   | 91 +++++++++++++------
 2 files changed, 77 insertions(+), 36 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-01-27 14:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-26 16:05 [PATCH v2 net-next 0/5] net/fsl: xgmac_mdio: Preamble suppression and custom MDC frequencies Tobias Waldekranz
2022-01-26 16:05 ` [PATCH v2 net-next 1/5] dt-bindings: net: xgmac_mdio: Remove unsupported "bus-frequency" Tobias Waldekranz
2022-01-26 16:05 ` [PATCH v2 net-next 2/5] net/fsl: xgmac_mdio: Use managed device resources Tobias Waldekranz
2022-01-26 16:05 ` [PATCH v2 net-next 3/5] net/fsl: xgmac_mdio: Support preamble suppression Tobias Waldekranz
2022-01-26 16:05 ` [PATCH v2 net-next 4/5] net/fsl: xgmac_mdio: Support setting the MDC frequency Tobias Waldekranz
2022-01-26 16:38   ` Andrew Lunn
2022-01-26 16:05 ` [PATCH v2 net-next 5/5] dt-bindings: net: xgmac_mdio: Add "clock-frequency" and "suppress-preamble" Tobias Waldekranz
2022-01-27 14:00 ` [PATCH v2 net-next 0/5] net/fsl: xgmac_mdio: Preamble suppression and custom MDC frequencies patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.