diff options
author | Jisheng Zhang <[email protected]> | 2021-12-26 15:40:19 +0800 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2022-03-10 13:52:09 -0600 |
commit | 815953dc2011ad7a34de355dfa703dcef1085219 (patch) | |
tree | 821f03c673d81a761e62082e9aa0c277aa16cc8f /scripts/gcc-plugins/randomize_layout_plugin.c | |
parent | e783362eb54cd99b2cac8b3a9aeac942e6f6ac07 (diff) |
PCI: dwc: Restore MSI Receiver mask during resume
If a host that uses the IP's integrated MSI Receiver lost power
during suspend, we call dw_pcie_setup_rc() to reinit the RC. But
dw_pcie_setup_rc() always sets pp->irq_mask[ctrl] to ~0, so the mask
register is always set as 0xffffffff incorrectly, thus the MSI can't
work after resume.
Fix this issue by moving pp->irq_mask[ctrl] initialization to
dw_pcie_host_init() so we can correctly set the mask reg during both
boot and resume.
Tested-by: Richard Zhu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jisheng Zhang <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions