Remove pl011 startup glitches and avoid dummy TX during startup
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | serial/amba-pl011: Activate TX IRQ passivelydrivers/ | +115 | 0 replies | |
| 2/2 | serial/amba-pl011: Leave the TX IRQ alone when the UART is not opendrivers/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] Remove pl011 startup glitches and avoid dummy TX during startup
This is a major rework of a previously-posted patch [1].
This addresses a number of overlapping issues:
* interaction of the dummy TX in pl011_startup() with hardware that doesn't suppress transmission when in loopback mode, causing glitches / corruption at the receiver;
* lack of support for loopback mode in the SBSA Generic UART;
* issues with the models/simulators that pretend to have an unreasonably high baud rate (making it impossible to fill the FIFO in some situations).
The general approach in this series is to remove the dummy TX and start in a timer-based polled IO mode instead. If and when a TX IRQ occurs, we switch to interrupt-driven mode for future processing.
If the data written to the UART is a small enough trickle, we may never using the TX IRQ, but the UART would not stream constantly in any case unless there is enough data being written to stop the FIFO ever emptying.
I've kept the second patch separate in case someone can think of a reason why it might not work...
There is some context overlap with Jorge's probe deferral patch, but the merge is straightforward.
Tested on ARM Juno and the ARM fast models only for now.
Any review/testing from other folks would be appreciated.
Cheers
Dave
[1] [RFC PATCH] serial: amba-pl011: Kickstart TX by explicit FIFO fill
http://lists.infradead.org/pipermail/linux-arm-kernel/2015-January/315248.html
Dave Martin (2):
serial/amba-pl011: Activate TX IRQ passively serial/amba-pl011: Leave the TX IRQ alone when the UART is not open
drivers/tty/serial/amba-pl011.c | 164 +++++++++++++++++++++++++++------------ 1 file changed, 113 insertions(+), 51 deletions(-)
Signature · 1 line
1.7.10.4