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 <quic_shuaz@quicinc.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
committed by
Luiz Augusto von Dentz
parent
042bb9603c
commit
db0ff7e159
@@ -2392,10 +2392,17 @@ static int qca_serdev_probe(struct serdev_device *serdev)
|
||||
*/
|
||||
qcadev->bt_power->pwrseq = devm_pwrseq_get(&serdev->dev,
|
||||
"bluetooth");
|
||||
if (IS_ERR(qcadev->bt_power->pwrseq))
|
||||
return PTR_ERR(qcadev->bt_power->pwrseq);
|
||||
|
||||
break;
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
if (IS_ERR(qcadev->bt_power->pwrseq))
|
||||
qcadev->bt_power->pwrseq = NULL;
|
||||
else
|
||||
break;
|
||||
}
|
||||
fallthrough;
|
||||
case QCA_WCN3950:
|
||||
|
||||
Reference in New Issue
Block a user