From: Nikolaus Voss Date: Wed, 9 May 2012 06:30:44 +0000 (+0200) Subject: sbs-battery: Don't trigger false supply_changed event X-Git-Tag: v3.6-rc1~31^2~14 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5da50988a1bf8c05611db77521777baaca14da29;p=pandora-kernel.git sbs-battery: Don't trigger false supply_changed event power_supply_changed() events are triggerd based on the return value of a get_property() call. However the property TECHNOLOGY is hard-coded to LION in this driver, thus always succeeds. So, with the battery removed, this triggers a false battery present uevent. This uevent triggers a new query via power_supply_uevent() which again starts to query all known properties and thus leads to an infinite loop of battery present/not-present uevents. This patch skips the battery presence detection for the hard-coded property TECHNOLOGY. Signed-off-by: Nikolaus Voss Acked-by Rhyland Klein Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed