lkml.org 
[lkml]   [2013]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] power: bq27x00_battery: Export all battery registers via sysfs
Date
On Sunday 20 January 2013 10:53:01 Lars-Peter Clausen wrote:
> On 01/19/2013 03:01 PM, Pali Rohár wrote:
> > bq27xxx batteries have a lot of properties, more than
> > power_supply interface. Some of them can be usefull for
> > userspace applications (like CI bit) but does not make
> > sense to add bq specified property to power_supply
> > interface. When bq27x00_battery is not loaded userspace
> > application (like i2cget) can use /dev/i2c-* interface for
> > raw access. But when kernel module is attached to i2c
> > device, userspace applications cannot access it via
> > /dev/i2c-*.
>
> You can still access it if you use the I2C_SLAVE_FORCE flag.
> This is a bit ugly, but I'd rather see an ugly hack in
> userspace than in kernel space.
>

What is I2C_SLAVE_FORCE flag doing? Isnt there some potential
hardware damage problems (like simultaneous access to i2c bus)?

--
Pali Rohár
pali.rohar@gmail.com
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2013-03-26 21:04    [W:0.061 / U:0.732 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site