]> git.baikalelectronics.ru Git - kernel.git/commit
of: mdio: preserve phy dev_flags in of_phy_connect()
authorTao Ren <rentao.bupt@gmail.com>
Thu, 18 Jun 2020 22:04:44 +0000 (15:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 Jun 2020 00:33:17 +0000 (17:33 -0700)
commitd07be07fa16d243fc0e2ab360927a121ae31ecc8
tree8326cecfa86030dc7199bf3f17d529eba3cc0500
parent34b87cfacb78f913a0d713f6e6eae847b588df83
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 b1c29a8f8c29 ("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>
drivers/of/of_mdio.c