Skip to content

Commit b3e4f23

Browse files
committed
FROMLIST: driver: bluetooth: hci_qca: Convert timeout from jiffies to ms
Since the timer uses jiffies as its unit rather than ms, the timeout value must be converted from ms to jiffies when configuring the timer. Otherwise, the intended 8s timeout is incorrectly set to approximately 33s. Signed-off-by: Shuai Zhang <shuai.zhang@oss.qualcomm.com> Link: https://lore.kernel.org/all/20251107033924.3707495-3-quic_shuaz@quicinc.com/
1 parent ee968c9 commit b3e4f23

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/bluetooth/hci_qca.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,8 +1601,7 @@ static void qca_wait_for_dump_collection(struct hci_dev *hdev)
16011601
struct qca_data *qca = hu->priv;
16021602

16031603
wait_on_bit_timeout(&qca->flags, QCA_MEMDUMP_COLLECTION,
1604-
TASK_UNINTERRUPTIBLE, MEMDUMP_TIMEOUT_MS);
1605-
1604+
TASK_UNINTERRUPTIBLE, msecs_to_jiffies(MEMDUMP_TIMEOUT_MS));
16061605
clear_bit(QCA_MEMDUMP_COLLECTION, &qca->flags);
16071606
}
16081607

0 commit comments

Comments
 (0)