Hi Geert,
quoted
On calling close() sci_set_mctrl() and sci_shutdown() are called
in this order.
OK, so it works on subsequent uses as the flag is kept in .c_cflag?
yes, indeed. If you close the port and open it again, the settings are correct and communication works.
Unfortunately e.g. hciattach opens the port, sets it to some defaults (115200, noflow) and then evaluates the command line values. This way the connection always fails if you specify flow control.
quoted
No, I haven't tried GPIO RTS/CTS so far. How would this be
configured?
In DT, instead of specifying "uart-has-rtscts" and pinctrl for the
"ctrl" group, you specify "rts-gpios" and "cts-gpios".
Thanks, I will have a look.
Regards,
Christoph