Editing Bme replacement

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 88: Line 88:
* Pali: I do not want to touch kernel drivers in maemo 2.6.28 kernel - this is very old version. Also "registers" sysfs entry is deprecated and is not upstreamed. In upstream kernel there is "regmap" api for exporting all needed registers to userspace, but there is no patch yet... See https://lkml.org/lkml/2013/1/19/162 Problem that userspace application cannot read battery i2c registers directly can be fixed with flag I2C_SLAVE_FORCE see: https://lkml.org/lkml/2013/3/26/580
* Pali: I do not want to touch kernel drivers in maemo 2.6.28 kernel - this is very old version. Also "registers" sysfs entry is deprecated and is not upstreamed. In upstream kernel there is "regmap" api for exporting all needed registers to userspace, but there is no patch yet... See https://lkml.org/lkml/2013/1/19/162 Problem that userspace application cannot read battery i2c registers directly can be fixed with flag I2C_SLAVE_FORCE see: https://lkml.org/lkml/2013/3/26/580
-
** Pali: it should be safe to use i2cget for (and *only* for) bq27200 device when bq27x00_battery kernel driver is loaded, because i2c transfers are atomic. See: https://mg.pov.lt/maemo-irclog/%23maemo.2013-03-27.log.html#t2013-03-27T14:03:02
 
A: we don't need to read registers of bq27200, what we need are proper decoded data from bq27200 available in sysfs nodes like /CI etc. This is perfectly allowable even for power-supply according to readme excerpts shadowjk digged up. Usage of I2C_SLAVE_FORCE is strongly deprecated, since there is no justification why direct register read/write should be allowed when bq27200 has a proper comprehensive feature-complete driver. --[[User:joerg_rw|joerg_rw]] 21:06, 27 March 2013 (UTC)
A: we don't need to read registers of bq27200, what we need are proper decoded data from bq27200 available in sysfs nodes like /CI etc. This is perfectly allowable even for power-supply according to readme excerpts shadowjk digged up. Usage of I2C_SLAVE_FORCE is strongly deprecated, since there is no justification why direct register read/write should be allowed when bq27200 has a proper comprehensive feature-complete driver. --[[User:joerg_rw|joerg_rw]] 21:06, 27 March 2013 (UTC)

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)