Message ID | 20221104084441.1024-1-Frank.Sae@motor-comm.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 4e0243e7128c9b25ea2739136076a95d6adaba5e |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next,v2] net: phy: fix yt8521 duplicated argument to & or | | expand |
Hello: This patch was applied to netdev/net-next.git (master) by David S. Miller <davem@davemloft.net>: On Fri, 4 Nov 2022 16:44:41 +0800 you wrote: > cocci warnings: (new ones prefixed by >>) > >> drivers/net/phy/motorcomm.c:1122:8-35: duplicated argument to & or | > drivers/net/phy/motorcomm.c:1126:8-35: duplicated argument to & or | > drivers/net/phy/motorcomm.c:1130:8-34: duplicated argument to & or | > drivers/net/phy/motorcomm.c:1134:8-34: duplicated argument to & or | > > The second YT8521_RC1R_GE_TX_DELAY_xx should be YT8521_RC1R_FE_TX_DELAY_xx. > > [...] Here is the summary with links: - [net-next,v2] net: phy: fix yt8521 duplicated argument to & or | https://git.kernel.org/netdev/net-next/c/4e0243e7128c You are awesome, thank you!
diff --git a/drivers/net/phy/motorcomm.c b/drivers/net/phy/motorcomm.c index c7593f224177..bd1ab5d0631f 100644 --- a/drivers/net/phy/motorcomm.c +++ b/drivers/net/phy/motorcomm.c @@ -1119,19 +1119,19 @@ static int yt8521_config_init(struct phy_device *phydev) switch (phydev->interface) { case PHY_INTERFACE_MODE_RGMII: - val = YT8521_RC1R_GE_TX_DELAY_DIS | YT8521_RC1R_GE_TX_DELAY_DIS; + val = YT8521_RC1R_GE_TX_DELAY_DIS | YT8521_RC1R_FE_TX_DELAY_DIS; val |= YT8521_RC1R_RX_DELAY_DIS; break; case PHY_INTERFACE_MODE_RGMII_RXID: - val = YT8521_RC1R_GE_TX_DELAY_DIS | YT8521_RC1R_GE_TX_DELAY_DIS; + val = YT8521_RC1R_GE_TX_DELAY_DIS | YT8521_RC1R_FE_TX_DELAY_DIS; val |= YT8521_RC1R_RX_DELAY_EN; break; case PHY_INTERFACE_MODE_RGMII_TXID: - val = YT8521_RC1R_GE_TX_DELAY_EN | YT8521_RC1R_GE_TX_DELAY_EN; + val = YT8521_RC1R_GE_TX_DELAY_EN | YT8521_RC1R_FE_TX_DELAY_EN; val |= YT8521_RC1R_RX_DELAY_DIS; break; case PHY_INTERFACE_MODE_RGMII_ID: - val = YT8521_RC1R_GE_TX_DELAY_EN | YT8521_RC1R_GE_TX_DELAY_EN; + val = YT8521_RC1R_GE_TX_DELAY_EN | YT8521_RC1R_FE_TX_DELAY_EN; val |= YT8521_RC1R_RX_DELAY_EN; break; case PHY_INTERFACE_MODE_SGMII: