Closed htot closed 1 year ago
I guess it's outdated and still problematic. I believe if we have a solution it should be in upstream. Hence closing this PR.
It worked, but due to later driver changes failed to apply. After shoehorning it appeared to be broken. As this this was the "another variant" I didn't find the time to fix it good. So agreed to close.
Can you please have a look at e3ffdfaf0eafb7040f75659b1dcc16e5e798cbf0?
It is based on https://elixir.bootlin.com/linux/latest/source/drivers/tty/serial/imx.c#L643 and behaves exactly the same way as the version ce7c0cd9860eabb2353e8c2330ff253333b61028 you already took.
I think it looks cleaner but probably has more overhead.
The main thing I'm busting my brain on is, when I use my
hs_serial
program to test serial communication it works fine. But when I setup pppd between 2 Edisons and test usingiperf3
it hangs very quickly:I hangs so badly that the only way to get serial working again is to reboot. I think (but not sure) that
dma->tx_running
is never cleared in a particular case, but I don't know how it's triggered bypppd
.When I do exactly the same without sgl but using a bounce buffer https://github.com/andy-shev/linux/pull/29/files
pppd / iperf3
works just fine.