From: Grazvydas Ignotas Date: Mon, 26 Mar 2012 22:23:00 +0000 (+0300) Subject: bq27x00_battery: Check current after reading flags X-Git-Tag: sz_beta3~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a5f5cdd8d394f5939c36c2cd028588db695a8bf;p=pandora-kernel.git bq27x00_battery: Check current after reading flags It appears bq27500 has a threshold for DSG flag (60mA by default according to the manual) after which it no longer sets DSG bit. This means we have to check current to avoid misreporting that we are charging when we are really discharging, which currently happens in lower power states. As flags register is read in bq27x00_update, do current direction check there. --- Reading git-diff-tree failed