qi-bot | [commit] Werner Almesberger: ircstat/ML: update for 9/2013 (master) http://qi-hw.com/p/wernermisc/f732d7e | 07:38 |
---|---|---|
wpwrak | hmm, 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-key | 17:58 |
apelete | Hello | 21:35 |
apelete | mth: are you there ? | 21:35 |
apelete | mth: still debugging the musb driver for jz4740, I added a check to make the probe fail on !pdata like you suggested | 21:37 |
apelete | and it failed right on the spot: http://paste.debian.net/48929/ | 21:38 |
apelete | code 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 |
apelete | mth: my question now is: why is "struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data;" not working ? | 21:41 |
mth | is there platform data defined for this device? | 21:41 |
apelete | I guess so | 21:42 |
mth | well, if you didn't add it, there isn't ;) | 21:42 |
apelete | where should it been ? | 21:42 |
mth | arch/mips/jz4740/platform.c | 21:42 |
apelete | here it is: http://seketeli.fr/git/~apelete/qi-kernel.git/tree/arch/mips/jz4740/platform.c?h=jz4740-udc&id=1204f6f657f782695aefcfe690db0da8b6661c45 | 21:44 |
mth | see https://github.com/gcwnow/linux/blob/jz-3.11/arch/mips/jz4770/platform.c#L127 | 21:44 |
mth | there is no "musb" in the platform.c you linked, so I think it's missing | 21:45 |
apelete | there 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 |
apelete | mth: 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 |
mth | yes, and an associated struct platform_device as well | 21:57 |
mth | the name of the platform device should match the name of your driver | 21:57 |
apelete | mth: ok. where do I find all the data to fill these struct members ? | 22:00 |
apelete | I guess I need some sort of detailed datasheet... | 22:01 |
apelete | time to get some sleep (12:30 AM here in france) | 22:31 |
apelete | mth: thanks for your time and insight, will let you know how it goes | 22:32 |
mth | apelete: ok, good luck | 22:34 |
--- Thu Oct 3 2013 | 00:00 |
Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!