Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753935Ab1BFTgg (ORCPT ); Sun, 6 Feb 2011 14:36:36 -0500 Received: from smtp-out-015.synserver.de ([212.40.185.15]:1600 "HELO smtp-out-014.synserver.de" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with SMTP id S1753867Ab1BFTgf (ORCPT ); Sun, 6 Feb 2011 14:36:35 -0500 X-SynServer-TrustedSrc: 1 X-SynServer-AuthUser: lars@laprican.de X-SynServer-PPID: 24265 From: Lars-Peter Clausen To: Anton Vorontsov Cc: Rodolfo Giometti , Grazvydas Ignotas , linux-kernel@vger.kernel.org, Lars-Peter Clausen Subject: [PATCH 00/14] POWER: BQ27x00: New Properties, fixes, bq27000 support Date: Sun, 6 Feb 2011 01:47:57 +0100 Message-Id: <1296953291-10373-1-git-send-email-lars@metafoo.de> X-Mailer: git-send-email 1.7.2.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2461 Lines: 56 This patch series contains a few updates for the bq27x00 driver: * Support for additional power supply properties * Support for the bq27000 battery which is identical to the bq27200 but is connected through the HDQ bus. * Adds a register cache to the driver and introduces polling the batteries state * Minor improvements and cleanups The last patch in this series is not specific to the bq27x00 driver but is required for uevents to be generated properly for this driver. The patch makes properties which return -ENODATA to be ignored when generating uevents. Previously in such a case uevent generation would have been aborted with an error. But since the bq27x00 return -ENODATA for the TIME_TO_FULL property when the battery is not charging and for the TIME_TO_EMPTY property when the battery is not discharging and at least one of them is always true uevent generation would always fail. This series has so far been tested with the bq27000 and the bq27200 battery, but not with the bq27500 battery, so it would be nice if somebody with a board containing such a battery could test the patches to make sure that there are no regressions. Lars-Peter Clausen (10): POWER: bq27x00: Add type property POWER: bq27x00: Improve temperature precession POWER: bq27x00: Return -ENODEV for properties if the battery is not present POWER: bq27x00: Prepare code for addition of bq27000 platform driver POWER: bq27x00: Add bq27000 support POWER: bq27X00: Cache battery registers POWER: bq27x00: Poll battery state POWER: bq27x00: Give more specific reports on battery status POWER: bq27x00: Cleanup bq27x00_i2c_read POWER: Ignore -ENODATA errors when generating a uevent Pali Rohár (4): POWER: bq27x00: Fix current now property POWER: bq27x00: Add new properties POWER: bq27x00: Add MODULE_DEVICE_TABLE POWER: bq27x00: Minor cleanups drivers/power/Kconfig | 14 + drivers/power/bq27x00_battery.c | 725 +++++++++++++++++++++++++-------- drivers/power/power_supply_sysfs.c | 2 +- include/linux/power/bq27x00_battery.h | 19 + 4 files changed, 590 insertions(+), 170 deletions(-) create mode 100644 include/linux/power/bq27x00_battery.h -- 1.7.2.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/