Skip to content
Commit ee2dcf70 authored by Oleksij Rempel's avatar Oleksij Rempel Committed by Bruce Ashfield
Browse files

net: phy: c45 baset1: do not skip aneg configuration if clock role is not specified

commit 8a9f0021d489c70283a4253e40322349fc39d912 from
https://github.com/nxp-auto-linux/linux

In case master/slave clock role is not specified (which is default), the
aneg registers will not be written.

The visible impact of this is missing pause advertisement.

So, rework genphy_c45_baset1_an_config_aneg() to be able to write
advertisement registers even if clock role is unknown.

Issue: ALB-10440

Fixes: 3da8ffd8

 ("net: phy: Add 10BASE-T1L support in phy-c45")
Signed-off-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220805073159.908643-1-o.rempel@pengutronix.de
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
(cherry picked from commit 3702e404

)
Signed-off-by: default avatarZhantao Tang <zhantao.tang@windriver.com>
parent 851a3967
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment