4 Replies Latest reply on Aug 29, 2016 6:21 PM by ken.zhang_1723201

    how to achieve the flow control line function on un-Qualcomm platform in bluesleep.c?

    ken.zhang_1723201

      Dear

      In bluesleep.c use msm_hs_set_mctrl() to achieve the flow control line function,but this is qualcomm platform's function, can't look its code.Who has the bluesleep.c sample of un-qualcomm platform ?

       

      the msm code as following and the bluesleep.c in the attachment:

      static void hsuart_power(int on)

      {

          if (test_bit(BT_SUSPEND, &flags))

              return;

          if (on) {

              msm_hs_request_clock_on(bsi->uport);

             msm_hs_set_mctrl(bsi->uport, TIOCM_RTS);

          } else {

              msm_hs_set_mctrl(bsi->uport, 0);

              msm_hs_request_clock_off(bsi->uport);

          }

      }