[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220126160544.1179489-1-tobias@waldekranz.com>
Date: Wed, 26 Jan 2022 17:05:38 +0100
From: Tobias Waldekranz <tobias@...dekranz.com>
To: davem@...emloft.net, kuba@...nel.org
Cc: netdev@...r.kernel.org
Subject: [PATCH v2 net-next 0/5] net/fsl: xgmac_mdio: Preamble suppression and custom MDC frequencies
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
Powered by blists - more mailing lists