mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 04:46:30 -04:00
Bluetooth: btusb: QCA: Fix populating devcoredump fields on unenabled devices
Devcoredump is not enabled for ATH3012 or QCA_ROME, but they
unconditionally populate devcoredump fields in btusb_setup_qca().
Fix by populating devcoredump fields only when BTUSB_QCA_WCN6855 is
set, which marks the first generation of QCA BT SoCs for which
devcoredump is enabled.
Fixes: 20981ce2d5 ("Bluetooth: btusb: Add WCN6855 devcoredump support")
Signed-off-by: Zijun Hu <zijun.hu@oss.qualcomm.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
committed by
Luiz Augusto von Dentz
parent
ff50db7a52
commit
33c6a8d018
@@ -3701,8 +3701,10 @@ static int btusb_setup_qca(struct hci_dev *hdev)
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
btdata->qca_dump.fw_version = le32_to_cpu(ver.patch_version);
|
||||
btdata->qca_dump.controller_id = le32_to_cpu(ver.rom_version);
|
||||
if (btdata->match_id->driver_info & BTUSB_QCA_WCN6855) {
|
||||
btdata->qca_dump.fw_version = le32_to_cpu(ver.patch_version);
|
||||
btdata->qca_dump.controller_id = le32_to_cpu(ver.rom_version);
|
||||
}
|
||||
|
||||
if (!(status & QCA_SYSCFG_UPDATED)) {
|
||||
err = btusb_setup_qca_load_nvm(hdev, &ver, info);
|
||||
|
||||
Reference in New Issue
Block a user