Skip to content

Bluetooth: hci_bcm4377: resume after ACPI S3 and ASPM

Andre Eikmeyer asahi linux-arm-kernel linux-bluetooth lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 4 repliesIn review
  2. v23 patches 4 repliesSuperseded
  3. v12 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Rebase on bluetooth-next
- Patch 1: shorter subject, add Sven's Reviewed-by from v1
- Patch 3: add Sven's Acked-by

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Bluetooth: hci_bcm4377: check hci_register_dev() for a negative returndrivers/bluetooth/hci_bcm4377.c+1 -12 replies
2/3Bluetooth: hci_bcm4377: probe again after a resume through firmwaredrivers/bluetooth/hci_bcm4377.c+59 -01 reply
3/3Bluetooth: hci_bcm4377: keep ASPM off only while the firmware bootsdrivers/bluetooth/hci_bcm4377.c+23 -91 reply

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchSven PeterRaymond Berger
1/3R-b T-b
2/3T-b
3/3A-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] Bluetooth: hci_bcm4377: resume after ACPI S3 and ASPM

After ACPI S3 the Bluetooth function of the BCM4377 comes back without its firmware. Patch 2 probes it again after such a resume.

When the previous controller is still being released, the re-probe registers the new one under another index, which runs into the probe return check fixed in patch 1. Patch 1 is a fix on its own and goes first.

Because of a hardware erratum the driver keeps ASPM disabled on the whole link to the Wi-Fi and Bluetooth chip for as long as it is bound, which holds the CPU package at PC3. Patch 3 disables ASPM only while the firmware boots and restores it once the firmware runs, also after the re-probe from patch 2.

The Wi-Fi function of the same chip needs the same after S3 and goes to linux-wireless in "wifi: brcmfmac: pcie: S3 suspend and resume on the T2 Mac chips".

Tested on MacBookAir9,1 and MacBookPro15,4.

Changes in v3:
- Rebase on bluetooth-next
- Patch 1: shorter subject, add Sven's Reviewed-by from v1
- Patch 3: add Sven's Acked-by

Changes in v2:
- Add patch 3, keep ASPM off only while the firmware boots
- Patches 1 and 2 are unchanged

v2: https://lore.kernel.org/all/[email protected]/
v1: https://lore.kernel.org/all/[email protected]/

Andre Eikmeyer (3):
Bluetooth: hci_bcm4377: check hci_register_dev() for a negative return
Bluetooth: hci_bcm4377: probe again after a resume through firmware
Bluetooth: hci_bcm4377: keep ASPM off only while the firmware boots

 drivers/bluetooth/hci_bcm4377.c | 93 +++++++++++++++++++++++++++++----
 1 file changed, 83 insertions(+), 10 deletions(-)

base-commit: f57f78086ab54f3b3122fbaeba2c842ba7bb6d00