]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: bcm_sf2: Qualify phydev->dev_flags based on port
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 10 Mar 2021 22:17:58 +0000 (14:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Mar 2021 00:05:20 +0000 (16:05 -0800)
commit031b4e89599e58f1e021fce7e5f511d2b778c69a
treedc43de7c76327e75533096bb90535160960dd204
parentb3c9347902b30749c17cb0e32fa4914003057025
net: dsa: bcm_sf2: Qualify phydev->dev_flags based on port

Similar to commit 0764c72238b1a7381e3068579b5f34f838e2ec1b ("net:
bcmgenet: Set phydev->dev_flags only for internal PHYs") we need to
qualify the phydev->dev_flags based on whether the port is connected to
an internal or external PHY otherwise we risk having a flags collision
with a completely different interpretation depending on the driver.

Fixes: d0613f5eafab ("net: dsa: bcm_sf2: communicate integrated PHY revision to PHY driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c