The loopback test mode is not implemented in all
NS16550 compatible UARTs. The 8250 driver uses the
UPF_SKIP_TEST flag to indicate this, however it is
not possible to set this flag via device-tree.
Add a new 'no-loopback-test' property, and modify
the of_serial driver to set the UPF_SKIP_TEST flag
if the property is present.
Signed-off-by: Gabor Juhos <redacted>
---
.../devicetree/bindings/tty/serial/of-serial.txt | 2 ++
drivers/tty/serial/of_serial.c | 4 ++++
2 files changed, 6 insertions(+), 0 deletions(-)
@@ -24,6 +24,8 @@ Optional properties: accesses to the UART (e.g. TI davinci). - used-by-rtas : set to indicate that the port is in use by the OpenFirmware RTAS and should not be registered.+- no-loopback-test: set to indicate that the port does not implements loopback+ test mode Example:
The loopback test mode is not implemented in all
NS16550 compatible UARTs. The 8250 driver uses the
UPF_SKIP_TEST flag to indicate this, however it is
not possible to set this flag via device-tree.
Add a new 'no-loopback-test' property, and modify
the of_serial driver to set the UPF_SKIP_TEST flag
if the property is present.
Signed-off-by: Gabor Juhos <redacted>
Looks good to me but clashes with the sync of the termios changes, which
we urgently need to get in first.
Greg - I'll add this to my patch stack with the relevant changes so that
it doesn't get messed up.
Alan
The loopback test mode is not implemented in all
NS16550 compatible UARTs. The 8250 driver uses the
UPF_SKIP_TEST flag to indicate this, however it is
not possible to set this flag via device-tree.
Add a new 'no-loopback-test' property, and modify
the of_serial driver to set the UPF_SKIP_TEST flag
if the property is present.
Signed-off-by: Gabor Juhos <redacted>
Looks good to me but clashes with the sync of the termios changes, which
we urgently need to get in first.
Greg - I'll add this to my patch stack with the relevant changes so that
it doesn't get messed up.
The loopback test mode is not implemented in all
NS16550 compatible UARTs. The 8250 driver uses the
UPF_SKIP_TEST flag to indicate this, however it is
not possible to set this flag via device-tree.
Add a new 'no-loopback-test' property, and modify
the of_serial driver to set the UPF_SKIP_TEST flag
if the property is present.
Signed-off-by: Gabor Juhos <redacted>
Looks good to me but clashes with the sync of the termios changes, which
we urgently need to get in first.
Greg - I'll add this to my patch stack with the relevant changes so that
it doesn't get messed up.
Thank you!
-Gabor
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html