Android Wear 6.0.1 Release 0.35
HSUART:fix the hsuart multi-thread sync issue

Fix a multi thread sync issue descript as blew steps, this issue case BT HCI command timeout issue.
a)sps connection can be closed in msm_hs_check_clock_off(the first time).
b)msm_hs_check_clock_off return 0 after send a clk_off_timer msg to close sps connection
c)when clk_off_timer is timeout, hsuart_clock_off_work will be invoked, so msm_hs_check_clock_off is invoked for the second time
d)if there is a data/command comes from stack now, uart circular buf won't be empty, that meas uart_circ_empty(tx_buf) will return false
e)if uart_circ_empty(tx_buf) return fasle, msm_hs_check_clock_off only set msm_uport->clk_state to MSM_HS_CLK_ON.
  but the sps connection will not be opened any more.
f)now if there a data/command from stack again
  because the sps connection is still close, so the uart can't thansfer the command/data any more.
  so here open sps connection again

BUG=27536255
Change-Id: Ia5791af06ea7b7e898edcf2536b04179545df9b9
Signed-off-by: z00184990 <z00184990@notesmail.huawei.com>
1 file changed