narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - official channel moved from Freenode - publicly logged on https://libera.irclog.whitequark.org/linux-amlogic
hexdump0815 has quit [Ping timeout: 252 seconds]
hexdump0815 has joined #linux-amlogic
jacobk has joined #linux-amlogic
jacobk has quit [Ping timeout: 260 seconds]
Daanct12 has joined #linux-amlogic
Daanct12 has quit [Quit: WeeChat 4.6.2]
Daanct12 has joined #linux-amlogic
Daanct12 has quit [Quit: WeeChat 4.6.2]
Daanct12 has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
djrscally has joined #linux-amlogic
<f_[x]> So BT should work the same
_whitelogger has joined #linux-amlogic
jacobk has joined #linux-amlogic
jacobk has quit [Ping timeout: 260 seconds]
jacobk has joined #linux-amlogic
mripard has quit [Quit: WeeChat 4.6.2]
iprusov has joined #linux-amlogic
Daanct12 has quit [Quit: WeeChat 4.6.2]
buzzmarshall has joined #linux-amlogic
jacobk has quit [Ping timeout: 260 seconds]
jacobk has joined #linux-amlogic
vagrantc has joined #linux-amlogic
<lvrp16> well that was a lot of head banging over 3 days. stuck on the 0 data on the DMA RX buffer.
<lvrp16> seems randomly RX DMA just fails and returns empty data.
<lvrp16> 1 success for every 4 failures.
<f_> how unreliable 🙃
<lvrp16> maybe lack of skills :D
<f_> or documentation :D
<lvrp16> fracking hell, it was because of this line from the DMA patch... "spicc->tx_dma += len;"
<lvrp16> 3 damn days :D
<lvrp16> why would he increment the DMA???
<lvrp16> *sigh* fml
<f_[x]> Must've been a week until I figured out I was writing to the wrong register at some point :D
<f_[x]> You are not alone
<xdarklight> lvrp16: good catch! it took me a days to realize I accidentally used ffs(BIT(30)) (whose result is 31) instead of __ffs(BIT(30)) (whose result is 30) - the worst thing: I wrote that code myself ;-)
<xdarklight> lvrp16: also there's "spicc->rx_dma += len;" in case you haven't seen that yet (not sure if it's a problem or not)
jacobk has quit [Ping timeout: 248 seconds]
jacobk has joined #linux-amlogic
<lvrp16> It is a problem. I spent days looking over registers and fifos and interrupts.
<lvrp16> Otherwise would have been done 3 days ago.
<lvrp16> But now PIO works for every power of 2 + every byte aligned. DMA works for every byte aligned.
naoki has joined #linux-amlogic
vagrantc has quit [Quit: leaving]