net: phy: fix yt8521 duplicated argument to & or
Subsystems (4)
Frank
maintainerPATCH 1/1 net: phy: fix yt8521 duplicated argument to & or
The second YT8521_RC1R_GE_TX_DELAY_xx should be YT8521_RC1R_FE_TX_DELAY_xx.
Fixes 70479a40954c ("[net-next,v8.2] net: phy: Add driver for Motorcomm yt8521 gigabit ethernet phy")
Reported-by kernel test robot <[email protected]>
Reported-by Julia Lawall <[email protected]>
Signed-off-by Frank <[email protected]>
--- drivers/net/phy/motorcomm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/net/phy/motorcomm.c +4 -4
@@ -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 :
Signature · 1 line
2.31.0.windows.1
Quoted 6 lines · Frank
The second
YT8521_RC1R_GE_TX_DELAY_xxshould beYT8521_RC1R_FE_TX_DELAY_xx.Fixes 70479a40954c ("[net-next,v8.2] net: phy: Add driver for Motorcomm yt8521 gigabit ethernet phy")Reported-by kernel test robot <[email protected]>Reported-by Julia Lawall <[email protected]>Signed-off-by Frank <[email protected]>
Reviewed-by Andrew Lunn <[email protected]>
Andrew
Jakub Kicinski
maintainerQuoted 3 lines · On Thu, 3 Nov 2022 10:50:47 +0800 Frank wrote:
The second
YT8521_RC1R_GE_TX_DELAY_xxshould beYT8521_RC1R_FE_TX_DELAY_xx.Fixes 70479a40954c ("[net-next,v8.2] net: phy: Add driver for Motorcomm yt8521 gigabit ethernet phy")
There's a spurious space before the Fixes tag, please remove it.
The patches does not apply to the net tree:
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
please rebase and repost.
Quoted 3 lines
Reported-by kernel test robot <[email protected]>Reported-by Julia Lawall <[email protected]>Signed-off-by Frank <[email protected]>