net: phy: modify assignment to OR for dev_flags in phy_attach_direct
authorTao Ren <taoren@fb.com>
Tue, 22 Oct 2019 18:31:06 +0000 (11:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Oct 2019 03:42:52 +0000 (20:42 -0700)
commite7312efbd5dec50d791dd98bd92ec9ae4f05a832
tree321234c1b9791afce6b32dd7af897bb9457d136c
parent406715df933ad6a1b8b0545e7689aa5f4ac27922
net: phy: modify assignment to OR for dev_flags in phy_attach_direct

Modify the assignment to OR when dealing with phydev->dev_flags in
phy_attach_direct function, and this is to make sure dev_flags set in
driver's probe callback won't be lost.

Suggested-by: Andrew Lunn <andrew@lunn.ch>
CC: Heiner Kallweit <hkallweit1@gmail.com>
CC: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Tao Ren <taoren@fb.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c