]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7cf89e5d5cbc49115e3583f229a229d53f53aa87
tree321234c1b9791afce6b32dd7af897bb9457d136c
parent6bc0b60e77c6b7692356bc9a518386821af52063
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