https://bugzilla.kernel.org/show_bug.cgi?id=25232
--- Comment #19 from Lan Tianyu <tianyu....@intel.com> 2013-04-09 08:24:02 --- Please try following patch. Thanks in advance. diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index c5cd5b5..347ed04 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c @@ -146,6 +146,9 @@ struct acpi_battery { #define to_acpi_battery(x) container_of(x, struct acpi_battery, bat) +static int acpi_battery_get_info(struct acpi_battery *battery); +static int acpi_battery_get_state(struct acpi_battery *battery); + inline int acpi_battery_present(struct acpi_battery *battery) { return battery->device->status.battery_present; @@ -200,6 +203,7 @@ static int acpi_battery_get_property(struct power_supply *psy, if (acpi_battery_present(battery)) { /* run battery update only if it is present */ + acpi_battery_get_info(battery); acpi_battery_get_state(battery); } else if (psp != POWER_SUPPLY_PROP_PRESENT) return -ENODEV; -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ acpi-bugzilla mailing list acpi-bugzilla@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla