mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Zijun Hu <quic_zijuhu@quicinc.com>
Cc: Johan Hedberg <johan.hedberg@gmail.com>,
	Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
	linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org,
	linux-arm-msm@vger.kernel.org, c-hbandi@codeaurora.org,
	hemantg@codeaurora.org, rjliao@codeaurora.org,
	zijuhu@codeaurora.org, tjiang@codeaurora.org
Subject: Re: [PATCH v1] Bluetooth: btusb: Set HCI_QUIRK_BROKEN_ERR_DATA_REPORTING for QCA
Date: Fri, 22 Apr 2022 11:17:11 +0200	[thread overview]
Message-ID: <1D02DBF7-9368-43D5-9062-96CC73E22B57@holtmann.org> (raw)
In-Reply-To: <1650012368-13505-1-git-send-email-quic_zijuhu@quicinc.com>

Hi Zijun,

> Set HCI_QUIRK_BROKEN_ERR_DATA_REPORTING for QCA controllers since
> they answer HCI_OP_READ_DEF_ERR_DATA_REPORTING with error code
> "UNKNOWN HCI COMMAND" as shown below:
> 
> [  580.517552] Bluetooth: hci0: unexpected cc 0x0c5a length: 1 < 2
> [  580.517660] Bluetooth: hci0: Opcode 0x c5a failed: -38
> 
> Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
> ---
> drivers/bluetooth/btusb.c | 2 ++
> 1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
> index 06a854a2507e..a33f8705f147 100644
> --- a/drivers/bluetooth/btusb.c
> +++ b/drivers/bluetooth/btusb.c
> @@ -3340,6 +3340,8 @@ static int btusb_setup_qca(struct hci_dev *hdev)
> 	 */
> 	set_bit(HCI_QUIRK_BROKEN_ENHANCED_SETUP_SYNC_CONN, &hdev->quirks);
> 
> +	set_bit(HCI_QUIRK_BROKEN_ERR_DATA_REPORTING, &hdev->quirks);
> +
> 	return 0;
> }

please include the supported commands output from btmon that indicates that this hardware declares support for this command.

Regards

Marcel


  reply	other threads:[~2022-04-22  9:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-15  8:46 Zijun Hu
2022-04-22  9:17 ` Marcel Holtmann [this message]
2022-04-26  9:18   ` quic_zijuhu
2022-04-26 18:14     ` Marcel Holtmann
2022-04-26 23:25       ` quic_zijuhu

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=1D02DBF7-9368-43D5-9062-96CC73E22B57@holtmann.org \
    --to=marcel@holtmann.org \
    --cc=c-hbandi@codeaurora.org \
    --cc=hemantg@codeaurora.org \
    --cc=johan.hedberg@gmail.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=quic_zijuhu@quicinc.com \
    --cc=rjliao@codeaurora.org \
    --cc=tjiang@codeaurora.org \
    --cc=zijuhu@codeaurora.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®