]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Bluetooth: hci_qca: disable power control for WCN7850 when bt_en is not defined
authorShuai Zhang <shuai.zhang@oss.qualcomm.com>
Tue, 24 Mar 2026 02:30:16 +0000 (10:30 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 13 Apr 2026 13:18:16 +0000 (09:18 -0400)
On platforms using an M.2 slot with both UART and USB support, bt_en is
pulled high by hardware. In this case, software-based power control
should be disabled. The current platforms are Lemans-EVK and Monaco-EVK.

Add QCA_WCN7850 to the existing condition so that power_ctrl_enabled is
cleared when bt_en is not software-controlled (or absent), aligning its
behavior with WCN6750 and WCN6855

Signed-off-by: Shuai Zhang <shuai.zhang@oss.qualcomm.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/hci_qca.c

index c17a462aef554225f577dd82517aaa0b451f9cff..4512ff7cd0c013710224c670f6c4dfd6da2c59e6 100644 (file)
@@ -2484,7 +2484,8 @@ static int qca_serdev_probe(struct serdev_device *serdev)
 
                if (!qcadev->bt_en &&
                    (data->soc_type == QCA_WCN6750 ||
-                    data->soc_type == QCA_WCN6855))
+                    data->soc_type == QCA_WCN6855 ||
+                    data->soc_type == QCA_WCN7850))
                        power_ctrl_enabled = false;
 
                qcadev->sw_ctrl = devm_gpiod_get_optional(&serdev->dev, "swctrl",