View Single Post
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#892
Originally Posted by pali View Post
@joerg_rw

Some questions about jrbme in kernel:

* Should be jrbme written against upstream kernel or maemo? Or both?
* Should be jrbme upstreamed?
Well, I wrote that "spec" without upstream in mind, but hoped to implement a clean platform agnostic interface that just deals with bq24150


Originally Posted by pali View Post
* If it should go to upstream, what about split code into more separated modules and use standard linux interfaces (instead all in one sysfs entry)? One for watchdog which use standard linux watchdog interface,
basically that sounds OK, but see following comments:
The watchdog is in no way a watchdog like the ones known from standard linux and also found on maemo, I.E. it won't trigger a reboot of system. So I don't think it should get implemented with a similar semantics to those, rather my idea was to mostly hide away the wd details and let kernel handle the wd-tickling usually (set wd to "auto", after config of the other parameters been done).


Originally Posted by pali View Post
one for bq27200 chip which use power_supply interface (that already exists),
bq27200 isn't included at all in this concept, it for sure should get its own "domain" (and already has, though the implementation is really problematic, see http://mg.pov.lt/maemo-irclog/%23mae...09-30T22:19:42 )


Originally Posted by pali View Post
one for bq bq24150 chip (use power_supply to?),
that's what my "spec" at http://maemo.cloud-7.de/bq24150-sysnode.spec.txt is all about. I will appreciate comments about how to improve this set of sysnodes, move it to other namespaces, whatever. It's just a 70% finished RFC (in genuine meaning of words) for now.


Originally Posted by pali View Post
maybe one for twl-madc (BSI)
I completely omitted that one, good point.


Originally Posted by pali View Post
and last for usb host mode + glue to work all together...
This would finally stay a userland task, though it had a way reduced set of duties compared to what bme does now. It however should care about BSI / twl-madc etc


Originally Posted by pali View Post
* How is usb host mode working on old Nokia N8x0 tablets? Is for swithing between host mode and pheripheral mode any standard linux sysfs interface?
it simply does "echo host >mode". Alas for N900 there are a *lot* of routines missing in kernel to make this work.


Originally Posted by pali View Post
* Full jrbme should be BME replecament. Do somebody know what all is BME doing and what from BME can we implement?
there's quite a number of obvious and not so obvious things bme does, I think I elaborated on that a bit in original "why jrbme is dead" post linked to in my first post of this subthread. Also speedevil and shadowjk will have some valuable info on that, please contact them on IRC. Main thing is the IPC that provides battery status info to hald-addon-bme, which can't go to kernel for obvious reasons. You'll either need to patch hald-addon-bme to directly read the sysnodes rather than do IPC chat to bme, or you implement that IPC into the userland part I mentioned above.


Originally Posted by pali View Post
I think that kernel module(s) should be written for upstreaming, but backported into maemo kernel too. And I think module(s) should use standard linux interface (watchog, power_supply, ...) if it is possible.
well, I hope I was clear enough about it in above comments, so you know I basically agree or don't care, except where noted otherwise (watchdog) :-)

Many thanks for picking this topic up and caring about it.

cheers
jOERG
__________________
Maemo Community Council member [2012-10, 2013-05, 2013-11, 2014-06 terms]
Hildon Foundation Council inaugural member.
MCe.V. foundation member

EX Hildon Foundation approved
Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/

IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N
 

The Following 5 Users Say Thank You to joerg_rw For This Useful Post: