net: phy: disregard "Clause 22 registers present" bit in get_phy_c45_devs_in_pkg
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 8 Feb 2019 18:25:22 +0000 (19:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Feb 2019 07:10:42 +0000 (23:10 -0800)
commit3b5e74e0afe3382f9354b657714ac40673b7c597
treed590b412148eb3f8ba5713a8681c9fbe4421578d
parent0abc676e64e269c59de8dbb8305640f6323f0d02
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>
drivers/net/phy/phy_device.c
include/uapi/linux/mdio.h