linux/drivers/net
Vladimir Oltean 36641b045c net: pcs: xpcs: also ignore phy id if it's all ones
xpcs_get_id() searches multiple MMDs for a known PHY ID, starting with
MDIO_MMD_PCS (3). However not all integrators might have implemented
that MMD on their MDIO bus. For example, the NXP SJA1105 and SJA1110
switches only implement vendor-specific MMD 1 and 2.

When there is nothing on an MDIO bus at a certain address, traditionally
the bus returns 0xffff, which means that the bus remained in its default
pull-up state for the duration of the MDIO transaction. The 0xffff value
is widely used in drivers/net/phy/phy_device.c (see get_phy_c22_id for
example) to denote a missing device.

So it makes sense for the xpcs to ignore this value as well, and
continue its search, eventually finding the proper PHY ID in the
vendor-specific MMDs.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-06-11 13:43:55 -07:00
..
appletalk Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-05-27 09:55:10 -07:00
arcnet
bonding bonding: remove redundant initialization of variable ret 2021-06-03 15:25:29 -07:00
caif Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-05-27 09:55:10 -07:00
can can: m_can: fix whitespace in a few comments 2021-05-27 09:42:24 +02:00
dsa net: dsa: sja1105: implement TX timestamping for SJA1110 2021-06-11 12:45:38 -07:00
ethernet net: stmmac: reduce indentation when calling stmmac_xpcs_setup 2021-06-11 13:43:55 -07:00
fddi
fjes fjes: check return value after calling platform_get_resource() 2021-06-10 13:53:13 -07:00
hamradio hamradio: bpqether: Fix -Wunused-const-variable warning 2021-06-01 17:00:51 -07:00
hippi
hyperv
ieee802154 Merge tag 'ieee802154-for-davem-2021-06-03' of git://git.kernel.org/pub/scm/linux/kernel/git/sschmidt/wpan 2021-06-03 15:21:58 -07:00
ipa net: ipa: don't index mem data array by ID 2021-06-10 14:50:08 -07:00
ipvlan
mdio net: mdio: mscc-miim: Use devm_platform_get_and_ioremap_resource() 2021-06-11 13:10:20 -07:00
mhi
netdevsim netdevsim: delete unnecessary debugfs checking 2021-06-09 14:16:39 -07:00
pcs net: pcs: xpcs: also ignore phy id if it's all ones 2021-06-11 13:43:55 -07:00
phy net: phylink: Refactor phylink_of_phy_connect() 2021-06-11 13:08:53 -07:00
plip
ppp
slip
team
usb net: usb: asix: ax88772: manage PHY PM from MAC 2021-06-11 13:00:31 -07:00
vmxnet3
wan net: pc300too: fix the comments style issue 2021-06-11 12:58:12 -07:00
wireguard wireguard: allowedips: free empty intermediate nodes when removing single node 2021-06-04 14:25:14 -07:00
wireless mt76: mt7615: Use devm_platform_get_and_ioremap_resource() 2021-06-10 14:00:49 -07:00
wwan net: wwan: core: purge rx queue on port close 2021-06-08 14:33:43 -07:00
xen-netback
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c gtp: Fix a typo 2021-06-01 17:05:04 -07:00
ifb.c
Kconfig net: Kconfig: indent with tabs instead of spaces 2021-06-08 11:34:37 -07:00
LICENSE.SRC
loopback.c
macsec.c
macvlan.c macvlan: Fix a typo 2021-06-01 17:05:04 -07:00
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c
veth.c
virtio_net.c virtio_net: Remove BUG() to avoid machine dead 2021-06-07 13:06:46 -07:00
vrf.c vrf: Fix a typo 2021-06-01 17:05:04 -07:00
vsockmon.c
vxlan.c
xen-netfront.c