Skip to content

Commit 6d10cd5

Browse files
Matthias Kaehlckeholtmann
authored andcommitted
Bluetooth: hci_qca: Use msleep() instead of open coding it
Call msleep() in qca_set_baudrate() instead of reimplementing it. Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
1 parent 0ebcddd commit 6d10cd5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/bluetooth/hci_qca.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -989,9 +989,7 @@ static int qca_set_baudrate(struct hci_dev *hdev, uint8_t baudrate)
989989
* controller will come back after they receive this HCI command
990990
* then host can communicate with new baudrate to controller
991991
*/
992-
set_current_state(TASK_UNINTERRUPTIBLE);
993-
schedule_timeout(msecs_to_jiffies(BAUDRATE_SETTLE_TIMEOUT_MS));
994-
set_current_state(TASK_RUNNING);
992+
msleep(BAUDRATE_SETTLE_TIMEOUT_MS);
995993

996994
return 0;
997995
}

0 commit comments

Comments
 (0)