diff options
author | zbb <zbb@FreeBSD.org> | 2017-05-25 14:34:21 +0000 |
---|---|---|
committer | Luiz Souza <luiz@netgate.com> | 2017-09-06 11:38:36 -0500 |
commit | 48ea838d60d9e9c84534c5545a24670e0a8128b3 (patch) | |
tree | 1c2cb8fccd99a20f39125a66d2f37763a7e4ee8a | |
parent | 44966a2f7132d312cbd8c62f86e422235a26bd0b (diff) | |
download | FreeBSD-src-48ea838d60d9e9c84534c5545a24670e0a8128b3.zip FreeBSD-src-48ea838d60d9e9c84534c5545a24670e0a8128b3.tar.gz |
Unmask legacy interrupts on Marvell PCIE controller
This patch fixes a bug introduced with commit:
r294510 "Remove an extra '!' found by clang 3.8."
'!' was removed without inverting the logic, which
broke PCIe legacy interrupts operation for Marvell
controllers.
Submitted by: Michal Mazur <mkm@semihalf.com>
Obtained from: Semihalf
Sponsored by: Netgate
(cherry picked from commit 359ab6c10b617f6e871ddf618ad5240463f62e27)
-rw-r--r-- | sys/arm/mv/mv_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/mv/mv_pci.c b/sys/arm/mv/mv_pci.c index 7f6b1f7..6332ea0 100644 --- a/sys/arm/mv/mv_pci.c +++ b/sys/arm/mv/mv_pci.c @@ -918,7 +918,7 @@ static inline void pcib_write_irq_mask(struct mv_pcib_softc *sc, uint32_t mask) { - if (sc->sc_type != MV_TYPE_PCI) + if (sc->sc_type != MV_TYPE_PCIE) return; bus_space_write_4(sc->sc_bst, sc->sc_bsh, PCIE_REG_IRQ_MASK, mask); |