commit | 77bad0ab1b725e6c348277fcdb8790908286ca20 | [log] [tgz] |
---|---|---|
author | Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> | Fri May 24 14:41:28 2019 +0530 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Feb 14 16:33:28 2020 -0500 |
tree | 7c73b315a1af2c9c5da2cad432c09ebb1072eea5 | |
parent | 2cdef3b47a404cb913efb192f280673da6f6e227 [diff] |
serial: uartps: Move the spinlock after the read of the tx empty commit 107475685abfdee504bb0ef4824f15797f6d2d4d upstream. 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> Cc: Pavel Machek <pavel@denx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>