Commit db0ff7e1 authored by Shuai Zhang's avatar Shuai Zhang Committed by Luiz Augusto von Dentz
Browse files

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: default avatarShuai Zhang <quic_shuaz@quicinc.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent 042bb960
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -2392,9 +2392,16 @@ 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);

			/*
			 * 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;