Re: [PATCH] ACPI / Battery: Return -ENODATA for unknown values in get_property()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sitsofe Wheeler
Date: Saturday, October 23, 2010 - 8:36 am

On Sat, Oct 23, 2010 at 12:19:13AM +0200, Rafael J. Wysocki wrote:

The latest patch seems to fix/workaround the problem. upower now reports
0 as the energy rate, there are no warnings in dmesg and battery hotplug
works. Looks good and there's the option for a future upower to
interpret the missing sysfs as meaning "unknown".

Tested-by: Sitsofe Wheeler <sitsofe@yahoo.com>


wron -> wrong?


OK that's sneaky and clever - technically power_supply_uevent should be
more robust but presumably things are already prepared to handle -ENODEV
so overloading the meaning leads to the smallest change.

-- 
Sitsofe | http://sucs.org/~sits/
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Returning ACPI_BATTERY_VALUE_UNKNOWN to userspace, Sitsofe Wheeler, (Sat Oct 16, 7:13 am)
[PATCH] ACPI / Battery: Return -ENODATA for unknown values ..., Rafael J. Wysocki, (Sat Oct 16, 4:05 pm)
Re: [PATCH] ACPI / Battery: Return -ENODATA for unknown va ..., Henrique de Moraes H ..., (Sat Oct 16, 10:19 pm)
Re: [PATCH] ACPI / Battery: Return -ENODATA for unknown va ..., Henrique de Moraes H ..., (Sun Oct 17, 6:10 am)
Re: [PATCH] ACPI / Battery: Return -ENODATA for unknown va ..., Rafael J. Wysocki, (Sun Oct 17, 11:32 am)
Re: [PATCH] ACPI / Battery: Return -ENODATA for unknown va ..., Rafael J. Wysocki, (Thu Oct 21, 12:57 pm)
Re: [PATCH] ACPI / Battery: Return -ENODATA for unknown va ..., Rafael J. Wysocki, (Fri Oct 22, 3:19 pm)
Re: [PATCH] ACPI / Battery: Return -ENODATA for unknown va ..., Sitsofe Wheeler, (Sat Oct 23, 8:36 am)
Re: [PATCH] ACPI / Battery: Return -ENODATA for unknown va ..., Rafael J. Wysocki, (Sat Oct 23, 10:31 am)
Re: [PATCH] ACPI / Battery: Return -ENODATA for unknown va ..., Rafael J. Wysocki, (Mon Oct 25, 1:36 pm)