]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Workaround missing PHY ID on mv88e6390
authorAndrew Lunn <andrew@lunn.ch>
Wed, 1 Feb 2017 02:40:05 +0000 (03:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Feb 2017 02:50:51 +0000 (21:50 -0500)
commitc15455e3cd830ebebf52c6a5d14e758e9bdb2efa
tree0439e7832b8562a4c9e4ec3ff1ea842e49205304
parentb87ed64ae2744cefc778504e84ed1a7d51dad24d
net: dsa: mv88e6xxx: Workaround missing PHY ID on mv88e6390

The internal PHYs of the mv88e6390 do not have a model ID. Trap any
calls to the ID register, and if it is zero, return the ID for the
mv88e6390. The Marvell PHY driver can then bind to this ID.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c