Commit 2de66bb8 authored by Rajat Jain's avatar Rajat Jain Committed by Marcel Holtmann

Bluetooth: btusb: btusb_intel_cmd_timeout: use sleeping functions

The btusb_intel_cmd_timeout() is called from workqueue contexts,
so use the helper functions that can sleep.
Signed-off-by: default avatarRajat Jain <rajatja@google.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 00df214b
...@@ -523,9 +523,9 @@ static void btusb_intel_cmd_timeout(struct hci_dev *hdev) ...@@ -523,9 +523,9 @@ static void btusb_intel_cmd_timeout(struct hci_dev *hdev)
} }
bt_dev_err(hdev, "Initiating HW reset via gpio"); bt_dev_err(hdev, "Initiating HW reset via gpio");
gpiod_set_value(reset_gpio, 1); gpiod_set_value_cansleep(reset_gpio, 1);
mdelay(100); msleep(100);
gpiod_set_value(reset_gpio, 0); gpiod_set_value_cansleep(reset_gpio, 0);
} }
static inline void btusb_free_frags(struct btusb_data *data) static inline void btusb_free_frags(struct btusb_data *data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment