]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commitdffe7d2e04670ff98e4dacf258df30446e2e80d4
tree0bab347f9cd0e060b6c94dd8141760ab0321d3b1
parent5afcd14cfc7fed1bcc8abcee2cef82732772bfc2
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: f81dadbcf7fd ("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