serial: sprd: add locking for tx
Sometimes booting time is delayed as waiting in tty for closing_wait
value when tty device is closed during do tx.
The tty driver requests to wakeup waiting process if pending tx data is
handled by tty driver, then above waiting should be stopped. BTW now
without stop, the waiting is kept until closing_wait value.
I'm not sure, but this problem seems be occured by processing about tx
data without any synchronization.
This patch adds locking for tx in sprd serial driver, then this problem
is gone.
Change-Id: Icb9d774c4d989c09b666be6951d01a820bb17be5
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>