linux/drivers/net/ethernet/microchip
Heiner Kallweit 95ba8f0d57 lan743x: fix deadlock in lan743x_phy_link_status_change()
[ Upstream commit ddb826c2c9 ]

Usage of phy_ethtool_get_link_ksettings() in the link status change
handler isn't needed, and in combination with the referenced change
it results in a deadlock. Simply remove the call and replace it with
direct access to phydev->speed. The duplex argument of
lan743x_phy_update_flowcontrol() isn't used and can be removed.

Fixes: c10a485c3d ("phy: phy_ethtool_ksettings_get: Lock the phy for consistency")
Reported-by: Alessandro B Maurici <abmaurici@gmail.com>
Tested-by: Alessandro B Maurici <abmaurici@gmail.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/40e27f76-0ba3-dcef-ee32-a78b9df38b0f@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-12-01 09:19:06 +01:00
..
enc28j60_hw.h
enc28j60.c
encx24j600_hw.h net: encx24j600: check error in devm_regmap_init_encx24j600 2021-10-20 11:45:04 +02:00
encx24j600-regmap.c net: encx24j600: check error in devm_regmap_init_encx24j600 2021-10-20 11:45:04 +02:00
encx24j600.c net: encx24j600: check error in devm_regmap_init_encx24j600 2021-10-20 11:45:04 +02:00
Kconfig
lan743x_ethtool.c
lan743x_ethtool.h
lan743x_main.c lan743x: fix deadlock in lan743x_phy_link_status_change() 2021-12-01 09:19:06 +01:00
lan743x_main.h lan743x: fix endianness when accessing descriptors 2021-11-02 19:48:24 +01:00
lan743x_ptp.c
lan743x_ptp.h
Makefile