mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
ethtool/mdio: Report MDIO mode support and link partner advertising
Add mdio_support and lp_advertising fields to ethtool_cmd. Set these in mdio45_ethtool_gset{,_npage}(). Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3f926da82f
commit
0c09c1a49c
3 changed files with 18 additions and 10 deletions
|
@ -234,6 +234,9 @@ static inline __u16 mdio_phy_id_devad(int phy_id)
|
|||
return phy_id & MDIO_PHY_ID_DEVAD;
|
||||
}
|
||||
|
||||
#define MDIO_SUPPORTS_C22 1
|
||||
#define MDIO_SUPPORTS_C45 2
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
/**
|
||||
|
@ -264,8 +267,6 @@ struct mdio_if_info {
|
|||
|
||||
#define MDIO_PRTAD_NONE (-1)
|
||||
#define MDIO_DEVAD_NONE (-1)
|
||||
#define MDIO_SUPPORTS_C22 1
|
||||
#define MDIO_SUPPORTS_C45 2
|
||||
#define MDIO_EMULATE_C22 4
|
||||
|
||||
struct ethtool_cmd;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue