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:16:24 +0000 (09:16 +0200)
commitbe0cfea41f4aa7d952d0d275d24aba0938eff39b
treeb35b322d9a74cf3a400b0af00fb0451912a0d962
parentb7d15a413848a84a73e00677f164a698aa78b513
net: phy: marvell10g: fix return value on error

[ Upstream commit 0ed9704b660b259b54743cad8a84a11148f60f0a ]

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

Fixes: c84786fa8f91 ("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