Bluetooth: btusb: btusb_intel_cmd_timeout: use sleeping functions
PATCH 1/1 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 Rajat Jain <[email protected]>
drivers/bluetooth/btusb.c +3 -3
@@ -523,9 +523,9 @@ static void btusb_intel_cmd_timeout(struct hci_dev *hdev) }bt_dev_err (hdev,"Initiating HW reset via gpio" ); -gpiod_set_value (reset_gpio,1 ); -mdelay (100 ); -gpiod_set_value (reset_gpio,0 ); +gpiod_set_value_cansleep (reset_gpio,1 ); +msleep (100 ); +gpiod_set_value_cansleep (reset_gpio,0 ); }static inline void btusb_free_frags (struct btusb_data *data)
Signature · 1 line
2.20.1.495.gaa96b0ce6b-goog
Marcel Holtmann
maintainerHi Rajat,
Quoted 4 lines
The
btusb_intel_cmd_timeout()is called from workqueue contexts, so use the helper functions that can sleep.Signed-off-by Rajat Jain <[email protected]>
patch has been applied to bluetooth-next tree.
Regards
Marcel