Skip to content

QCLINUX: power: sequencing: qcom-wcn: skip BT devices without bt-enable GPIO#807

Open
shuaz-shuai wants to merge 1 commit intoqualcomm-linux:tech/pm/powerfrom
shuaz-shuai:tech/pm/power
Open

QCLINUX: power: sequencing: qcom-wcn: skip BT devices without bt-enable GPIO#807
shuaz-shuai wants to merge 1 commit intoqualcomm-linux:tech/pm/powerfrom
shuaz-shuai:tech/pm/power

Conversation

@shuaz-shuai
Copy link

If a Bluetooth consumer device does not have a bt-enable GPIO configured in the power sequencer (for example, when BT_EN is tied high via a hardware pull-up and therefore absent from the DT), the power sequencer should not match the device.

In this case, the Bluetooth consumer driver will fall back to its legacy power control path and correctly set power_ctrl_enabled to false.

Bluetooth device nodes are conventionally named "bluetooth" in the device tree, so use of_node_name_eq() as a generic check instead of enumerating specific compatible strings.

Without this change, Bluetooth over USB does not work.
This is a temporary workaround. Once a proper M.2 binding or solution is upstreamed, both the DTS and driver changes will be reworked and re-submitted according to the M.2 model.

CRs-Fixed: 4464912

…le GPIO

If a Bluetooth consumer device does not have a bt-enable GPIO configured
in the power sequencer (for example, when BT_EN is tied high via a
hardware pull-up and therefore absent from the DT), the power sequencer
should not match the device.

In this case, the Bluetooth consumer driver will fall back to its legacy
power control path and correctly set power_ctrl_enabled to false.

Bluetooth device nodes are conventionally named "bluetooth" in the
device tree, so use of_node_name_eq() as a generic check instead of
enumerating specific compatible strings.

Signed-off-by: Shuai Zhang <shuai.zhang@oss.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant