diff mbox series

Bluetooth: btintel: Fix: Add LE States quirk form Solar onwards

Message ID 20230320061813.69895-1-chethan.tumkur.narayan@intel.com (mailing list archive)
State Accepted
Commit 5b23f8375a3685b93022feb625a2c4b43e5c0ad3
Headers show
Series Bluetooth: btintel: Fix: Add LE States quirk form Solar onwards | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/CheckPatch success CheckPatch PASS
tedd_an/GitLint success Gitlint PASS
tedd_an/SubjectPrefix success Gitlint PASS
tedd_an/BuildKernel success BuildKernel PASS
tedd_an/CheckAllWarning success CheckAllWarning PASS
tedd_an/CheckSparse success CheckSparse PASS
tedd_an/CheckSmatch success CheckSparse PASS
tedd_an/BuildKernel32 success BuildKernel32 PASS
tedd_an/TestRunnerSetup success TestRunnerSetup PASS
tedd_an/TestRunner_l2cap-tester success TestRunner PASS
tedd_an/TestRunner_iso-tester success TestRunner PASS
tedd_an/TestRunner_bnep-tester success TestRunner PASS
tedd_an/TestRunner_mgmt-tester success TestRunner PASS
tedd_an/TestRunner_rfcomm-tester success TestRunner PASS
tedd_an/TestRunner_sco-tester success TestRunner PASS
tedd_an/TestRunner_ioctl-tester success TestRunner PASS
tedd_an/TestRunner_mesh-tester success TestRunner PASS
tedd_an/TestRunner_smp-tester success TestRunner PASS
tedd_an/TestRunner_userchan-tester success TestRunner PASS
tedd_an/IncrementalBuild success Incremental Build PASS

Commit Message

Chethan T N March 20, 2023, 6:18 a.m. UTC
This patch shall enable the LE States quirks by default on all
Intel controller from Solar products on wards.

Signed-off-by: Chethan T N <chethan.tumkur.narayan@intel.com>
---
 drivers/bluetooth/btintel.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Comments

bluez.test.bot@gmail.com March 20, 2023, 7:01 a.m. UTC | #1
This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=731691

---Test result---

Test Summary:
CheckPatch                    PASS      0.68 seconds
GitLint                       PASS      0.34 seconds
SubjectPrefix                 PASS      0.12 seconds
BuildKernel                   PASS      31.69 seconds
CheckAllWarning               PASS      34.44 seconds
CheckSparse                   PASS      39.17 seconds
CheckSmatch                   PASS      107.40 seconds
BuildKernel32                 PASS      30.98 seconds
TestRunnerSetup               PASS      426.98 seconds
TestRunner_l2cap-tester       PASS      17.22 seconds
TestRunner_iso-tester         PASS      17.53 seconds
TestRunner_bnep-tester        PASS      5.71 seconds
TestRunner_mgmt-tester        PASS      113.56 seconds
TestRunner_rfcomm-tester      PASS      9.17 seconds
TestRunner_sco-tester         PASS      8.44 seconds
TestRunner_ioctl-tester       PASS      9.95 seconds
TestRunner_mesh-tester        PASS      7.23 seconds
TestRunner_smp-tester         PASS      8.25 seconds
TestRunner_userchan-tester    PASS      6.07 seconds
IncrementalBuild              PASS      28.88 seconds



---
Regards,
Linux Bluetooth
Paul Menzel March 20, 2023, 1:10 p.m. UTC | #2
Dear Chethan,


Thank you for your patch. There is a small typo in the summary/title: 
s/form/from/

Am 20.03.23 um 07:18 schrieb Chethan T N:
> This patch shall enable the LE States quirks by default on all

s/shall enable/enables/

> Intel controller from Solar products on wards.

onwards

Where is it documented, to enable that quirk for all?

> Signed-off-by: Chethan T N <chethan.tumkur.narayan@intel.com>
> ---
>   drivers/bluetooth/btintel.c | 5 ++---
>   1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c
> index af774688f1c0..7a6dc05553f1 100644
> --- a/drivers/bluetooth/btintel.c
> +++ b/drivers/bluetooth/btintel.c
> @@ -2684,9 +2684,8 @@ static int btintel_setup_combined(struct hci_dev *hdev)
>   		 */
>   		set_bit(HCI_QUIRK_WIDEBAND_SPEECH_SUPPORTED, &hdev->quirks);
>   
> -		/* Valid LE States quirk for GfP */
> -		if (INTEL_HW_VARIANT(ver_tlv.cnvi_bt) == 0x18)
> -			set_bit(HCI_QUIRK_VALID_LE_STATES, &hdev->quirks);
> +		/* Apply LE States quirk from solar onwards */
> +		set_bit(HCI_QUIRK_VALID_LE_STATES, &hdev->quirks);

 From the diff it is unclear, if Solar is the first “device”. So I’d be 
nice if you elaborated in the commit message.

>   
>   		/* Setup MSFT Extension support */
>   		btintel_set_msft_opcode(hdev,


Kind regards,

Paul
Chethan T N March 21, 2023, 3:28 a.m. UTC | #3
Thanks for the feedback, will send the updated patch.

> -----Original Message-----
> From: Paul Menzel <pmenzel@molgen.mpg.de>
> Sent: Monday, March 20, 2023 6:40 PM
> To: Tumkur Narayan, Chethan <chethan.tumkur.narayan@intel.com>
> Cc: Srivatsa, Ravishankar <ravishankar.srivatsa@intel.com>; K, Kiran
> <kiran.k@intel.com>; linux-bluetooth@vger.kernel.org
> Subject: Re: [PATCH] Bluetooth: btintel: Fix: Add LE States quirk form Solar
> onwards
> 
> Dear Chethan,
> 
> 
> Thank you for your patch. There is a small typo in the summary/title:
> s/form/from/
> 
> Am 20.03.23 um 07:18 schrieb Chethan T N:
> > This patch shall enable the LE States quirks by default on all
> 
> s/shall enable/enables/
> 
> > Intel controller from Solar products on wards.
> 
> onwards
> 
> Where is it documented, to enable that quirk for all?
> 
> > Signed-off-by: Chethan T N <chethan.tumkur.narayan@intel.com>
> > ---
> >   drivers/bluetooth/btintel.c | 5 ++---
> >   1 file changed, 2 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c
> > index af774688f1c0..7a6dc05553f1 100644
> > --- a/drivers/bluetooth/btintel.c
> > +++ b/drivers/bluetooth/btintel.c
> > @@ -2684,9 +2684,8 @@ static int btintel_setup_combined(struct hci_dev
> *hdev)
> >   		 */
> >   		set_bit(HCI_QUIRK_WIDEBAND_SPEECH_SUPPORTED,
> &hdev->quirks);
> >
> > -		/* Valid LE States quirk for GfP */
> > -		if (INTEL_HW_VARIANT(ver_tlv.cnvi_bt) == 0x18)
> > -			set_bit(HCI_QUIRK_VALID_LE_STATES, &hdev-
> >quirks);
> > +		/* Apply LE States quirk from solar onwards */
> > +		set_bit(HCI_QUIRK_VALID_LE_STATES, &hdev->quirks);
> 
>  From the diff it is unclear, if Solar is the first “device”. So I’d be nice if you
> elaborated in the commit message.
> 
> >
> >   		/* Setup MSFT Extension support */
> >   		btintel_set_msft_opcode(hdev,
> 
> 
> Kind regards,
> 
> Paul
Chethan T N March 21, 2023, 4:30 a.m. UTC | #4
Hi Paul,

> -----Original Message-----
> From: Tumkur Narayan, Chethan
> Sent: Tuesday, March 21, 2023 8:59 AM
> To: Paul Menzel <pmenzel@molgen.mpg.de>
> Cc: Srivatsa, Ravishankar <ravishankar.srivatsa@intel.com>; K, Kiran
> <kiran.k@intel.com>; linux-bluetooth@vger.kernel.org
> Subject: RE: [PATCH] Bluetooth: btintel: Fix: Add LE States quirk form Solar
> onwards
> 
> Thanks for the feedback, will send the updated patch.
> 
> > -----Original Message-----
> > From: Paul Menzel <pmenzel@molgen.mpg.de>
> > Sent: Monday, March 20, 2023 6:40 PM
> > To: Tumkur Narayan, Chethan <chethan.tumkur.narayan@intel.com>
> > Cc: Srivatsa, Ravishankar <ravishankar.srivatsa@intel.com>; K, Kiran
> > <kiran.k@intel.com>; linux-bluetooth@vger.kernel.org
> > Subject: Re: [PATCH] Bluetooth: btintel: Fix: Add LE States quirk form
> > Solar onwards
> >
> > Dear Chethan,
> >
> >
> > Thank you for your patch. There is a small typo in the summary/title:
> > s/form/from/
> >
> > Am 20.03.23 um 07:18 schrieb Chethan T N:
> > > This patch shall enable the LE States quirks by default on all
> >
> > s/shall enable/enables/
ACK.
> >
> > > Intel controller from Solar products on wards.
> >
> > onwards
ACK.
> >
> > Where is it documented, to enable that quirk for all?
Based controller support the quick shall be added. Currently the quick was only applied for GarfieldPeak(GfP) however it is supported on all Intel controller.
> >
> > > Signed-off-by: Chethan T N <chethan.tumkur.narayan@intel.com>
> > > ---
> > >   drivers/bluetooth/btintel.c | 5 ++---
> > >   1 file changed, 2 insertions(+), 3 deletions(-)
> > >
> > > diff --git a/drivers/bluetooth/btintel.c
> > > b/drivers/bluetooth/btintel.c index af774688f1c0..7a6dc05553f1
> > > 100644
> > > --- a/drivers/bluetooth/btintel.c
> > > +++ b/drivers/bluetooth/btintel.c
> > > @@ -2684,9 +2684,8 @@ static int btintel_setup_combined(struct
> > > hci_dev
> > *hdev)
> > >   		 */
> > >   		set_bit(HCI_QUIRK_WIDEBAND_SPEECH_SUPPORTED,
> > &hdev->quirks);
> > >
> > > -		/* Valid LE States quirk for GfP */
> > > -		if (INTEL_HW_VARIANT(ver_tlv.cnvi_bt) == 0x18)
> > > -			set_bit(HCI_QUIRK_VALID_LE_STATES, &hdev-
> > >quirks);
> > > +		/* Apply LE States quirk from solar onwards */
> > > +		set_bit(HCI_QUIRK_VALID_LE_STATES, &hdev->quirks);
> >
> >  From the diff it is unclear, if Solar is the first “device”. So I’d
> > be nice if you elaborated in the commit message.
> >
> > >
> > >   		/* Setup MSFT Extension support */
> > >   		btintel_set_msft_opcode(hdev,
> >
> >
> > Kind regards,
> >
> > Paul

Thanks
Chethan
patchwork-bot+bluetooth@kernel.org March 29, 2023, 7:50 p.m. UTC | #5
Hello:

This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Mon, 20 Mar 2023 11:48:13 +0530 you wrote:
> This patch shall enable the LE States quirks by default on all
> Intel controller from Solar products on wards.
> 
> Signed-off-by: Chethan T N <chethan.tumkur.narayan@intel.com>
> ---
>  drivers/bluetooth/btintel.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)

Here is the summary with links:
  - Bluetooth: btintel: Fix: Add LE States quirk form Solar onwards
    https://git.kernel.org/bluetooth/bluetooth-next/c/5b23f8375a36

You are awesome, thank you!
diff mbox series

Patch

diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c
index af774688f1c0..7a6dc05553f1 100644
--- a/drivers/bluetooth/btintel.c
+++ b/drivers/bluetooth/btintel.c
@@ -2684,9 +2684,8 @@  static int btintel_setup_combined(struct hci_dev *hdev)
 		 */
 		set_bit(HCI_QUIRK_WIDEBAND_SPEECH_SUPPORTED, &hdev->quirks);
 
-		/* Valid LE States quirk for GfP */
-		if (INTEL_HW_VARIANT(ver_tlv.cnvi_bt) == 0x18)
-			set_bit(HCI_QUIRK_VALID_LE_STATES, &hdev->quirks);
+		/* Apply LE States quirk from solar onwards */
+		set_bit(HCI_QUIRK_VALID_LE_STATES, &hdev->quirks);
 
 		/* Setup MSFT Extension support */
 		btintel_set_msft_opcode(hdev,