summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorKevin Lo <kevlo@cvs.openbsd.org>2019-05-06 07:44:01 +0000
committerKevin Lo <kevlo@cvs.openbsd.org>2019-05-06 07:44:01 +0000
commitd6e6e0b2422257b91fae7e9112281457c0b77623 (patch)
tree56f3dadd49f24a82ea630519ea7e0271efae0cc4 /sys/dev/pci
parentbb1474307ee6bd5ca8631ff255ac7cad20d64f31 (diff)
Fix a logic error when configuring the driver to use msi.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_alc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_alc.c b/sys/dev/pci/if_alc.c
index 7f455029bec..4c51be80b4b 100644
--- a/sys/dev/pci/if_alc.c
+++ b/sys/dev/pci/if_alc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_alc.c,v 1.47 2019/03/27 07:55:24 kevlo Exp $ */
+/* $OpenBSD: if_alc.c,v 1.48 2019/05/06 07:44:00 kevlo Exp $ */
/*-
* Copyright (c) 2009, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
@@ -1152,7 +1152,7 @@ alc_config_msi(struct alc_softc *sc)
{
uint32_t ctl, mod;
- if ((sc->alc_flags & ALC_FLAG_AR816X_FAMILY) == 0) {
+ if ((sc->alc_flags & ALC_FLAG_AR816X_FAMILY) != 0) {
/*
* It seems interrupt moderation is controlled by
* ALC_MSI_RETRANS_TIMER register if MSI/MSIX is active.