summaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2016-06-01 08:53:48 -0700
committerDavid S. Miller <davem@davemloft.net>2016-06-02 12:12:16 -0700
commitf55d84b07c4e7340473a25dc82b462607578402c (patch)
tree76d0c5938a675f534fc04e88b8beb308563927a5 /net/ipv4/udp.c
parent14b84e8654c89ed59f433654e6bb64c886d095cd (diff)
downloadop-kernel-dev-f55d84b07c4e7340473a25dc82b462607578402c.zip
op-kernel-dev-f55d84b07c4e7340473a25dc82b462607578402c.tar.gz
stmmac: do not sleep in atomic context for mdio_reset
stmmac_mdio_reset() has been updated to use msleep rather udelay (as some PHY requires a one second delay there). It called from stmmac_resume() within the spin_lock_irqsave block atomic context triggering 'scheduling while atomic'. The stmmac_priv lock usage is not fully documented, but it seems to protect the access to the MAC registers / DMA structures rather than the MDIO bus or the PHY (which have separate locking), so we can push the spin_lock after the stmmac_mdio_reset call. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/udp.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud