I think that the patch is good and I have slightly extended it:
Part of the problem is that the same definitions are used for interpreting
returned by _BST and for maintaining internal driver status.
I have added a comment that explains this duality, retired now unused
ACPI_BATT_STAT_MAX, added code for cleaning extended/undefined bits in _BST
and added a warning about charging+discharging bits being set at the same time.
I'd appreciate reviews and testing.
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"