]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: c45 baset1: do not skip aneg configuration if clock role is not specified
authorOleksij Rempel <o.rempel@pengutronix.de>
Fri, 5 Aug 2022 07:31:59 +0000 (09:31 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 9 Aug 2022 03:54:28 +0000 (20:54 -0700)
commit35a50e98629c4b4bd501820060c953ded119d352
treea4f164b4948650994938f2c8a1e8bd8c81650248
parent0cbf0d0f61690e65c37f3061067bffd6bcb4339b
net: phy: c45 baset1: do not skip aneg configuration if clock role is not specified

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.

Fixes: 101de7da0e4f ("net: phy: Add 10BASE-T1L support in phy-c45")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220805073159.908643-1-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phy-c45.c