#qi-hardware IRC log for Wednesday, 2013-10-02

qi-bot[commit] Werner Almesberger: ircstat/ML: update for 9/2013 (master) http://qi-hw.com/p/wernermisc/f732d7e07:38
wpwrakhmm, seems that the new USB connector will only reach me next week :( looks as if fedex have either reduced their flight frequency to argentina or the plane has a new schedule, missing the latest drop from digi-key17:58
apeletemth: are you there ?21:35
apeletemth: still debugging the musb driver for jz4740, I added a check to make the probe fail on !pdata like you suggested21:37
apeleteand it failed right on the spot: http://paste.debian.net/48929/21:38
apeletecode is here (didn't push it to my git repository yet, would like to fix the probe before, sorry): http://paste.debian.net/48930/21:39
apeletemth: my question now is: why is "struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data;" not working ?21:41
mthis there platform data defined for this device?21:41
apeleteI guess so21:42
mthwell, if you didn't add it, there isn't ;)21:42
apeletewhere should it been ?21:42
apeletehere it is: http://seketeli.fr/git/~apelete/qi-kernel.git/tree/arch/mips/jz4740/platform.c?h=jz4740-udc&id=1204f6f657f782695aefcfe690db0da8b6661c4521:44
mthsee https://github.com/gcwnow/linux/blob/jz-3.11/arch/mips/jz4770/platform.c#L12721:44
mththere is no "musb" in the platform.c you linked, so I think it's missing21:45
apeletethere is, but i put it in struct platform_device jz4740_udc_device instead: http://paste.debian.net/48947/21:47
apelete(I guess I should push these into git anyway, even if it's not working yet...)21:47
apeletemth: ah, I see, I also need to have a "static struct musb_hdrc_config" and "static struct musb_hdrc_platform_data" in order to define "struct platform_device jz4740_whatever", isn't that so ?21:53
mthyes, and an associated struct platform_device as well21:57
mththe name of the platform device should match the name of your driver21:57
apeletemth: ok. where do I find all the data to fill these struct members ?22:00
apeleteI guess I need some sort of detailed datasheet...22:01
apeletetime to get some sleep (12:30 AM here in france)22:31
apeletemth: thanks for your time and insight, will let you know how it goes22:32
mthapelete: ok, good luck22:34
--- Thu Oct 3 201300:00

Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!