]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: marvell10g: fix return value on error
authorBaruch Siach <baruch.siach@siklu.com>
Mon, 25 Apr 2022 06:27:38 +0000 (09:27 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2022 07:14:37 +0000 (09:14 +0200)
commita4f0b9cf27ecefa3af42519c05d3280a72194113
tree9712edaa43c3ff2cfddf4c6b440c5548fb3dfcf2
parent1c9b39c723c756c41c38a002c57f1a2ef6440cc0
net: phy: marvell10g: fix return value on error

[ Upstream commit 2083da97a197e4ce32e33abec58810abfca562d0 ]

Return back the error value that we get from phy_read_mmd().

Fixes: c942fa3335e9 ("net: phy: marvell10g: read copper results from CSSR1")
Signed-off-by: Baruch Siach <baruch.siach@siklu.com>
Reviewed-by: Marek BehĂșn <kabel@kernel.org>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/f47cb031aeae873bb008ba35001607304a171a20.1650868058.git.baruch@tkos.co.il
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/marvell10g.c