From eb4d90b46aec37e18cc72aad20f6ad04e087147b Mon Sep 17 00:00:00 2001 From: Joshua Stein Date: Mon, 4 Sep 2017 13:47:57 +0000 Subject: Don't require exactly 20 elements in the _BIX package if at least 20 are returned since extras may be OEM-specific values we end up ignoring anyway, such as on the Lenovo X1C 5th Gen which returns 21 elements. ok mpi --- sys/dev/acpi/acpibat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/acpi') diff --git a/sys/dev/acpi/acpibat.c b/sys/dev/acpi/acpibat.c index 94a65926d22..82f6fc61d9c 100644 --- a/sys/dev/acpi/acpibat.c +++ b/sys/dev/acpi/acpibat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpibat.c,v 1.65 2017/07/25 21:32:07 jcs Exp $ */ +/* $OpenBSD: acpibat.c,v 1.66 2017/09/04 13:47:56 jcs Exp $ */ /* * Copyright (c) 2005 Marco Peereboom * @@ -332,10 +332,10 @@ acpibat_getbix(struct acpibat_softc *sc) if (aml_evalname(sc->sc_acpi, sc->sc_devnode, "_BIX", 0, NULL, &res) == 0) { - if (res.length == 20) + if (res.length >= 20) sc->sc_use_bif = 0; else - dnprintf(10, "%s: invalid _BIX (%d != 20)\n", + dnprintf(10, "%s: invalid _BIX (%d < 20)\n", DEVNAME(sc), res.length); } -- cgit v1.2.3