OSDN Git Service

net: phy: realtek: load driver for all PHYs with a Realtek OUI
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 7 Nov 2018 07:52:46 +0000 (08:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Nov 2018 06:18:58 +0000 (22:18 -0800)
commit3b73e842c7265a645f373a2de956ad36292f819d
treef237ef9c509b4b311ac60d7f96b6e945138d7f59
parenta3320bcf28e07163354b0acfad874bf46209df63
net: phy: realtek: load driver for all PHYs with a Realtek OUI

Instead of listing every single PHYID, load the driver for every PHYID
with a Realtek OUI, independent of model number and revision.

This patch also improves two further aspects:
- constify realtek_tbl[]
- the mask should have been 0xffffffff instead of 0x001fffff so far,
  by masking out some bits a PHY from another vendor could have been
  matched

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/realtek.c