From: Marcel Holtmann <marcel@holtmann.org>
To: "\"Mark-YW Chen (陳揚文)\"" <Mark-YW.Chen@mediatek.com>
Cc: Johan Hedberg <johan.hedberg@gmail.com>,
chris.lu@mediatek.com, will-cy.lee@mediatek.com,
sean.wang@mediatek.com, linux-bluetooth@vger.kernel.org,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org,
michaelfsun@google.com, shawnku@google.com, jemele@google.com,
apusaka@google.com, mcchou@chromium.org
Subject: Re: [PATCH v5 2/2] Bluetooth: btusb: Support Bluetooth Reset for Mediatek Chip(MT7921)
Date: Wed, 4 Aug 2021 16:49:13 +0200 [thread overview]
Message-ID: <F013475B-3F26-453F-A3C5-EFDD94703AEF@holtmann.org> (raw)
In-Reply-To: <20210804090316.12080-2-mark-yw.chen@mediatek.com>
Hi Mark,
> When the firmware hang or command no response, driver can reset the
> bluetooth mcu via USB to recovery it. The reset steps as follows.
>
> 1. Cancel USB transfer requests before reset.
> 2. It use speicific USB HW Register to reset Bluetooth MCU, at the
> same time, the USB Endpoint0 still keep alive.
> 3. Poll the USB HW register until reset is completed by Endpoint0.
> 4. To recovery unexpected USB state and behavior during resetting the
> Bluetooth MCU, the driver need to reset the USB device for MT7921.
> 5. After the reset is completed, the Bluetooth MCU need to re-setup,
> such as download patch, power-on sequence and etc.
>
> Signed-off-by: mark-yw.chen <mark-yw.chen@mediatek.com>
> Reviewed-by: Michael Sun <michaelfsun@google.com>
> Reviewed-by: Archie Pusaka <apusaka@chromium.org>
> ---
> drivers/bluetooth/btusb.c | 129 ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 129 insertions(+)
patch has been applied to bluetooth-next tree.
Regards
Marcel
prev parent reply other threads:[~2021-08-04 14:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20210804090316.12080-1-mark-yw.chen@mediatek.com>
2021-08-04 14:48 ` [PATCH v5 1/2] Bluetooth: btusb: Record debug log for Mediatek Chip Marcel Holtmann
2021-08-04 23:14 ` Tedd Ho-Jeong An
2021-08-05 13:12 ` Marcel Holtmann
[not found] ` <20210804090316.12080-2-mark-yw.chen@mediatek.com>
2021-08-04 14:49 ` Marcel Holtmann [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=F013475B-3F26-453F-A3C5-EFDD94703AEF@holtmann.org \
--to=marcel@holtmann.org \
--cc=Mark-YW.Chen@mediatek.com \
--cc=apusaka@google.com \
--cc=chris.lu@mediatek.com \
--cc=jemele@google.com \
--cc=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=mcchou@chromium.org \
--cc=michaelfsun@google.com \
--cc=sean.wang@mediatek.com \
--cc=shawnku@google.com \
--cc=will-cy.lee@mediatek.com \
/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;
as well as URLs for NNTP newsgroup(s).