From: Shuai Zhang <quic_shuaz@quicinc.com>
To: Paul Menzel <pmenzel@molgen.mpg.de>
Cc: <dmitry.baryshkov@oss.qualcomm.com>, <marcel@holtmann.org>,
<luiz.dentz@gmail.com>, <linux-bluetooth@vger.kernel.org>,
<stable@vger.kernel.org>, <linux-arm-msm@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <quic_chejiang@quicinc.com>
Subject: Re: [PATCH v2 2/2] Bluetooth: hci_qca: Convert timeout from jiffies to ms
Date: Fri, 7 Nov 2025 11:36:32 +0800 [thread overview]
Message-ID: <d0dca2e9-ccbe-4c3b-9008-80f0030d39ec@quicinc.com> (raw)
In-Reply-To: <3676d7e4-5a28-4e8a-bc55-1386b4fbc58f@molgen.mpg.de>
Dear Paul
On 11/6/2025 10:27 PM, Paul Menzel wrote:
> Dear Shuai,
>
>
> Thank you for your patch.
>
> Am 06.11.25 um 15:01 schrieb Shuai Zhang:
>> 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.
>>
>> Cc: stable@vger.kernel.org
>
> A Fixes: tag is needed.
>
>> Signed-off-by: Shuai Zhang <quic_shuaz@quicinc.com>
>> ---
>> drivers/bluetooth/hci_qca.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
>> index fa6be1992..c14b2fa9d 100644
>> --- a/drivers/bluetooth/hci_qca.c
>> +++ b/drivers/bluetooth/hci_qca.c
>> @@ -1602,7 +1602,7 @@ static void qca_wait_for_dump_collection(struct hci_dev *hdev)
>> struct qca_data *qca = hu->priv;
>> wait_on_bit_timeout(&qca->flags, QCA_MEMDUMP_COLLECTION,
>> - TASK_UNINTERRUPTIBLE, MEMDUMP_TIMEOUT_MS);
>> + TASK_UNINTERRUPTIBLE, msecs_to_jiffies(MEMDUMP_TIMEOUT_MS));
>> clear_bit(QCA_MEMDUMP_COLLECTION, &qca->flags);
>> }
>
> With the Fixes: tag added, feel free to add:
>
> Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
>
>
Thank you for your suggestion. I will update and resubmit.
> Kind regards,
>
> Paul
Best regards,
Shuai
next prev parent reply other threads:[~2025-11-07 3:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-06 14:01 [PATCH v2 0/2] Fix SSR unable to wake up bug Shuai Zhang
2025-11-06 14:01 ` [PATCH v2 1/2] Bluetooth: qca: Fix delayed hw_error handling due to missing wakeup during SSR Shuai Zhang
2025-11-06 14:01 ` [PATCH v2 2/2] Bluetooth: hci_qca: Convert timeout from jiffies to ms Shuai Zhang
2025-11-06 14:27 ` Paul Menzel
2025-11-07 3:36 ` Shuai Zhang [this message]
2025-11-11 12:40 ` Dmitry Baryshkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d0dca2e9-ccbe-4c3b-9008-80f0030d39ec@quicinc.com \
--to=quic_shuaz@quicinc.com \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=marcel@holtmann.org \
--cc=pmenzel@molgen.mpg.de \
--cc=quic_chejiang@quicinc.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®