<megi>
I didn't find any documentation for the controller, and just trying to match BSP driver's was fruitless (maybe I missed something), so I gave up. core musb driver is quite packed with a lot of special cases for various variants/musb integrations/glues so it was not particularly easy to follow or guess what's actually needed on sunxi
<megi>
drivers/usb/musb/sunxi_dma.c is probably reasonably complete, for trying the tx path
Danct12 has quit [Ping timeout: 480 seconds]
<megi>
looking at the code, I kinda have an itch to try again, now that I've worked with USB a bunch more in the meantime on various projects :)
paulk has quit [Ping timeout: 480 seconds]
Daanct12 has quit [Remote host closed the connection]
apritzel has joined #linux-sunxi
Danct12 has joined #linux-sunxi
disctanger has joined #linux-sunxi
<disctanger>
megi: that would be great :)
<disctanger>
megi: Based on your comment RX part is left of DMA? I am getting started with Embeded/kernel development (some details: https://oftc.irclog.whitequark.org/linux-sunxi/2022-06-29#31053802) and slowly getting comfortable with C and tiny kernel modifications/rebuilding stuffs.
<disctanger>
For my USB Webcam project probably only TX side would suffise i think. Because data stream is mostly one way: USB Gadget (Video Stream) -> USB Host
<disctanger>
i could help with testing the fixes on PineCube, PinePhone, PineBook Pro
wingrime1 has quit [Ping timeout: 480 seconds]
apritzel has quit [Ping timeout: 480 seconds]
Danct12 has quit [Quit: Leaving]
bauen1_ has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
szemzoa_ has quit [Remote host closed the connection]
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
paulk has joined #linux-sunxi
<gamiee>
disctanger: this effort will not help Pinebook Pro, as it's using Rockchip SoC
<disctanger>
gamiee: Sure, then i could help with testing DMA support on PineCube and PinePhone
NekoMay has quit [Read error: No route to host]
NekoMay has joined #linux-sunxi
<megi>
disctanger: yes, RX is left out, because I started with TX and didn't manage to get that working
mango has quit []
<megi>
usually not a great idea to change too many things at once if the code is full of unknown unknowns :)
<megi>
so I left RX path in PIO mode
<disctanger>
megi: noted well. What would be prerequisites for follow up that work? I have no experience in Kernel development but getting started with it. Learning low level stuffs bit by bit. PineCube USB Webcam happen to be my first project.
<megi>
:)
<megi>
given the lack of docs, only help can be comparison against Allwinner BSP code and experimentation
moteen has joined #linux-sunxi
moteen has quit [Remote host closed the connection]
<disctanger>
Okay then i will start my journey from finding BSP code for S3 :D. I will try to tinker around with it once i find it. I hope i wont destroy my only PineCube