]> 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)
commit521f95cac31f46baf18177106e979cc579a5fd70
tree0bab347f9cd0e060b6c94dd8141760ab0321d3b1
parentc5fe7bfe7515968c420d78a9201cded6f19d183c
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: 2b3a658d7be8 ("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