]> asedeno.scripts.mit.edu Git - linux.git/commit
serial: uartps: Move the spinlock after the read of the tx empty
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Fri, 24 May 2019 09:11:28 +0000 (14:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Jun 2019 17:08:31 +0000 (19:08 +0200)
commit107475685abfdee504bb0ef4824f15797f6d2d4d
treeeb6f9e3ec923e4eb89deb8c7e9cee9dc40604536
parent1f74dfa803e3e82978d45b36a70926256344399e
serial: uartps: Move the spinlock after the read of the tx empty

Currently we are doing a read of the status register.
Move the spinlock after that as the reads need not be spinlock
protected. This patch prevents relaxing the cpu with spinlock held.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c