diff options
author | Doug Berger <opendmb@gmail.com> | 2020-07-17 02:38:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-17 23:00:27 +0300 |
commit | a8c64542b478e61fa17661803b590ed276205914 (patch) | |
tree | 865653dad474f594e36421bffdd3757cb5bfde40 /security | |
parent | 3d653adb4b4955addad8c3accd33e22cb99a445b (diff) | |
download | linux-a8c64542b478e61fa17661803b590ed276205914.tar.xz |
net: bcmgenet: restore HFB filters on resume
The Hardware Filter Block RAM may not be preserved when the GENET
block is reset during a deep sleep, so it is not sufficient to
only backup and restore the enables.
This commit clears out the HFB block and reprograms the rxnfc
rules when the system resumes from a suspended state. To support
this the bcmgenet_hfb_create_rxnfc_filter() function is modified
to access the register space directly so that it can't fail due
to memory allocation issues.
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 'security')
0 files changed, 0 insertions, 0 deletions