1. 15 12月, 2007 2 次提交
  2. 08 12月, 2007 1 次提交
  3. 03 12月, 2007 1 次提交
  4. 02 12月, 2007 1 次提交
  5. 30 11月, 2007 1 次提交
  6. 27 11月, 2007 1 次提交
  7. 21 11月, 2007 3 次提交
  8. 20 11月, 2007 8 次提交
  9. 19 11月, 2007 3 次提交
  10. 17 11月, 2007 7 次提交
  11. 15 11月, 2007 9 次提交
  12. 14 11月, 2007 1 次提交
  13. 11 11月, 2007 1 次提交
  14. 09 11月, 2007 1 次提交
    • R
      ACPI: Always return valid 'status' from acpi_battery_get_property() · 4c41d3ad
      Roland Dreier 提交于
      If a battery is at a critical charge level and not being charged or
      discharged, then the ACPI _BST method will return a state of 4, and
      the current acpi_battery_get_property() code will not set any property
      value for POWER_SUPPLY_PROP_STATUS.  This will cause an oops in
      power_supply_show_property() when it reads off the end of the
      status_text array.  This actually was causing a 100% reproducible
      crash on boot on my laptop with two batteries, when one battery was
      completely drained and the laptop was not plugged in.
      
      Fix this by making sure acpi_battery_get_property() returns
      POWER_SUPPLY_STATUS_UNKNOWN for any battery state it doesn't already
      handle explicitly.  There doesn't seem to be any status enum value
      defined that makes more sense than 'unknown' for a battery at a
      critical charge level.
      Signed-off-by: NRoland Dreier <roland@digitalvampire.org>
      Acked-by: NAlexey Starikovskiy <astarikovskiy@suse.de>
      Signed-off-by: NLen Brown <lenb@t61.(none)>
      4c41d3ad