diff options
author | Doug Berger <[email protected]> | 2020-07-16 16:38:15 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-07-17 13:00:27 -0700 |
commit | 2f11f0df8474b2206c8cf2d5d5b98e7eff240cdf (patch) | |
tree | 3fbe50d15a63ec814f7f3bae2f0dbd271b5f3d5a /lib/mpi/mpi-bit.c | |
parent | aba69d49fb49c9166596dd78926514173b7f9ab5 (diff) |
net: bcmgenet: test MPD_EN when resuming
When the GENET driver resumes from deep sleep the UMAC_CMD
register may not be accessible and therefore should not be
accessed from bcmgenet_wol_power_up_cfg() if the GENET has
been reset.
This commit adds a check of the MPD_EN flag when Wake on
Magic Packet is enabled. A clear flag indicates that the
GENET hardware must have been reset so the remainder of the
hardware programming is bypassed.
Fixes: 1a1d5106c1e3 ("net: bcmgenet: move clk_wol management to bcmgenet_wol")
Signed-off-by: Doug Berger <[email protected]>
Acked-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions