diff options
| author | Vladimir Oltean <[email protected]> | 2021-09-29 18:04:38 +0300 |
|---|---|---|
| committer | Ramon Fried <[email protected]> | 2021-11-23 09:57:55 +0200 |
| commit | 0783b16509a1e6d9821084ec64f5be1cc091c7f9 (patch) | |
| tree | ce7951d829048a1c82ddc0e133725b80b1df246e /scripts/env2string.awk | |
| parent | 8a5c0570333a2c37ff8d8d53018df4b65ce77a47 (diff) | |
net: dsa: allow drivers to get the port OF node
In the current DSA switch driver API, only the udevice of the switch
(belonging to UCLASS_DSA) is exposed, as well as an "int port" argument.
So drivers do not have access to the udevice of individual ports
(belonging to UCLASS_ETH), one of the reasons being that not all ports
have an associated UCLASS_ETH udevice.
However, all DSA ports have an OF node, and in some cases the driver
needs a handle to it, for all ports including the CPU port. Example: the
following Linux per-port device tree property:
managed = "in-band-status";
states whether a port should operate with clause 37 in-band autoneg
enabled or not.
This patch exposes a function which can be called by individual drivers
as needed.
Signed-off-by: Vladimir Oltean <[email protected]>
Reviewed-by: Ramon Fried <[email protected]>
Diffstat (limited to 'scripts/env2string.awk')
0 files changed, 0 insertions, 0 deletions
