<iscle>
Host mode has NOT been tested, so I expect it to not work or just work partially
<apritzel>
you would at least need to split off the V853 enablement, since they are independent from the DMA rest
<apritzel>
and those #ifdef's look odd, though I think they are an existing pattern for the various MUSB glue DMA bits?
<apritzel>
try at least to use IF_ENABLED(), where possible, for instance for the writeb(SUNXI_MUSB_VEND0_DMA_MODE, ...) call
<apritzel>
and you can move the stubs for _create() and _destroy() into some header file, as static inline, #ifdef'ed with CONFIG_USB_SUNXI_DMA, that keeps that contained there and doesn't disturb the actual C code
<iscle>
apritzel: "you would at least need to split off the V853 enablement" > yep, I know, for now I'm keeping it all in one commit because I'm sure I'll have to modify something more when testing host mode, but I'm keeping it in mind
<iscle>
the #ifdef
<iscle>
the #ifdef's are indeed a common pattern in other MUSB drivers, but I do agree that they are a bit odd. In fact, the driver won't work if you compile without DMA if you don't specify CONFIG_MUSB_PIO_ONLY
apritzel has quit [Remote host closed the connection]
apritzel has joined #linux-sunxi
tlwoerner has quit [Quit: Leaving]
<loki666>
apritzel tokyovigilante macromorgan, any idea how to enable mmc2 on H700 ?
<apritzel>
loki666: I guess you mean the second SD card on the Anbernic devices? There was something odd about a (GPIO?) regulator powering that port, don't remember the details, but they would be on the mailing list
montjoie_ is now known as montjoie
<loki666>
so I need a powerseq ?
<apritzel>
that was an unanswered question, IIRC it didn't work reliably?
<apritzel>
... which is a property made up by AW, also the format doesn't seem to make much sense. I guess we need to wait for macromorgan to shed some light on this ...
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
warpme has quit []
JohnDoe_71Rus has joined #linux-sunxi
dsimic is now known as Guest5672
dsimic has joined #linux-sunxi
Guest5672 has quit [Ping timeout: 480 seconds]
bauen1 has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
warpme has quit []
Hypfer has quit [Quit: Ping timeout (120 seconds)]
Hypfer has joined #linux-sunxi
Hypfer has quit [Quit: Ping timeout (120 seconds)]
Hypfer has joined #linux-sunxi
ftg has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
bauen1 has joined #linux-sunxi
<macromorgan>
yes, it's a GPIO... give me a bit and I can remember what I did previously. Honestly I thought I already upstreamed the work. TL;DR it's just a GPIO controlled fixed regulator that's missing.