]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: realtek: Replace phy functions with non-locked version in rtl8211e_config_i...
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Mon, 13 May 2019 06:41:45 +0000 (15:41 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 May 2019 16:10:39 +0000 (09:10 -0700)
commita56335f054f5c8b9bf005ea9ae3fbafdfad37e94
tree0bab347f9cd0e060b6c94dd8141760ab0321d3b1
parentdf6178b8c3e3bc1a5023189b33a8b0fec3937345
net: phy: realtek: Replace phy functions with non-locked version in rtl8211e_config_init()

After calling phy_select_page() and until calling phy_restore_page(),
the mutex 'mdio_lock' is already locked, so the driver should use
non-locked version of phy functions. Or there will be a deadlock with
'mdio_lock'.

This replaces phy functions called from rtl8211e_config_init() to avoid
the deadlock issue.

Fixes: 3de2ba2668b4 ("net: phy: realtek: Add rtl8211e rx/tx delays config")
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/realtek.c