diff --git a/drivers/wireless/bluetooth/bt_device.c b/drivers/wireless/bluetooth/bt_device.c index c1adc0930..373fd4a04 100644 --- a/drivers/wireless/bluetooth/bt_device.c +++ b/drivers/wireless/bluetooth/bt_device.c @@ -123,7 +123,7 @@ struct bt_dev_runtime_data { static void off_def_power(struct bt_dev_data *pdata, unsigned long down_time) { - pr_debug("[%s]: pid: %d comm: %s\n", __func__, + pr_info("[%s]: pid: %d comm: %s\n", __func__, current->pid, current->comm); if (pdata->gpio_reset > 0) { @@ -134,9 +134,6 @@ static void off_def_power(struct bt_dev_data *pdata, unsigned long down_time) gpio_direction_output(pdata->gpio_reset, pdata->power_low_level); } - - if (down_time) - msleep(down_time); } #ifndef CONTROL_POWER_EN_LINUX @@ -151,7 +148,7 @@ static void off_def_power(struct bt_dev_data *pdata, unsigned long down_time) static void on_def_power(struct bt_dev_data *pdata, unsigned long up_time) { - pr_debug("[%s]: pid: %d comm: %s\n", __func__, + pr_info("[%s]: pid: %d comm: %s\n", __func__, current->pid, current->comm); if (pdata->gpio_reset > 0) { @@ -162,10 +159,7 @@ static void on_def_power(struct bt_dev_data *pdata, unsigned long up_time) gpio_direction_output(pdata->gpio_reset, !pdata->power_low_level); } - - if (up_time) - msleep(up_time); - } +} #ifndef CONTROL_POWER_EN_LINUX if (pdata->gpio_en && pdata->power_on_pin_OD && diff --git a/drivers/wireless/wifi/wifi_dt.c b/drivers/wireless/wifi/wifi_dt.c index 34b90bf54..12e6b4e5e 100644 --- a/drivers/wireless/wifi/wifi_dt.c +++ b/drivers/wireless/wifi/wifi_dt.c @@ -272,6 +272,8 @@ static void usb_power_control(int is_power, int shift) (shift ? "WiFi" : "BT")); msleep(200); sdio_reinit(); + } else if (shift == BT_BIT) { + msleep(200); } usb_power |= (1 << shift); WIFI_INFO("Set %s power on !\n", @@ -283,6 +285,8 @@ static void usb_power_control(int is_power, int shift) msleep(200); WIFI_INFO("Set %s power down\n", (shift ? "WiFi" : "BT")); + } else if (shift == BT_BIT) { + msleep(200); } } mutex_unlock(&wifi_bt_mutex);