Star64_linux/drivers/net/pcs
Vladimir Oltean 3a27433958 net: pcs: xpcs: propagate xpcs_read error to xpcs_get_state_c37_sgmii
[ Upstream commit 27161db090 ]

While phylink_pcs_ops :: pcs_get_state does return void, xpcs_get_state()
does check for a non-zero return code from xpcs_get_state_c37_sgmii()
and prints that as a message to the kernel log.

However, a non-zero return code from xpcs_read() is translated into
"return false" (i.e. zero as int) and the I/O error is therefore not
printed. Fix that.

Fixes: b97b5331b8 ("net: pcs: add C37 SGMII AN support for intel mGbE controller")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20220720112057.3504398-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-04-19 17:51:52 +08:00
..
Kconfig
Makefile
pcs-lynx.c
pcs-xpcs-nxp.c
pcs-xpcs.c net: pcs: xpcs: propagate xpcs_read error to xpcs_get_state_c37_sgmii 2023-04-19 17:51:52 +08:00
pcs-xpcs.h