static void wakeup_host_work(struct work_struct *work) { BT_DBG("wake up host"); if (test_bit(BT_SLEEPENABLE, &flags)) { if (test_bit(BT_TXEXPIRED, &flags)) hsuart_serial_clock_on(bsi->uport); } if (!is_lpm_enabled) modify_timer_task(); }
static void wakeup_host_work(struct work_struct *work) { struct ath_struct *ath = container_of(work, struct ath_struct, ws_sleep); BT_INFO("wake up host"); if (test_bit(BT_SLEEPENABLE, &flags)) { if (test_bit(BT_TXEXPIRED, &flags)) hsuart_serial_clock_on(ath->hu->tty); } modify_timer_task(); }
static int ath_wakeup_ar3k(struct tty_struct *tty) { int status = 0; if (test_bit(BT_TXEXPIRED, &flags)) { hsuart_serial_clock_on(tty); BT_INFO("wakeup device\n"); gpio_set_value(bsi->ext_wake, 0); msleep(20); gpio_set_value(bsi->ext_wake, 1); } modify_timer_task(); return status; }
static int ath_wakeup_ar3k(void) { int status = 0; if (test_bit(BT_TXEXPIRED, &flags)) { hsuart_serial_clock_on(bsi->uport); BT_DBG("wakeup device\n"); gpio_set_value(bsi->ext_wake, 0); msleep(20); gpio_set_value(bsi->ext_wake, 1); } if (!is_lpm_enabled) modify_timer_task(); return status; }