lkml.org 
[lkml]   [2013]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v2 2/3] bq2415x_charger: Use power_supply notifier for automode
Date
On Monday 25 November 2013 22:50:01 Sebastian Reichel wrote:
> > 2 seems more generic to me, but as rx51-battery is missing
> > the functionality to send events on temperature change, I
> > guess 1 will be easier to implement.
>
> The temperature must be polled anyway, if the ADC does not
> support interrupts.
>

Yes, ADC does not support interrupts, temperature must be polled.
Also bq27200 chip does not support interrupts, but
bq27x00_battery driver using delayed work which every 60s poll
all values (timeout can be configured via modprobe param). So
similar code can be added to rx51_battery.ko too.

--
Pali Rohár
pali.rohar@gmail.com
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2013-11-27 22:41    [W:2.146 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site