Re: [PATCH] net: phy: allow for reset line to be tied to a sleepy GPIO controller

2019-10-04 Thread David Miller
From: Andrea Merello Date: Fri, 4 Oct 2019 15:53:32 +0200 > mdio_device_reset() makes use of the atomic-pretending API flavor for > handling the PHY reset GPIO line. > > I found no hint that mdio_device_reset() is called from atomic context > and indeed it uses usleep_range() since long time, s

Re: [PATCH] net: phy: allow for reset line to be tied to a sleepy GPIO controller

2019-10-04 Thread Andrew Lunn
On Fri, Oct 04, 2019 at 03:53:32PM +0200, Andrea Merello wrote: > mdio_device_reset() makes use of the atomic-pretending API flavor for > handling the PHY reset GPIO line. > > I found no hint that mdio_device_reset() is called from atomic context > and indeed it uses usleep_range() since long time

[PATCH] net: phy: allow for reset line to be tied to a sleepy GPIO controller

2019-10-04 Thread Andrea Merello
mdio_device_reset() makes use of the atomic-pretending API flavor for handling the PHY reset GPIO line. I found no hint that mdio_device_reset() is called from atomic context and indeed it uses usleep_range() since long time, so I would assume that it is OK to sleep there. This patch switch to gp