summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/btusb.c
diff options
context:
space:
mode:
authorChethan T N <chethan.tumkur.narayan@intel.com>2020-06-08 17:57:46 +0530
committerMarcel Holtmann <marcel@holtmann.org>2020-06-10 06:51:49 +0200
commitd74abe2138b39ae34c274f5ba5dec47408036c0b (patch)
treed56ff5df970ec83094dc8a70b2b0a62d2a441baa /drivers/bluetooth/btusb.c
parentf98aa80ff78c34fe328eb9cd3e2cc3058e42bcfd (diff)
downloadlinux-d74abe2138b39ae34c274f5ba5dec47408036c0b.tar.bz2
Bluetooth: btusb: Add support to read Intel debug feature
The command shall read the Intel controller supported debug feature. Based on the supported features additional debug configuration shall be enabled. Signed-off-by: Chethan T N <chethan.tumkur.narayan@intel.com> Signed-off-by: Ps AyappadasX <AyappadasX.Ps@intel.com> Signed-off-by: Kiran K <kiran.k@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/btusb.c')
-rw-r--r--drivers/bluetooth/btusb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 5f022e9cf667..e12d88e19098 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -2267,6 +2267,7 @@ static int btusb_setup_intel_new(struct hci_dev *hdev)
struct btusb_data *data = hci_get_drvdata(hdev);
struct intel_version ver;
struct intel_boot_params params;
+ struct intel_debug_features features;
const struct firmware *fw;
u32 boot_param;
char fwname[64];
@@ -2542,6 +2543,11 @@ done:
*/
btintel_load_ddc_config(hdev, fwname);
+ /* Read the Intel supported features and if new exception formats
+ * supported, need to load the additional DDC config to enable.
+ */
+ btintel_read_debug_features(hdev, &features);
+
/* Read the Intel version information after loading the FW */
err = btintel_read_version(hdev, &ver);
if (err)