diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2021-11-26 17:31:05 +0000 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-06-21 10:57:43 +0100 |
commit | 4b36015671ffabc3a8ff61c4f45e41f456707be1 (patch) | |
tree | e7eefffefe12c0d8fb7e724ccdb8412afcdb06c8 /crypto/deflate.c | |
parent | 7bed4e9b51e565883f941e048e7ad675c02b859d (diff) |
net: phylink: validate only used interfaces for c45 PHYs
Some clause 45 PHYs such as Marvell 88X33x0 and Broadcom 84881 switch
between a set of interface types depending on the negotiated media
speed.
We currently validate this kind of PHY using all MAC capabilities,
which is not correct if that would give a superset of the ethtool link
modes.
This commit uses the previously introduced phy possible_interfaces, and
the recently introduced supported_interfaces to calculate the union of
interface support, and then validates only those interfaces.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'crypto/deflate.c')
0 files changed, 0 insertions, 0 deletions