Re: [PATCH net-next v3 1/6] net: phy: mscc: migrate to phy_select/restore_page functions

From: Andreas Schwab
Date: Tue Nov 20 2018 - 06:39:57 EST


On Nov 19 2018, Andrew Lunn <andrew@xxxxxxx> wrote:

> I still don't see why that would cause a hang.

[ 996.370000] [<ffffffe0011d7324>] mutex_lock+0x22/0x2a
[ 996.380000] [<ffffffe001039ba0>] mdiobus_read+0x36/0x60
[ 996.380000] [<ffffffe00103b82c>] vsc85xx_config_init+0x4c/0x1e2

vsc85xx_config_init is calling mdiobus_read while holding the mdio_lock.

Andreas.

--
Andreas Schwab, SUSE Labs, schwab@xxxxxxx
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."