IRC log for #qi-hardware on 20120916

00:28.14*** join/#qi-hardware ChanServ (ChanServ@services.)
00:28.14*** mode/#qi-hardware [+o ChanServ] by lindbohm.freenode.net
00:52.40*** join/#qi-hardware kristianpaul (~kristianp@2607:f878:ff00:31::2)
00:52.40*** join/#qi-hardware kristianpaul (~kristianp@unaffiliated/kristianpaul)
01:34.32*** join/#qi-hardware Textmode (~boneidle@adsl-syd-4-189.ozonline.com.au)
01:56.54*** part/#qi-hardware emeb (~ericb@ip72-201-79-123.ph.ph.cox.net)
02:02.17*** join/#qi-hardware nikescar (~nikescar@114.199.131.108)
02:11.33mthlarsc: the battery driver uses its parent's (mfd) platform data as its own platform data
02:11.47mthhowever, that approach becomes problematic if more than one subdriver needs platform data
02:29.21*** join/#qi-hardware jow_laptop (~jow@ffx.subsignal.org)
02:41.26*** join/#qi-hardware xdpirate (~xdpirate@213.138.174.137)
02:43.01*** join/#qi-hardware xdpirate (~xdpirate@213.138.174.137)
03:38.22*** join/#qi-hardware DocScrutinizer05 (~HaleBopp@openmoko/engineers/joerg)
04:21.39*** join/#qi-hardware scientes (~scientes@unaffiliated/scientes)
06:15.47*** join/#qi-hardware jekhor (~jek@leased-line-46-53-195-83.telecom.by)
07:10.58*** join/#qi-hardware DocScrutinizer05 (~HaleBopp@openmoko/engineers/joerg)
07:10.58*** join/#qi-hardware uwe_ (~uwe_@dslb-088-064-209-125.pools.arcor-ip.net)
07:11.43*** join/#qi-hardware newcup (newcup@peruna.fi)
07:11.53*** join/#qi-hardware pabs3 (~pabs@122.111.244.120)
07:11.53*** join/#qi-hardware kyak (~kyak@unaffiliated/kyak)
07:13.36larscmth: yes
07:13.55Aylamorning larsc
07:14.06larschi Ayla
07:14.27AylaI'm back from night club, I'm going to sleep now ;)
07:14.51Aylaciao
07:14.52larschehe
07:16.26larscmth: And to be honest I don't like that approach of using the parents platform_data anymore, because it does not allow you to reuse a mfd cell for different mfd devices
07:24.23*** join/#qi-hardware kristoffer (~kristoffe@c-9ed8e555.010-30-6c6b7012.cust.bredbandsbolaget.se)
07:42.13*** join/#qi-hardware Textmode (~boneidle@adsl-syd-4-189.ozonline.com.au)
09:35.23*** join/#qi-hardware Textmode (~boneidle@adsl-syd-4-189.ozonline.com.au)
10:08.08*** join/#qi-hardware ChanServ (ChanServ@services.)
10:08.08*** mode/#qi-hardware [+o ChanServ] by lindbohm.freenode.net
10:54.37*** join/#qi-hardware LunaVorax (~LunaVorax@cau33-2-82-227-183-10.fbx.proxad.net)
11:47.33*** join/#qi-hardware jekhor (~jek@leased-line-46-53-195-83.telecom.by)
11:48.32qi-botThe build was successful: http://fidelio.qi-hardware.com/~xiangfu/build-nanonote/openwrt-xburst.full_system-20120916-0654
11:54.31*** join/#qi-hardware urandom__ (~user@p54B0E92A.dip.t-dialin.net)
12:25.03*** join/#qi-hardware LunaVorax (~LunaVorax@cau33-2-82-227-183-10.fbx.proxad.net)
12:25.24LunaVoraxhi!
12:55.50*** join/#qi-hardware freakazoid0223 (~matt@pool-71-246-26-142.phlapa.fios.verizon.net)
13:23.28mthlarsc: is there a way though to provide platform_data directly to an mfd subdevice?
13:24.10larscshould be possible
13:24.33mthI wouldn't know where to attach it
13:24.34larscwell you'd have to split the platform data up in the mfd driver and pass it to the child devies
13:25.30mthwhat would be a clean way of doing that? as in, without having the mfd driver know which child devices exist
13:25.50mthI've got an analog joystick connected to the touch screen pins
13:26.10mthso that demonstrates that there can be more than one driver for the same cell
13:26.26mth(since there could be an ordinary touch screen driver as well)
13:26.56larscyea that case it is a bit tricky
13:27.05larschow does the analog joystick driver work?
13:27.24mthI'm not sure if driver selection should be done at configure time (one driver per cell for each board) or even at runtime (loading and unloading modules)
13:27.55mththe x and y axis both provide a voltage, which is read from the touch screen regs in the SADC
13:28.19mththe driver doesn't work yet, I'm still writing it ;)
13:28.50mthI think I'll just have to poll it at a fixed interval to start a read and when the read completes, inject the input events
13:29.08larscI wrote a TS driver back than. Take a look at commit d21ad639b3d42a2124432fa1ea7e7ea2b38e0a8d
13:29.41larscI think you can program the core to report new values when they change
13:29.50larscgenerate an interrupt, when the values cahnge
13:33.18*** join/#qi-hardware Aylax (~Aylax@pc-144-230-164-190.cm.vtr.net)
13:38.57mthlarsc: thanks; the probe looks very similar to what I have so far, the rest might be useful when adding the actual reading
13:39.44mthI'll add is_open to my driver as well, since it's useful for doing suspend properly
13:53.38*** join/#qi-hardware Ayla (~paul@pc-144-230-164-190.cm.vtr.net)
14:12.34*** join/#qi-hardware guanucoluis1 (~luis@200.127.180.65)
14:51.52larscmth: Have you seen commit 95ceafd46 ("cpufreq: Add a generic cpufreq-cpu0 driver")
14:52.05larscbasically a cpufreq driver which uses the clk API
14:52.13larsccould replace the jz4740 cpufreq driver
14:53.24Aylaawesome
14:54.09larscat least I think it could
15:07.35*** join/#qi-hardware porchao (~hato@eatkyo312007.adsl.ppp.infoweb.ne.jp)
15:46.22mthlarsc: I haven't seen it yet
15:46.32mthreplacing the driver would be good if possible
15:46.54mththe most problematic part though is that derived clocks have to be shut down during the PLL reconfiguration
15:47.11Aylait's not a problem
15:47.22mthno?
15:47.23Aylajust move the code that reinits the PLL to the clock driver
15:47.30mthit's already there
15:47.39Aylano, it's on the cpufreq driver
15:48.01mthit's not; the cpufreq driver calls the clock driver
15:48.42mthyou can't just disable the other clocks at an arbitrary moment, you have to give the respective drivers a chance to stop their work at a point where that is possible
16:04.09larscthe current approach is to use the cpufreq notifiers, isn't it?
16:08.27Aylareadl / writel are deprecated?
16:10.14mthlarsc: yes, but it's only implemented for mmc at the moment
16:10.24larscAyla: sort of, but nobody cares
16:13.52AylaI'll just use iowrite32/ioread32
16:14.02AylaI don't know what header to include for readl/writel :)
16:14.16larscio.h
16:36.39*** join/#qi-hardware emeb (~ericb@ip72-201-79-123.ph.ph.cox.net)
17:36.01*** join/#qi-hardware jekhor (~jek@leased-line-46-53-195-83.telecom.by)
17:36.53*** join/#qi-hardware heberth (~heberth@186.116.55.7)
17:59.23*** join/#qi-hardware porchao (~hato@eatkyo312007.adsl.ppp.infoweb.ne.jp)
18:16.07*** join/#qi-hardware dandon (~dandon@88.151.74.140)
18:42.37*** join/#qi-hardware Textmode (~boneidle@adsl-syd-4-189.ozonline.com.au)
18:45.17*** join/#qi-hardware xdpirate (~xdpirate@213.138.174.137)
18:48.59*** join/#qi-hardware Textmode (~boneidle@adsl-syd-4-189.ozonline.com.au)
18:57.45*** join/#qi-hardware heberth (~heberth@186.116.55.7)
18:58.35*** join/#qi-hardware guanucoluis1 (~luis@200.127.180.65)
19:37.54*** join/#qi-hardware Textmode (~boneidle@adsl-syd-4-189.ozonline.com.au)
20:03.39*** join/#qi-hardware LunaVorax (~LunaVorax@cau33-2-82-227-183-10.fbx.proxad.net)
20:24.51*** join/#qi-hardware kuribas (~user@94-227-88-230.access.telenet.be)
20:31.54*** join/#qi-hardware GNUtoo|laptop (~gnutoo@50.118-226-89.dsl.completel.net)
21:49.42*** join/#qi-hardware guanucoluis1 (~luis@200.127.180.65)
22:49.59*** part/#qi-hardware emeb (~ericb@ip72-201-79-123.ph.ph.cox.net)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.