2023-06-28 11:40:54

by K, Kiran

[permalink] [raw]
Subject: [PATCH v1] Bluetooth: btintel: Add support for GalePeak

Hardware variant for GalePeak core (CNVi) is added.

Signed-off-by: Kiran K <[email protected]>
---
drivers/bluetooth/btintel.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c
index dd1e48808ee2..f4d096639080 100644
--- a/drivers/bluetooth/btintel.c
+++ b/drivers/bluetooth/btintel.c
@@ -480,6 +480,7 @@ static int btintel_version_info_tlv(struct hci_dev *hdev,
case 0x18: /* Slr */
case 0x19: /* Slr-F */
case 0x1b: /* Mgr */
+ case 0x1c: /* GaP */
break;
default:
bt_dev_err(hdev, "Unsupported Intel hardware variant (0x%x)",
@@ -2648,6 +2649,7 @@ static void btintel_set_msft_opcode(struct hci_dev *hdev, u8 hw_variant)
case 0x18:
case 0x19:
case 0x1b:
+ case 0x1c:
hci_set_msft_opcode(hdev, 0xFC1E);
break;
default:
@@ -2862,6 +2864,7 @@ static int btintel_setup_combined(struct hci_dev *hdev)
case 0x18:
case 0x19:
case 0x1b:
+ case 0x1c:
/* Display version information of TLV type */
btintel_version_info_tlv(hdev, &ver_tlv);

--
2.25.1



2023-06-28 11:51:56

by Paul Menzel

[permalink] [raw]
Subject: Re: [PATCH v1] Bluetooth: btintel: Add support for GalePeak

Dear Kiran,


Thank you for your patch.

Am 28.06.23 um 13:39 schrieb Kiran K:
> Hardware variant for GalePeak core (CNVi) is added.

The code names are officially spelled with a space, I believe: Gale Peak.

Maybe also mention 0x1c.

> Signed-off-by: Kiran K <[email protected]>
> ---
> drivers/bluetooth/btintel.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c
> index dd1e48808ee2..f4d096639080 100644
> --- a/drivers/bluetooth/btintel.c
> +++ b/drivers/bluetooth/btintel.c
> @@ -480,6 +480,7 @@ static int btintel_version_info_tlv(struct hci_dev *hdev,
> case 0x18: /* Slr */
> case 0x19: /* Slr-F */
> case 0x1b: /* Mgr */
> + case 0x1c: /* GaP */

Why not add the full name in the comment? Maybe: Gale Peak (GaP).

> break;
> default:
> bt_dev_err(hdev, "Unsupported Intel hardware variant (0x%x)",
> @@ -2648,6 +2649,7 @@ static void btintel_set_msft_opcode(struct hci_dev *hdev, u8 hw_variant)
> case 0x18:
> case 0x19:
> case 0x1b:
> + case 0x1c:
> hci_set_msft_opcode(hdev, 0xFC1E);
> break;
> default:
> @@ -2862,6 +2864,7 @@ static int btintel_setup_combined(struct hci_dev *hdev)
> case 0x18:
> case 0x19:
> case 0x1b:
> + case 0x1c:
> /* Display version information of TLV type */
> btintel_version_info_tlv(hdev, &ver_tlv);
>


Kind regards,

Paul

2023-06-28 11:57:58

by K, Kiran

[permalink] [raw]
Subject: RE: [PATCH v1] Bluetooth: btintel: Add support for GalePeak

Hi Paul,

Thanks for the comments.

>
> Dear Kiran,
>
>
> Thank you for your patch.
>
> Am 28.06.23 um 13:39 schrieb Kiran K:
> > Hardware variant for GalePeak core (CNVi) is added.
>
> The code names are officially spelled with a space, I believe: Gale Peak.
>
> Maybe also mention 0x1c.

I will fix it in V2 version of patch.
>
> > Signed-off-by: Kiran K <[email protected]>
> > ---
> > drivers/bluetooth/btintel.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c
> > index dd1e48808ee2..f4d096639080 100644
> > --- a/drivers/bluetooth/btintel.c
> > +++ b/drivers/bluetooth/btintel.c
> > @@ -480,6 +480,7 @@ static int btintel_version_info_tlv(struct hci_dev
> *hdev,
> > case 0x18: /* Slr */
> > case 0x19: /* Slr-F */
> > case 0x1b: /* Mgr */
> > + case 0x1c: /* GaP */
>
> Why not add the full name in the comment? Maybe: Gale Peak (GaP).
Ack.

> > case 0x1b:
> > + case 0x1c:
> > /* Display version information of TLV type */
> > btintel_version_info_tlv(hdev, &ver_tlv);
> >
>
>
> Kind regards,
>
> Paul

Regards,
Kiran

2023-06-28 12:14:39

by bluez.test.bot

[permalink] [raw]
Subject: RE: [v1] Bluetooth: btintel: Add support for GalePeak

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=760911

---Test result---

Test Summary:
CheckPatch PASS 0.79 seconds
GitLint PASS 0.39 seconds
SubjectPrefix PASS 0.14 seconds
BuildKernel PASS 39.30 seconds
CheckAllWarning PASS 42.86 seconds
CheckSparse PASS 48.51 seconds
CheckSmatch PASS 132.21 seconds
BuildKernel32 PASS 37.94 seconds
TestRunnerSetup PASS 539.07 seconds
TestRunner_l2cap-tester PASS 20.30 seconds
TestRunner_iso-tester PASS 28.33 seconds
TestRunner_bnep-tester PASS 7.13 seconds
TestRunner_mgmt-tester PASS 149.78 seconds
TestRunner_rfcomm-tester PASS 10.86 seconds
TestRunner_sco-tester PASS 10.08 seconds
TestRunner_ioctl-tester PASS 11.76 seconds
TestRunner_mesh-tester PASS 8.97 seconds
TestRunner_smp-tester PASS 10.19 seconds
TestRunner_userchan-tester PASS 7.29 seconds
IncrementalBuild PASS 35.70 seconds



---
Regards,
Linux Bluetooth

2023-06-28 19:53:01

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: [PATCH v1] Bluetooth: btintel: Add support for GalePeak

Hi Kiran,

On Wed, Jun 28, 2023 at 4:57 AM K, Kiran <[email protected]> wrote:
>
> Hi Paul,
>
> Thanks for the comments.
>
> >
> > Dear Kiran,
> >
> >
> > Thank you for your patch.
> >
> > Am 28.06.23 um 13:39 schrieb Kiran K:
> > > Hardware variant for GalePeak core (CNVi) is added.
> >
> > The code names are officially spelled with a space, I believe: Gale Peak.
> >
> > Maybe also mention 0x1c.
>
> I will fix it in V2 version of patch.
> >
> > > Signed-off-by: Kiran K <[email protected]>
> > > ---
> > > drivers/bluetooth/btintel.c | 3 +++
> > > 1 file changed, 3 insertions(+)
> > >
> > > diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c
> > > index dd1e48808ee2..f4d096639080 100644
> > > --- a/drivers/bluetooth/btintel.c
> > > +++ b/drivers/bluetooth/btintel.c
> > > @@ -480,6 +480,7 @@ static int btintel_version_info_tlv(struct hci_dev
> > *hdev,
> > > case 0x18: /* Slr */
> > > case 0x19: /* Slr-F */
> > > case 0x1b: /* Mgr */
> > > + case 0x1c: /* GaP */
> >
> > Why not add the full name in the comment? Maybe: Gale Peak (GaP).
> Ack.

I think it is about time to introduce proper definitions, or use an
enum, for these values. It would be also great to have btmon decoding
these values so you can include a HCI trace in the patch description.

> > > case 0x1b:
> > > + case 0x1c:
> > > /* Display version information of TLV type */
> > > btintel_version_info_tlv(hdev, &ver_tlv);
> > >
> >
> >
> > Kind regards,
> >
> > Paul
>
> Regards,
> Kiran



--
Luiz Augusto von Dentz