Skip to contentSkip to conversation

Bluetooth: btintel: Add support for GalePeak

PATCH Superseded Kiran K 4 participants 5 messages Jun 28, 2023 Bluetooth drivers

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Kiran K

author
#0 lore raw

PATCH 1/1 Bluetooth: btintel: Add support for GalePeak

Hardware variant for GalePeak core (CNVi) is added.

---
 drivers/bluetooth/btintel.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/bluetooth/btintel.c +3 -0
index dd1e48808ee2..f4d096639080 100644
@@ -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);
 
Signature · 1 line
2.25.1
#1 lore raw

Dear Kiran,

Thank you for your patch.

Am 28.06.23 um 13:39 schrieb Kiran K:

Quoted 1 line

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.

Quoted 10 lines
---
  drivers/bluetooth/btintel.c | 3 +++
  1 file changed, 3 insertions(+)
drivers/bluetooth/btintel.c +0 -0
index dd1e48808ee2..f4d096639080 100644

drivers/bluetooth/btintel.c static int btintel_version_info_tlv(struct hci_dev *hdev, · line 483

Quoted 4 lines
drivers/bluetooth/btintel.c +1 -0
@@ -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).

Quoted 12 lines
drivers/bluetooth/btintel.c +1 -0
  		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:

drivers/bluetooth/btintel.c static int btintel_setup_combined(struct hci_dev *hdev) · line 2870

Quoted 7 lines
drivers/bluetooth/btintel.c +1 -0
@@ -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

author
#2 lore raw

Hi Paul,

Thanks for the comments.

Quoted 4 lines

Dear Kiran,

Quoted 8 lines

Thank you for your patch.

Am 28.06.23 um 13:39 schrieb Kiran K:

Quoted 1 line

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.

Quoted 12 lines

drivers/bluetooth/btintel.c static int btintel_version_info_tlv(struct hci_dev

Quoted 11 lines
---
  drivers/bluetooth/btintel.c | 3 +++
  1 file changed, 3 insertions(+)
drivers/bluetooth/btintel.c +0 -0
index dd1e48808ee2..f4d096639080 100644
@@ -480,6 +480,7 @@ static int btintel_version_info_tlv(struct hci_dev

*hdev,

Quoted 6 lines

drivers/bluetooth/btintel.c static int btintel_version_info_tlv(struct hci_dev *hdev, · line 483

Quoted 4 lines
drivers/bluetooth/btintel.c +1 -0
  	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.

Quoted 10 lines

drivers/bluetooth/btintel.c static int btintel_setup_combined(struct hci_dev *hdev) · line 2869

Quoted 5 lines
drivers/bluetooth/btintel.c +1 -0
  	case 0x1b:
+	case 0x1c:
  		/* Display version information of TLV type */
  		btintel_version_info_tlv(hdev, &ver_tlv);

Kind regards,

Paul

Regards,
Kiran

#3 lore raw

Hi Kiran,

Quoted 31 lines · Kiran

Hi Paul,

Thanks for the comments.

Quoted 4 lines

Dear Kiran,

Quoted 8 lines

Thank you for your patch.

Am 28.06.23 um 13:39 schrieb Kiran K:

Quoted 1 line

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.

Quoted 12 lines

drivers/bluetooth/btintel.c static int btintel_version_info_tlv(struct hci_dev

Quoted 11 lines
---
  drivers/bluetooth/btintel.c | 3 +++
  1 file changed, 3 insertions(+)
drivers/bluetooth/btintel.c +0 -0
index dd1e48808ee2..f4d096639080 100644
@@ -480,6 +480,7 @@ static int btintel_version_info_tlv(struct hci_dev

*hdev,

Quoted 7 lines
Quoted 6 lines

drivers/bluetooth/btintel.c static int btintel_version_info_tlv(struct hci_dev *hdev, · line 483

Quoted 4 lines
drivers/bluetooth/btintel.c +1 -0
    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.

Quoted 13 lines
Quoted 10 lines

drivers/bluetooth/btintel.c static int btintel_setup_combined(struct hci_dev *hdev) · line 2869

Quoted 5 lines
drivers/bluetooth/btintel.c +1 -0
    case 0x1b:
+   case 0x1c:
            /* Display version information of TLV type */
            btintel_version_info_tlv(hdev, &ver_tlv);

Kind regards,

Paul

Regards,
Kiran

Signature · 1 line
Luiz Augusto von Dentz
#4 lore raw
In reply to Kiran K

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