diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-02-08 19:25:22 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-08 23:10:42 -0800 |
commit | 3b5e74e0afe3382f9354b657714ac40673b7c597 (patch) | |
tree | d590b412148eb3f8ba5713a8681c9fbe4421578d /include | |
parent | 0abc676e64e269c59de8dbb8305640f6323f0d02 (diff) | |
download | linux-stable-3b5e74e0afe3382f9354b657714ac40673b7c597.tar.gz linux-stable-3b5e74e0afe3382f9354b657714ac40673b7c597.tar.bz2 linux-stable-3b5e74e0afe3382f9354b657714ac40673b7c597.zip |
net: phy: disregard "Clause 22 registers present" bit in get_phy_c45_devs_in_pkg
Bit 0 in register 1.5 doesn't represent a device but is a flag that
Clause 22 registers are present. Therefore disregard this bit when
populating the device list. If code needs this information it
should read register 1.5 directly instead of accessing the device
list.
Because this bit doesn't represent a device don't define a
MDIO_MMD_XYZ constant, just define a MDIO_DEVS_XYZ constant for
the flag in the device list bitmap.
v2:
- make masking of bit 0 more explicit
- improve commit message
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/mdio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/mdio.h b/include/uapi/linux/mdio.h index 2e6e309f0847..0e012b168e4d 100644 --- a/include/uapi/linux/mdio.h +++ b/include/uapi/linux/mdio.h @@ -115,6 +115,7 @@ /* Device present registers. */ #define MDIO_DEVS_PRESENT(devad) (1 << (devad)) +#define MDIO_DEVS_C22PRESENT MDIO_DEVS_PRESENT(0) #define MDIO_DEVS_PMAPMD MDIO_DEVS_PRESENT(MDIO_MMD_PMAPMD) #define MDIO_DEVS_WIS MDIO_DEVS_PRESENT(MDIO_MMD_WIS) #define MDIO_DEVS_PCS MDIO_DEVS_PRESENT(MDIO_MMD_PCS) |