lkml.org 
[lkml]   [2014]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC PATCH 0/2] explicitly instantiate battery from device tree
Date
Hi there,

Here's some patches that make it possible to instantiate an sbs battery without
it being present yet.

i2c devices are more or less presumed to be persistent. This is a fair
assumption, except for the case of batteries. It is perfectly sensible for a
device to boot up using wall power, but no battery attached. While later
attaching a battery and dropping the wall power. Detecting the device from
userspace is tedious requires you to scan for device presence yourself, or you
can ask the kernel to probe again, cluttering your logs with failed probes.

I'd like to hear what you think about this.

Thanks,
Frans

Frans Klaver (2):
sbs-battery: add forced instantiation from device tree
sbs-battery: dts: document always-present property

.../devicetree/bindings/power_supply/sbs_sbs-battery.txt | 2 ++
drivers/power/sbs-battery.c | 11 +++++++++--
include/linux/power/sbs-battery.h | 3 +++
4 files changed, 15 insertions(+), 2 deletions(-)

--
2.1.0



\
 
 \ /
  Last update: 2014-09-24 15:41    [W:0.225 / U:0.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site