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
This commit is contained in:
Zbigniew Bodek 2017-05-25 14:34:21 +00:00
parent 738a93a461
commit 26872c13ce
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=318880

View file

@ -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);