net: bcmgenet: Set phydev->dev_flags only for internal PHYs
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 11 Oct 2019 19:53:49 +0000 (12:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2019 08:15:10 +0000 (09:15 +0100)
commit15cfb7203fba9e1e1561ba05b4788828642e98d8
treebf33a9de43deb9f857614cd9d77c10a925a8ae6b
parent0197645bf8cd6d6e3994a24d3b2dfd3d72b49167
net: bcmgenet: Set phydev->dev_flags only for internal PHYs

[ Upstream commit 92696286f3bb37ba50e4bd8d1beb24afb759a799 ]

phydev->dev_flags is entirely dependent on the PHY device driver which
is going to be used, setting the internal GENET PHY revision in those
bits only makes sense when drivers/net/phy/bcm7xxx.c is the PHY driver
being used.

Fixes: 487320c54143 ("net: bcmgenet: communicate integrated PHY revision to PHY driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Doug Berger <opendmb@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/genet/bcmmii.c