* net: mdio: support c45 peripherals on c22 only capable mdio controllers
@ 2021-03-31 14:14 Danilo Krummrich
0 siblings, 0 replies; 2+ messages in thread
From: Danilo Krummrich @ 2021-03-31 14:14 UTC (permalink / raw)
To: linux, davem, andrew, hkallweit1; +Cc: netdev, linux-kernel, jeremy.linton
This patch series adds support for clause 45 peripherals on busses driven
by an mdio controller that is only capable of clause 22 frame format
messages by indirect bus accesses.
In order to do so we
- change the name of the field probe_capabilities to capabilities in
struct mii_bus to represent the bus capabilities in general (not only
for probing)
- add functions mdiobus_*_mmd() and mdiobus_indirect_mmd() to handle
indirect bus accesses
- let mdiobus_c45_*() functions check the bus capabilities in order to
decide whether a real clause 45 bus transfer or indirect access should
be performed
- use the new functions to simplify existing code a little bit
- and finally allow probing for clause 45 peripherals on busses that are
not capable of cause 45 frame format
^ permalink raw reply [flat|nested] 2+ messages in thread
* net: mdio: support c45 peripherals on c22 only capable mdio controllers
@ 2021-03-31 14:17 Danilo Krummrich
0 siblings, 0 replies; 2+ messages in thread
From: Danilo Krummrich @ 2021-03-31 14:17 UTC (permalink / raw)
To: linux, davem, andrew, hkallweit1; +Cc: netdev, linux-kernel, jeremy.linton
This patch series adds support for clause 45 peripherals on busses driven
by an mdio controller that is only capable of clause 22 frame format
messages by indirect bus accesses.
In order to do so we
- change the name of the field probe_capabilities to capabilities in
struct mii_bus to represent the bus capabilities in general (not only
for probing)
- add functions mdiobus_*_mmd() and mdiobus_indirect_mmd() to handle
indirect bus accesses
- let mdiobus_c45_*() functions check the bus capabilities in order to
decide whether a real clause 45 bus transfer or indirect access should
be performed
- use the new functions to simplify existing code a little bit
- and finally allow probing for clause 45 peripherals on busses that are
not capable of the clause 45 frame format
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-31 14:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31 14:14 net: mdio: support c45 peripherals on c22 only capable mdio controllers Danilo Krummrich
2021-03-31 14:17 Danilo Krummrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).