FreeBSD Bugzilla – Attachment 245108 Details for
Bug 252030
No battery reading after upgrade to 12.2-RELEASE Fujitsu lifebook s936
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch fixing the bug
patch-bug-252030 (text/plain), 1.06 KB, created by
freebsd
on 2023-09-22 07:16:18 UTC
(
hide
)
Description:
Patch fixing the bug
Filename:
MIME Type:
Creator:
freebsd
Created:
2023-09-22 07:16:18 UTC
Size:
1.06 KB
patch
obsolete
>diff --git a/sys/dev/acpica/acpi_cmbat.c b/sys/dev/acpica/acpi_cmbat.c >index 8c08868456d7..e85967aed9c9 100644 >--- a/sys/dev/acpica/acpi_cmbat.c >+++ b/sys/dev/acpica/acpi_cmbat.c >@@ -398,8 +398,17 @@ acpi_cmbat_get_bix(void *arg) > sc->bix.rev != ACPI_BIX_REV_1) > ACPI_BIX_REV_MISMATCH_ERR(sc->bix.rev, ACPI_BIX_REV_1); > } else if (ACPI_PKG_VALID_EQ(res, 20)) {/* ACPI 4.0 _BIX */ >- if (sc->bix.rev != ACPI_BIX_REV_0) >- ACPI_BIX_REV_MISMATCH_ERR(sc->bix.rev, ACPI_BIX_REV_0); >+ /* >+ * Some models claim to be rev.1, but have a _BIX with only 20 >+ * members. Be lenient and treat this as a valid rev.0 _BIX. >+ */ >+ if (sc->bix.rev != ACPI_BIX_REV_0) { >+ ACPI_VPRINT(dev, acpi_device_get_parent_softc(dev), >+ "_BIX containing too few objects for revision %u. " >+ "Treating as revision %u instead.\n", >+ sc->bix.rev, ACPI_BIX_REV_0); >+ sc->bix.rev = ACPI_BIX_REV_0; >+ } > } else if (ACPI_PKG_VALID(res, 22)) { > /* _BIX with 22 or more members. */ > if (ACPI_BIX_REV_MIN_CHECK(sc->bix.rev, ACPI_BIX_REV_1 + 1)) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 252030
:
220791
|
245079
| 245108