Commit 7c21b0ad authored by Hoan Nguyen An's avatar Hoan Nguyen An Committed by Lee Jones
Browse files

serial: sh-sci: Fix setting SCSCR_TIE while transferring data



commit 93bcefd4 upstream.

We disable transmission interrupt (clear SCSCR_TIE) after all data has been transmitted
(if uart_circ_empty(xmit)). While transmitting, if the data is still in the tty buffer,
re-enable the SCSCR_TIE bit, which was done at sci_start_tx().
This is unnecessary processing, wasting CPU operation if the data transmission length is large.
And further, transmit end, FIFO empty bits disabling have also been performed in the step above.

Signed-off-by: default avatarHoan Nguyen An <na-hoan@jinso.co.jp>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Change-Id: Id9c3ea78a67be8184565c785d8cdbedace4b9185
Signed-off-by: default avatarLee Jones <joneslee@google.com>
parent 8a57c0aa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment