mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-06 19:19:31 +00:00
ip17xx: correct aneg_done return value
PHY core treats any positive return value as the auto-negotiation done indication. Since we do not actually check any device register in this callback then update it to return positive value with a neutral meaning instead of the register flag to avoid confusing for future readers. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> (cherry picked from commit 2cc61e6e8e951b1480a024fdb66bc539aa163bbc)
This commit is contained in:
parent
816fb3433b
commit
13a5568d6e
@ -1334,7 +1334,7 @@ static int ip17xx_config_aneg(struct phy_device *pdev)
|
||||
|
||||
static int ip17xx_aneg_done(struct phy_device *pdev)
|
||||
{
|
||||
return BMSR_ANEGCOMPLETE;
|
||||
return 1; /* Return any positive value */
|
||||
}
|
||||
|
||||
static int ip17xx_update_link(struct phy_device *pdev)
|
||||
|
Loading…
x
Reference in New Issue
Block a user