Skip to content

Commit db0ff7e

Browse files
Shuai ZhangVudentz
authored andcommitted
driver: bluetooth: hci_qca:fix unable to load the BT driver
Some modules have BT_EN enabled via a hardware pull-up, meaning it is not defined in the DTS and is not controlled through the power sequence. In such cases, fall through to follow the legacy flow. Signed-off-by: Shuai Zhang <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 042bb96 commit db0ff7e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

drivers/bluetooth/hci_qca.c

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2392,10 +2392,17 @@ static int qca_serdev_probe(struct serdev_device *serdev)
23922392
*/
23932393
qcadev->bt_power->pwrseq = devm_pwrseq_get(&serdev->dev,
23942394
"bluetooth");
2395-
if (IS_ERR(qcadev->bt_power->pwrseq))
2396-
return PTR_ERR(qcadev->bt_power->pwrseq);
23972395

2398-
break;
2396+
/*
2397+
* Some modules have BT_EN enabled via a hardware pull-up,
2398+
* meaning it is not defined in the DTS and is not controlled
2399+
* through the power sequence. In such cases, fall through
2400+
* to follow the legacy flow.
2401+
*/
2402+
if (IS_ERR(qcadev->bt_power->pwrseq))
2403+
qcadev->bt_power->pwrseq = NULL;
2404+
else
2405+
break;
23992406
}
24002407
fallthrough;
24012408
case QCA_WCN3950:

0 commit comments

Comments
 (0)