diff options
author | 2016-06-01 08:53:48 -0700 | |
---|---|---|
committer | 2016-06-02 12:12:16 -0700 | |
commit | f55d84b07c4e7340473a25dc82b462607578402c (patch) | |
tree | 76d0c5938a675f534fc04e88b8beb308563927a5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | qed: fix qed_fill_link() error handling (diff) | |
download | wireguard-linux-f55d84b07c4e7340473a25dc82b462607578402c.tar.xz wireguard-linux-f55d84b07c4e7340473a25dc82b462607578402c.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions