Skip to content
Snippets Groups Projects
  1. Aug 17, 2016
  2. Aug 12, 2016
  3. Aug 11, 2016
  4. Aug 09, 2016
  5. Jul 19, 2016
  6. Jul 13, 2016
  7. Jun 22, 2016
  8. Jun 20, 2016
  9. Jun 06, 2016
  10. May 11, 2016
  11. May 10, 2016
    • josh_hsu's avatar
      HSUART:fix the hsuart multi-thread sync issue · b1fab6da
      josh_hsu authored
      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
      
      Change-Id: If81fdcfb376ef50667dc6ff9762cd05238d13dd6
      Reviewed-on: http://mcrd1-22-pc.corpnet.asus/code-review/master/229789
      
      
      Reviewed-by: default avatarChance Chen <chance_chen@asus.com>
      Reviewed-by: default avatarCarol_Jiang <carol_jiang@asus.com>
      Tested-by: default avatarCarol_Jiang <carol_jiang@asus.com>
      b1fab6da
  12. May 09, 2016
  13. May 06, 2016
  14. May 05, 2016
  15. May 04, 2016