mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 15:48:56 +07:00
of: mdio: preserve phy dev_flags in of_phy_connect()
Replace assignment "=" with OR "|=" for "phy->dev_flags" so "dev_flags"
configured in phy probe() function can be preserved.
The idea is similar to commit e7312efbd5
("net: phy: modify assignment
to OR for dev_flags in phy_attach_direct").
Signed-off-by: Tao Ren <rentao.bupt@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
78e57f152c
commit
902053f17d
@ -380,7 +380,7 @@ struct phy_device *of_phy_connect(struct net_device *dev,
|
||||
if (!phy)
|
||||
return NULL;
|
||||
|
||||
phy->dev_flags = flags;
|
||||
phy->dev_flags |= flags;
|
||||
|
||||
ret = phy_connect_direct(dev, phy, hndlr, iface);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user