public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Hilda Wu <hildawu@realtek.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: "marcel@holtmann.org" <marcel@holtmann.org>,
	"linux-bluetooth@vger.kernel.org"
	<linux-bluetooth@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"alex_lu@realsil.com.cn" <alex_lu@realsil.com.cn>,
	Max Chou <max.chou@realtek.com>, KidmanLee <kidman@realtek.com>,
	"howardchung@google.com" <howardchung@google.com>,
	"apusaka@chromium.org" <apusaka@chromium.org>,
	"yinghsu@chromium.org" <yinghsu@chromium.org>,
	"johnlai@google.com" <johnlai@google.com>
Subject: RE: [PATCH v2] Bluetooth: btrtl: Decrease HCI_OP_RESET timeout from 10 s to 2 s
Date: Fri, 4 Oct 2024 07:56:37 +0000	[thread overview]
Message-ID: <0590e0edfe5d453f925d5fdb2ab96cc3@realtek.com> (raw)
In-Reply-To: <CABBYNZJj+gtmSUUz4gUigkg3GUaBuR29jEU=ZxKjxu7cPSv1Yw@mail.gmail.com>

Hi Luiz,

Yes, please.
This is indeed what I want to express.
Thank you for your help.

Regards,
Hilda

-----Original Message-----
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com> 
Sent: Tuesday, October 1, 2024 11:29 PM
To: Hilda Wu <hildawu@realtek.com>
Cc: marcel@holtmann.org; linux-bluetooth@vger.kernel.org; linux-kernel@vger.kernel.org; alex_lu@realsil.com.cn; Max Chou <max.chou@realtek.com>; KidmanLee <kidman@realtek.com>; howardchung@google.com; apusaka@chromium.org; yinghsu@chromium.org; johnlai@google.com
Subject: Re: [PATCH v2] Bluetooth: btrtl: Decrease HCI_OP_RESET timeout from 10 s to 2 s


External mail.



Hi Hilda,

On Tue, Oct 1, 2024 at 3:43 AM Hilda Wu <hildawu@realtek.com> wrote:
>
> The original timeout setting for HCI Reset on shutdown is 10 seconds.
> Since the HCI Reset processing time is soon, so decrease the timeout 
> to 2 seconds for HCI Reset on shutdown.

I guess you are saying that HCI Reset shouldn't take 10 seconds to complete so instead use the default timeout for commands. I can update the description myself if you agree to use the above sentence.

> Signed-off-by: Hilda Wu <hildawu@realtek.com>
> ---
> V1 -> V2: Modify commit message and summary
> ---
> ---
>  drivers/bluetooth/btrtl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/btrtl.c 
> index 2d95b3ea046d..7128a8a0ba25 100644
> --- a/drivers/bluetooth/btrtl.c
> +++ b/drivers/bluetooth/btrtl.c
> @@ -1371,7 +1371,7 @@ int btrtl_shutdown_realtek(struct hci_dev *hdev)
>         /* According to the vendor driver, BT must be reset on close to avoid
>          * firmware crash.
>          */
> -       skb = __hci_cmd_sync(hdev, HCI_OP_RESET, 0, NULL, HCI_INIT_TIMEOUT);
> +       skb = __hci_cmd_sync(hdev, HCI_OP_RESET, 0, NULL, 
> + HCI_CMD_TIMEOUT);
>         if (IS_ERR(skb)) {
>                 ret = PTR_ERR(skb);
>                 bt_dev_err(hdev, "HCI reset during shutdown failed");
> --
> 2.34.1
>


--
Luiz Augusto von Dentz

      reply	other threads:[~2024-10-04  7:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-01  7:43 [PATCH v2] Bluetooth: btrtl: Decrease HCI_OP_RESET timeout from 10 s to 2 s Hilda Wu
2024-10-01 15:29 ` Luiz Augusto von Dentz
2024-10-04  7:56   ` Hilda Wu [this message]

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=0590e0edfe5d453f925d5fdb2ab96cc3@realtek.com \
    --to=hildawu@realtek.com \
    --cc=alex_lu@realsil.com.cn \
    --cc=apusaka@chromium.org \
    --cc=howardchung@google.com \
    --cc=johnlai@google.com \
    --cc=kidman@realtek.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    --cc=marcel@holtmann.org \
    --cc=max.chou@realtek.com \
    --cc=yinghsu@chromium.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