lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 27 Sep 2010 21:43:05 +0530
From:	Arun Murthy <arunrmurthy.83@...il.com>
To:	Grazvydas Ignotas <notasas@...il.com>
Cc:	Anton Vorontsov <cbouatmailru@...il.com>,
	linux-omap@...r.kernel.org, linux-kernel@...r.kernel.org,
	Felipe Balbi <balbi@...com>, Madhusudhan <madhu.cr@...com>
Subject: Re: [PATCH v3] power_supply: Add driver for TWL4030/TPS65950 BCI charger

On Mon, Sep 27, 2010 at 6:38 PM, Grazvydas Ignotas <notasas@...il.com> wrote:
> On Mon, Sep 27, 2010 at 3:35 PM, Arun Murthy <arunrmurthy.83@...il.com> wrote:
>> On Mon, Sep 27, 2010 at 4:24 PM, Grazvydas Ignotas <notasas@...il.com> wrote:
>>> On Mon, Sep 27, 2010 at 10:21 AM, Arun Murthy <arunrmurthy.83@...il.com> wrote:
>>> The problem is that BCI is only active while charging, when it is not
>>> charging most (all?) monitoring registers freeze and no monitoring
>>> happens (BCI registers read frozen values from last charge). So I
>>> don't register battery as it has no useful data to report. I heard it
>>> is possible to use MADC to perform monitoring while not charging, so
>>> battery can be added when MADC driver is merged and corresponding code
>>> is written for this driver.
>>>
>> How do I check the battery voltage?
>> I need to check the battery voltage/current/temp and, if I am not
>> wrong these are obtained from MADC.
>> MADC driver has to be added first and then the battery.
>> With being able to read the basic parameter battery voltage, this
>> driver becomes incomplete.
>
> Incomplete driver is better than no driver, don't you think? There are
> some boards like pandora or oswald that have additional battery
> monitoring chips (as twl monitoring is pretty crude anyway), those
> boards would have fully functional charging now. Currently mainline
> kernel is not very useful with them simply because the battery runs
> flat.
I agree, but I feel it would be better to make driver compatible with
all boards(Zoom2, OMAP3430SDP, Chameleon, BeagleBoard etc).
Even support for back-up battery is not supported.
This is just a suggestion to have a full fledged driver for twl4030
Battery Charger Interface as a module. You may discard this if you
have some strong reasons.

>
>> How do I get notified if battery voltage is low and needs charging
>> from user space?
>
> Either additional monitoring chip notifies you (if you are lucky and
> have one), or wait for update of this driver :) There are efforts to
> merge MADC driver [1], but it may take some time.
But using MADC, I can get the battery voltage and by means of
monitoring battery voltage we can get to know low battery
notification.
>
> [1] http://marc.info/?t=128461535700002&r=1&w=2
>
Thanks and Regards,
Arun R Murthy
--------------------
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists