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 89: | Line 89: | ||
* 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 | ** 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 | ||
- | |||
- | |||
* Pali: question what should power supply function return to power supply interface when data are/could be incorrect is for power supply kernel maintainer. TODO: add link for mailinglist (lkml) discussion about it. | * Pali: question what should power supply function return to power supply interface when data are/could be incorrect is for power supply kernel maintainer. TODO: add link for mailinglist (lkml) discussion about it. |
Learn more about Contributing to the wiki.