hci_qca: Add M.2 Bluetooth device support using pwrseq#1263
hci_qca: Add M.2 Bluetooth device support using pwrseq#1263WeiDeng-weiden wants to merge 3 commits into
Conversation
…pwrseq Power supply to the M.2 Bluetooth device attached to the host using M.2 connector is controlled using the 'uart' pwrseq device. So add support for getting the pwrseq device if the OF graph link is present. Once obtained, the existing pwrseq APIs can be used to control the power supplies of the M.2 card. Tested-by: Wei Deng <wei.deng@oss.qualcomm.com> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260519-pwrseq-m2-bt-v3-0-b39dc2ae3966@oss.qualcomm.com
…vailable' 'power_ctrl_enabled' flag is used to indicate the availability of the BT_EN GPIO in devicetree. But the naming causes confusion with the new pwrctrl framework. So rename it to 'bt_en_available' to make it clear and explicit. Tested-by: Wei Deng <wei.deng@oss.qualcomm.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260519-pwrseq-m2-bt-v3-0-b39dc2ae3966@oss.qualcomm.com
…E2# presence in M.2 connector Check if the M.2 connector supports the W_DISABLE2# property or not by querying the pwrseq provider's DT node. If not available, then set 'bt_en_available' flag to 'false'. This flag is used to set the HCI_QUIRK_NON_PERSISTENT_SETUP HCI quirk, which informs the HCI layer whether the shutdown() callback for the device can be triggered or not. Tested-by: Wei Deng <wei.deng@oss.qualcomm.com> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260519-pwrseq-m2-bt-v3-0-b39dc2ae3966@oss.qualcomm.com
|
Merge Check Failed: No Component Found Configuration Error: No component found for branch 'tech/net/bluetooth'. There is no component associated with the provided branch in Polaris. Please verify the branch configuration. Branch: |
🔨 Build Failure Analysis — PR #1263PR: #1263
Verdict1 of 1 errors is introduced by this PR due to a missing dependency (PR #1262). 📎 Detailed analysis: Full report |
PR #1263 — validate-patchPR: #1263
Final Summary
|
PR #1263 — checker-log-analyzerPR: #1263
Detailed report: Full report
|
Add support for controlling the power supply to an M.2 Bluetooth device using the uart pwrseq device. Also allows the driver to detect whether it can control the BT_EN (W_DISABLE2#) signal on the connector and set the HCI_QUIRK_NON_PERSISTENT_SETUP quirk accordingly.
All patches are from the same upstream series as tech/bus/pci/all: https://lore.kernel.org/r/20260519-pwrseq-m2-bt-v3-0-b39dc2ae3966@oss.qualcomm.com
Depends on: PR: #1262, tech/bus/pci/all — the pwrseq_to_device() API added in that branch is required by patch 7/9 (hci_qca: Add M.2 Bluetooth device support).
CRs-Fixed: 4552421