[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGp9Lzr7hruZ3LXD_bAVb_xy8v5YXptVpye9tEpO=aF18r_4Cw@mail.gmail.com>
Date: Wed, 14 Sep 2022 15:34:09 -0700
From: Sean Wang <sean.wang@...nel.org>
To: AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>
Cc: sean.wang@...iatek.com, marcel@...tmann.org,
johan.hedberg@...il.com, luiz.dentz@...il.com,
Soul.Huang@...iatek.com, YN.Chen@...iatek.com,
Leon.Yen@...iatek.com, Eric-SY.Chang@...iatek.com,
Deren.Wu@...iatek.com, km.lin@...iatek.com,
robin.chiu@...iatek.com, Eddie.Chen@...iatek.com,
ch.yeh@...iatek.com, posh.sun@...iatek.com, ted.huang@...iatek.com,
Stella.Chang@...iatek.com, Tom.Chou@...iatek.com,
steve.lee@...iatek.com, jsiuda@...gle.com, frankgor@...gle.com,
abhishekpandit@...gle.com, michaelfsun@...gle.com,
abhishekpandit@...omium.org, mcchou@...omium.org,
shawnku@...gle.com, linux-bluetooth@...r.kernel.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/4] Bluetooth: btusb: mediatek: reset the device as WMT failed
Hi, Angelo
On Tue, Sep 13, 2022 at 1:23 AM AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com> wrote:
>
> Il 13/09/22 00:18, sean.wang@...iatek.com ha scritto:
> > From: Sean Wang <sean.wang@...iatek.com>
> >
> > Reset the BT device whenever the driver detected any WMT failure happened
> > to recover such kind of system-level error as soon as possible.
> >
> > Signed-off-by: Sean Wang <sean.wang@...iatek.com>
>
> This looks like a fix, so you probably want a Fixes tag for backport.
I didn't add the fix tag because there is not a previous patch that
had issues the patch needs to fix.
It would be looking more like an enhancement patch for me to fix up
the potential issue happening in the firmware where the existing
driver cannot detect and recover in time with .cmd_timeout callback
but actually, the kind of potential issue in firmware I was worried
about in the firmware didn't happen or being reported so far.
Sean
>
> Regards,
> Angelo
>
> > ---
> > drivers/bluetooth/btusb.c | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
> > index 653f57a98233..dc86726c8271 100644
> > --- a/drivers/bluetooth/btusb.c
> > +++ b/drivers/bluetooth/btusb.c
> > @@ -2576,6 +2576,10 @@ static int btusb_mtk_hci_wmt_sync(struct hci_dev *hdev,
> > data->evt_skb = NULL;
> > err_free_wc:
> > kfree(wc);
> > +
> > + if (err < 0)
> > + btmtk_reset_sync(hdev);
> > +
> > return err;
> > }
> >
>
Powered by blists - more mailing lists