2013-08-22 00:36 mth: OTG in driver *usually* shouldn't introduce any problems, even when the musb-core can't do it 2013-08-22 00:37 it's just "dead code" since the core never sends the messages that would signal that its state machine gone to OTG mode 2013-08-22 00:39 pcercuei has quit [Ping timeout: 256 seconds] 2013-08-22 00:56 viric has quit [Remote host closed the connection] 2013-08-22 00:57 viric has joined #qi-hardware 2013-08-22 01:03 Freemor has quit [Remote host closed the connection] 2013-08-22 01:52 FDCX has quit [Ping timeout: 264 seconds] 2013-08-22 02:03 FDCX has joined #qi-hardware 2013-08-22 02:10 FDCX has quit [Ping timeout: 245 seconds] 2013-08-22 02:23 FDCX has joined #qi-hardware 2013-08-22 03:09 FDCX has quit [Read error: Connection reset by peer] 2013-08-22 03:24 FDCX has joined #qi-hardware 2013-08-22 03:33 FDCX has quit [Read error: Connection reset by peer] 2013-08-22 03:39 panda|x201 has quit [Ping timeout: 256 seconds] 2013-08-22 03:50 FDCX has joined #qi-hardware 2013-08-22 04:23 xiangfu has quit [Ping timeout: 246 seconds] 2013-08-22 04:23 xiangfu has joined #qi-hardware 2013-08-22 05:35 wolfspraul has joined #qi-hardware 2013-08-22 06:31 ffio has joined #qi-hardware 2013-08-22 07:18 mth: thanks for the tip, having the jz4770 example should be very helpful 2013-08-22 08:06 Freemor has joined #qi-hardware 2013-08-22 08:07 viric has quit [Ping timeout: 240 seconds] 2013-08-22 08:13 viric has joined #qi-hardware 2013-08-22 08:22 wej has quit [Ping timeout: 260 seconds] 2013-08-22 08:23 wej has joined #qi-hardware 2013-08-22 08:23 lekernel has joined #qi-hardware 2013-08-22 08:48 jekhor has quit [Ping timeout: 240 seconds] 2013-08-22 09:04 wej has quit [Ping timeout: 264 seconds] 2013-08-22 09:05 wej has joined #qi-hardware 2013-08-22 09:06 dandon has quit [Quit: EOL] 2013-08-22 09:07 Textmode has quit [Quit: Ex-Chat] 2013-08-22 09:12 pcercuei has joined #qi-hardware 2013-08-22 09:19 dandon has joined #qi-hardware 2013-08-22 09:24 woakas has quit [Ping timeout: 268 seconds] 2013-08-22 10:20 ffio_ has joined #qi-hardware 2013-08-22 10:21 ffio has quit [Ping timeout: 245 seconds] 2013-08-22 10:33 rz2k has joined #qi-hardware 2013-08-22 10:39 wej has quit [Ping timeout: 245 seconds] 2013-08-22 10:53 wej has joined #qi-hardware 2013-08-22 11:20 lekernel has quit [Ping timeout: 256 seconds] 2013-08-22 11:33 lekernel has joined #qi-hardware 2013-08-22 11:34 viric has quit [Ping timeout: 240 seconds] 2013-08-22 11:43 wej_ has joined #qi-hardware 2013-08-22 11:47 wej has quit [Ping timeout: 260 seconds] 2013-08-22 11:58 porchao has joined #qi-hardware 2013-08-22 12:03 viric has joined #qi-hardware 2013-08-22 12:08 xiangfu has quit [Ping timeout: 256 seconds] 2013-08-22 12:08 wej_ has quit [Ping timeout: 264 seconds] 2013-08-22 12:09 xiangfu has joined #qi-hardware 2013-08-22 12:18 jekhor has joined #qi-hardware 2013-08-22 12:47 wej has joined #qi-hardware 2013-08-22 13:05 unclouded has quit [Ping timeout: 245 seconds] 2013-08-22 13:12 unclouded has joined #qi-hardware 2013-08-22 13:26 arossdotme has quit [Ping timeout: 264 seconds] 2013-08-22 13:52 xiangfu has quit [Ping timeout: 276 seconds] 2013-08-22 13:53 xiangfu has joined #qi-hardware 2013-08-22 13:58 viric has quit [Ping timeout: 240 seconds] 2013-08-22 13:59 wolfspraul has quit [Ping timeout: 245 seconds] 2013-08-22 14:01 wolfspraul has joined #qi-hardware 2013-08-22 14:04 viric has joined #qi-hardware 2013-08-22 14:04 jekhor has quit [Quit: Leaving] 2013-08-22 14:21 panda|x201 has joined #qi-hardware 2013-08-22 14:29 rz2k has quit [] 2013-08-22 14:53 rz2k has joined #qi-hardware 2013-08-22 15:00 panda|x201 has quit [Ping timeout: 240 seconds] 2013-08-22 15:26 panda|x201 has joined #qi-hardware 2013-08-22 15:42 rz2k has quit [] 2013-08-22 17:04 kilae has joined #qi-hardware 2013-08-22 17:52 Freemor has quit [Remote host closed the connection] 2013-08-22 18:15 ffio_ has quit [Quit: WeeChat 0.4.1] 2013-08-22 18:52 rz2k has joined #qi-hardware 2013-08-22 19:06 Freemor has joined #qi-hardware 2013-08-22 19:50 panda|x201 has quit [Ping timeout: 245 seconds] 2013-08-22 20:06 xiangfu has quit [Ping timeout: 268 seconds] 2013-08-22 20:07 panda|x201 has joined #qi-hardware 2013-08-22 20:16 panda|x201 has quit [Read error: Connection reset by peer] 2013-08-22 20:34 panda|x201 has joined #qi-hardware 2013-08-22 20:50 panda|x201 has quit [Read error: Connection reset by peer] 2013-08-22 21:01 kilae has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130814063812]] 2013-08-22 21:16 larsc: Hi 2013-08-22 21:18 I made the changes to integrate musb-jz4740 to the kernel build system and built it successfully: http://seketeli.fr/git/~apelete/qi-kernel.git/commit/?h=jz4740-udc&id=7dedb95c72eb73a0dd4f15fd9bd6508723510406 2013-08-22 21:18 viric_ has joined #qi-hardware 2013-08-22 21:20 I set it to use Inventra dma engine from Mentor Graphics just because I don't know better, will see when I get to dma configuration hacking 2013-08-22 21:20 viric_ is now known as viric 2013-08-22 21:20 viric has quit [Ping timeout: 240 seconds] 2013-08-22 21:21 the kernel is booting just fine, but the driver is not loading for nom: http://paste.debian.net/28702/ 2013-08-22 21:21 (see "musb-jz4740: failed to get clock" error message) 2013-08-22 21:22 apelete: the clock is named "udc" instead of "usb" 2013-08-22 21:23 since there is both a USB host (uhc) and device (udc) controller 2013-08-22 21:25 mth: ah. you mean I should write: clk = clk_get(&pdev->dev, "udc"); 2013-08-22 21:25 instead of: clk = clk_get(&pdev->dev, "usb"); ? 2013-08-22 21:25 yes 2013-08-22 21:26 thanks 2013-08-22 21:31 I am trying to guess a lot of things by looking at other drivers actually (thanks mth for pointing me to the musb code for jz4770 btw) 2013-08-22 21:32 you can simplify the probe and remove code by using the devm_ functions 2013-08-22 21:33 those automatically release resources if the probe fails or when the driver is unloaded 2013-08-22 21:37 lekernel has quit [Quit: Leaving] 2013-08-22 21:40 lindi- has quit [Read error: Connection reset by peer] 2013-08-22 21:40 I saw that in the jz4770 musb code, I was wondering about it :) 2013-08-22 21:41 lindi- has joined #qi-hardware 2013-08-22 21:41 seems convenient, I will try to use the devm_ functions indeed 2013-08-22 21:49 hmmm, naming the clock "udc" instead of "usb" seems to cause a panic: http://paste.debian.net/28708/ 2013-08-22 21:52 Jay7 has quit [Ping timeout: 264 seconds] 2013-08-22 21:54 time to think about adding some deubg parameters into the kernel configuration 2013-08-22 21:55 wolfspraul has quit [Quit: leaving] 2013-08-22 22:19 Jay7 has joined #qi-hardware 2013-08-22 22:42 rz2k has quit [] 2013-08-22 23:55 xiangfu has joined #qi-hardware