summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/broadcom/genet/bcmgenet.c
diff options
context:
space:
mode:
authorDoug Berger <opendmb@gmail.com>2020-07-17 02:38:16 +0300
committerDavid S. Miller <davem@davemloft.net>2020-07-17 23:00:27 +0300
commit3d653adb4b4955addad8c3accd33e22cb99a445b (patch)
treeea0e8b3a395156092c8f3629802df71616300f0d /drivers/net/ethernet/broadcom/genet/bcmgenet.c
parent2f11f0df8474b2206c8cf2d5d5b98e7eff240cdf (diff)
downloadlinux-3d653adb4b4955addad8c3accd33e22cb99a445b.tar.xz
net: bcmgenet: test RBUF_ACPI_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 RBUF_ACPI_EN flag when Wake on Filter is enabled. A clear flag indicates that the GENET hardware must have been reset so the remainder of the hardware programming is bypassed. Fixes: f50932cca632 ("net: bcmgenet: add WAKE_FILTER support") Signed-off-by: Doug Berger <opendmb@gmail.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/genet/bcmgenet.c')
0 files changed, 0 insertions, 0 deletions