mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
pcib: Clear any pending slot status events during attach
Any events left over from boot firmware, etc. are not meaningful so clear pending events during attach. If they are still pending they should remain asserted when the slot status register is re-read. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D49950 (cherry picked from commit ff45e4759a38f44a0199b2948b7b1e987e7c71da)
This commit is contained in:
parent
4373c15f1f
commit
14cb463635
1 changed files with 1 additions and 0 deletions
|
|
@ -1449,6 +1449,7 @@ pcib_setup_hotplug(struct pcib_softc *sc)
|
|||
|
||||
/* Clear any events previously pending. */
|
||||
pcie_write_config(dev, PCIER_SLOT_STA, sc->pcie_slot_sta, 2);
|
||||
sc->pcie_slot_sta = pcie_read_config(dev, PCIER_SLOT_STA, 2);
|
||||
|
||||
/* Enable HotPlug events. */
|
||||
mask = PCIEM_SLOT_CTL_DLLSCE | PCIEM_SLOT_CTL_HPIE |
|
||||
|
|
|
|||
Loading…
Reference in a new issue