Re: [PATCH net] net: phy: realtek: Replace phy functions with non-locked version in rtl8211e_config_init()

2019-05-13 Thread David Miller
From: Andrew Lunn Date: Mon, 13 May 2019 14:50:02 +0200 > On Mon, May 13, 2019 at 03:41:45PM +0900, Kunihiko Hayashi wrote: >> 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 fu

Re: [PATCH net] net: phy: realtek: Replace phy functions with non-locked version in rtl8211e_config_init()

2019-05-13 Thread Andrew Lunn
On Mon, May 13, 2019 at 03:41:45PM +0900, Kunihiko Hayashi wrote: > 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'. > > T

[PATCH net] net: phy: realtek: Replace phy functions with non-locked version in rtl8211e_config_init()

2019-05-12 Thread Kunihiko Hayashi
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 dea