mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-19 00:11:30 +01:00
net: mv88e6xxx: Fix logical operator instead of bitwise
In mv88e6xxx_port_enable when attempting to mask out the previous settings of two bits a logical operator was used instead of a bitwise operator. Fix this. This issue was found by Smatch. Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
This commit is contained in:
parent
ff36afe346
commit
34bc71f2db
@ -631,7 +631,7 @@ static int mv88e6xxx_port_enable(struct udevice *dev, int port, struct phy_devic
|
||||
dev_dbg(dev, "configure internal RGMII delays\n");
|
||||
|
||||
/* RGMII delays */
|
||||
val &= ~(PORT_REG_PHYS_CTRL_RGMII_DELAY_RXCLK ||
|
||||
val &= ~(PORT_REG_PHYS_CTRL_RGMII_DELAY_RXCLK |
|
||||
PORT_REG_PHYS_CTRL_RGMII_DELAY_TXCLK);
|
||||
if (phy->interface == PHY_INTERFACE_MODE_RGMII_ID ||
|
||||
phy->interface == PHY_INTERFACE_MODE_RGMII_RXID)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user