Skip to content

Commit 4f9ed5b

Browse files
rjliao-qcaholtmann
authored andcommitted
Bluetooth: hci_qca: Not send vendor pre-shutdown command for QCA Rome
QCA Rome doesn't support the pre-shutdown vendor hci command, this patch will check the soc type in qca_power_off() and only send this command for wcn399x. Fixes: ae56318 ("Bluetooth: hci_qca: Enable power off/on support during hci down/up for QCA Rome") Signed-off-by: Rocky Liao <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 107db7e commit 4f9ed5b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/bluetooth/hci_qca.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1759,9 +1759,11 @@ static int qca_power_off(struct hci_dev *hdev)
17591759
{
17601760
struct hci_uart *hu = hci_get_drvdata(hdev);
17611761
struct qca_data *qca = hu->priv;
1762+
enum qca_btsoc_type soc_type = qca_soc_type(hu);
17621763

17631764
/* Stop sending shutdown command if soc crashes. */
1764-
if (qca->memdump_state == QCA_MEMDUMP_IDLE) {
1765+
if (qca_is_wcn399x(soc_type)
1766+
&& qca->memdump_state == QCA_MEMDUMP_IDLE) {
17651767
qca_send_pre_shutdown_cmd(hdev);
17661768
usleep_range(8000, 10000);
17671769
}

0 commit comments

Comments
 (0)