Here is the loopback detection code, from drivers/char/serial_sa1100.c (attached). The caller presets "loopback" to zero before calling into this code.

-ml


Attachments
180457-junk (405 downloads)