diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2019-11-04 11:48:47 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2019-11-04 11:48:47 +0000 |
commit | c95dbae0e064cfb0a9c7c62cfddf56cc3084a6a8 (patch) | |
tree | 9ea3cb7388078d9f261bffdc091dae2b1b9cbadf /sys/dev | |
parent | 6c080f5502fbce5315e14ee2ad53885098757f2f (diff) |
Tweak a device type check in iwm_apm_init() to ensure it will match
7k devices only when support for > 8k devices is added in the future.
ok patrick@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_iwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c index a2b7740e789..e509f6d90a2 100644 --- a/sys/dev/pci/if_iwm.c +++ b/sys/dev/pci/if_iwm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwm.c,v 1.268 2019/11/04 11:43:08 stsp Exp $ */ +/* $OpenBSD: if_iwm.c,v 1.269 2019/11/04 11:48:46 stsp Exp $ */ /* * Copyright (c) 2014, 2016 genua gmbh <info@genua.de> @@ -1509,7 +1509,7 @@ iwm_apm_init(struct iwm_softc *sc) int err = 0; /* Disable L0S exit timer (platform NMI workaround) */ - if (sc->sc_device_family != IWM_DEVICE_FAMILY_8000) + if (sc->sc_device_family < IWM_DEVICE_FAMILY_8000) IWM_SETBITS(sc, IWM_CSR_GIO_CHICKEN_BITS, IWM_CSR_GIO_CHICKEN_BITS_REG_BIT_DIS_L0S_EXIT_TIMER); |