Skip to content

Fixes/improvements for the PCI M.2 power sequencing driver

Manivannan Sadhasivam b4-sent linux-arm-msm linux-bluetooth linux-pci linux-pm lkml 3 versions – In review

Get series with b4
b4 am [email protected] change-id 20260422-pwrseq-m2-bt-abdaa71094eb

Versions newest first

  1. v3 Latest9 patches 3 repliesIn review
  2. v29 patches 6 repliesSuperseded
  3. v112 patches 13 repliesSuperseded

Changes in v3 from the cover letter

- Renamed __pwrseq_pcie_m2_create_serdev() to pwrseq_pcie_m2_create_serdev_one()
- Moved the pwrseq patches together for creating the immutable pwrseq branch
- Collected tags

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9power: sequencing: pcie-m2: Fix inconsistent function prefixesdrivers/power/sequencing/pwrseq-pcie-m2.c+4 -41 reply
2/9power: sequencing: pcie-m2: Allow creating serdev for multiple PCI devicesdrivers/power/sequencing/pwrseq-pcie-m2.c+88 -390 replies
3/9power: sequencing: pcie-m2: Improve PCI device ID checkdrivers/power/sequencing/pwrseq-pcie-m2.c+7 -40 replies
4/9power: sequencing: pcie-m2: Create serdev for PCI devices present before probedrivers/power/sequencing/pwrseq-pcie-m2.c+68 -130 replies
5/9power: sequencing: pcie-m2: Create BT node based on the pci_device_id[] tabledrivers/power/sequencing/pwrseq-pcie-m2.c+20 -90 replies
6/9power: sequencing: Add an API to return the pwrseq device's 'dev' pointerdrivers/power/sequencing/core.c include/linux/pwrseq/consumer.h+16 -00 replies
7/9Bluetooth: hci_qca: Add M.2 Bluetooth device support using pwrseqdrivers/bluetooth/hci_qca.c+13 -00 replies
8/9Bluetooth: hci_qca: Rename 'power_ctrl_enabled' to 'bt_en_available'drivers/bluetooth/hci_qca.c+4 -40 replies
9/9Bluetooth: hci_qca: Set 'bt_en_available' based on W_DISABLE2# presence in M.2 connectordrivers/bluetooth/hci_qca.c+7 -00 replies

Reviews trailers per patch

4 of 9 patches have a Reviewed-by or Acked-by.

PatchWei DengKonrad DybcioBartosz GolaszewskiDmitry Baryshkov
1/9T-b
2/9T-b
3/9T-b R-b
4/9T-b
5/9T-b
6/9T-b
7/9T-b R-b R-b
8/9T-b R-b R-b
9/9T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/9] Fixes/improvements for the PCI M.2 power sequencing driver

Hi,

This series has several key improvements and fixes to the M.2 power sequencing driver and also the BT HCI_QCA driver. Notably, this series allows the M.2 power sequencing driver to work with more M.2 cards, not just WCN7850. It also allows the BT HCI_QCA driver to detect whether it can control BT_EN (or W_DISABLE2#) signal on the connector and set the HCI_QUIRK_NON_PERSISTENT_SETUP quirk.

Testing
=======

This series was tested on Lenovo Thinkpad T14s together with the below DTS patches:
https://github.com/Mani-Sadhasivam/linux/commit/29534d15307551b2355eb254601dec511169f0aa
https://github.com/Mani-Sadhasivam/linux/commit/f4eaacfe647674be200847092b43cdef2194fc55

Merge Strategy
==============

Since the BT HCI_QCA changes depend on the pwrseq changes, it would be good to merge the whole series through pwrseq tree or through an immutable branch.

---
Changes in v3:
- Renamed __pwrseq_pcie_m2_create_serdev() to pwrseq_pcie_m2_create_serdev_one()
- Moved the pwrseq patches together for creating the immutable pwrseq branch
- Collected tags

Changes in v2:
- Dropped the pwrseq_is_fixed() change in favor or exporting pwrseq device's dev pointer and using it to check for the presence of W_DISABLE2# property
- Dropped the BT_EN fix for the Qcom WCN devices since it will be handled separately
- Collected tags
- Link to v1: https://patch.msgid.link/[email protected]

---
Manivannan Sadhasivam (9):
power: sequencing: pcie-m2: Fix inconsistent function prefixes
power: sequencing: pcie-m2: Allow creating serdev for multiple PCI devices
power: sequencing: pcie-m2: Improve PCI device ID check
power: sequencing: pcie-m2: Create serdev for PCI devices present before probe
power: sequencing: pcie-m2: Create BT node based on the pci_device_id[] table
power: sequencing: Add an API to return the pwrseq device's 'dev' pointer
Bluetooth: hci_qca: Add M.2 Bluetooth device support using pwrseq
Bluetooth: hci_qca: Rename 'power_ctrl_enabled' to 'bt_en_available'
Bluetooth: hci_qca: Set 'bt_en_available' based on W_DISABLE2# presence in M.2 connector

 drivers/bluetooth/hci_qca.c               |  28 +++-
 drivers/power/sequencing/core.c           |   9 ++
 drivers/power/sequencing/pwrseq-pcie-m2.c | 232 ++++++++++++++++++++++--------
 include/linux/pwrseq/consumer.h           |   7 +
 4 files changed, 215 insertions(+), 61 deletions(-)

---
base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731
change-id: 20260422-pwrseq-m2-bt-abdaa71094eb

Best regards,

Signature · 1 line
Manivannan Sadhasivam <[email protected]>