- 07 1月, 2022 1 次提交
-
-
由 Tedd Ho-Jeong An 提交于
This patch fixes the broken LED quirk for Intel legacy ROM devices. To fix the LED issue that doesn't turn off immediately, the host sends the SW RFKILL command while shutting down the interface and it puts the devices in SW RFKILL state. Once the device is in SW RFKILL state, it can only accept HCI_Reset to exit from the SW RFKILL state. This patch checks the quirk for broken LED and sends the HCI_Reset before sending the HCI_Intel_Read_Version command. The affected legacy ROM devices are - 8087:07dc - 8087:0a2a - 8087:0aa7 Fixes: ffcba827 ("Bluetooth: btintel: Fix the LED is not turning off immediately") Signed-off-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
- 22 12月, 2021 1 次提交
-
-
由 Tedd Ho-Jeong An 提交于
This patch add missing HCI quirks and MSFT extension for legacy bootloader when it is running in the operational firmware. Signed-off-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NLuiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
- 13 10月, 2021 1 次提交
-
-
由 Kiran K 提交于
Intel Read Verision(TLV) data is parsed into a local structure variable and it contains a field for bd address. Bd address is returned only in bootloader mode and hence bd address in TLV structure needs to be validated only if controller is present in boot loader mode. Signed-off-by: NKiran K <kiran.k@intel.com> Reviewed-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
- 10 9月, 2021 1 次提交
-
-
由 Colin Ian King 提交于
Currently *ven_data is being assigned the return from a kmalloc call but the out-of-memory check is checking ven_data and not *ven_data. Fix this by adding the missing dereference * operator, Addresses-Coverity: ("Dereference null return") Fixes: 70dd9789 ("Bluetooth: btintel: Define a callback to fetch codec config data") Signed-off-by: NColin Ian King <colin.king@canonical.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
- 08 9月, 2021 3 次提交
-
-
由 Kiran K 提交于
Define callback function to get codec config data. In HFP offload usecase, controllers need to be set codec details before opening SCO. This callback function is used to fetch vendor specific codec config data. Signed-off-by: NKiran K <kiran.k@intel.com> Reviewed-by: NChethan T N <chethan.tumkur.narayan@intel.com> Reviewed-by: NSrivatsa Ravishankar <ravishankar.srivatsa@intel.com> Signed-off-by: NLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
-
由 Kiran K 提交于
For Intel controllers supporting HFP offload usecase, define a callback function to fetch data_path_id Signed-off-by: NKiran K <kiran.k@intel.com> Reviewed-by: NChethan T N <chethan.tumkur.narayan@intel.com> Reviewed-by: NSrivatsa Ravishankar <ravishankar.srivatsa@intel.com> Signed-off-by: NLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
-
由 Kiran K 提交于
Read offload use cases supported by controller. Signed-off-by: NKiran K <kiran.k@intel.com> Reviewed-by: NChethan T N <chethan.tumkur.narayan@intel.com> Reviewed-by: NSrivatsa Ravishankar <ravishankar.srivatsa@intel.com> Signed-off-by: NLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
-
- 31 8月, 2021 2 次提交
-
-
由 Kiran K 提交于
Boot address was not getting updated when controller is present in boot mode which is required to move the controller from boot mode to operation mode after firmware download. This patch reads boot address even if controller is present in boot mode. Signed-off-by: NKiran K <kiran.k@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
由 Kiran K 提交于
Cache Boot address present in firmware file which is later used in Intel_Soft_Reset command to bring controller from boot mode to operational mode. Signed-off-by: NKiran K <kiran.k@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
- 30 8月, 2021 3 次提交
-
-
由 Joseph Hwang 提交于
This patch sets up set_quality_report callback for Intel to set and reset the debug features. Reviewed-by: NMiao-chen Chou <mcchou@chromium.org> Signed-off-by: NJoseph Hwang <josephsih@chromium.org> Signed-off-by: NLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
-
由 Chethan T N 提交于
This patch supports the link statistics telemetry events for intel controllers Reviewed-by: NMiao-chen Chou <mcchou@chromium.org> Signed-off-by: NChethan T N <chethan.tumkur.narayan@intel.com> Signed-off-by: NKiran K <kiran.k@intel.com> Signed-off-by: NJoseph Hwang <josephsih@chromium.org> Signed-off-by: NLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
-
由 Joseph Hwang 提交于
To avoid the overhead on both the controller and the host, the Intel link statistics telemetry events are disabled by default. Reviewed-by: NMiao-chen Chou <mcchou@chromium.org> Signed-off-by: NChethan T N <chethan.tumkur.narayan@intel.com> Signed-off-by: NKiran K <kiran.k@intel.com> Signed-off-by: NJoseph Hwang <josephsih@chromium.org> Signed-off-by: NLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
-
- 05 8月, 2021 10 次提交
-
-
由 Tedd Ho-Jeong An 提交于
This patch combines the setting up MSFT extension for the legacy and TLV based bootloader into the common function based on hw_variant. Signed-off-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
由 Tedd Ho-Jeong An 提交于
From the ThP, it supports both legacy and TLV based HCI_Intel_Read_Version command after downloading the operational firmware, and it causes the driver to choose the wrong setup routines and missing firmware/ddc file. So, as a workaround, this patch checks the fw variant from the TLV based version, and if the device is legacy bootloader device, the legacy HCI_Intel_Read_Version command is used to get the legacy version information and run the legacy bootloader setup with it. Signed-off-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
由 Tedd Ho-Jeong An 提交于
This patch changes the exported functions to static if they are no longer used by others. Signed-off-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
由 Tedd Ho-Jeong An 提交于
This patch moves the hci quirks for Intel devices into the setup routines and cleaned up the driver flags. Signed-off-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
由 Tedd Ho-Jeong An 提交于
This patch refactors the setup routines for legacy and TLV based bootloader devices to the combined setup, and move the related functions from btusb to btintel. Signed-off-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
由 Tedd Ho-Jeong An 提交于
This patch adds a combined set_diag functions. It also changes the btintel_set_diag_mfg() to static since it is no longer used by others. Signed-off-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
由 Tedd Ho-Jeong An 提交于
Some platforms have an issue with BT LED when the interface is down or BT radio is turned off, which takes 5 seconds to BT LED goes off. This command turns off the BT LED immediately. This patch sends the Intel vendor command to turn off the LED. Signed-off-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
由 Tedd Ho-Jeong An 提交于
The some legacy ROM controllers have a bug with the first HCI command sent to it returning number of completed commands as zero, which would stall the command processing in the Bluetooth core. As a workaround, send HCI Rest command first which will reset the controller to fix the issue. Signed-off-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
由 Tedd Ho-Jeong An 提交于
This patch refactors the setup routines for legacy ROM product into combined setup, and move the related functions from btusb to btintel. Signed-off-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
由 Tedd Ho-Jeong An 提交于
There are multiple setup and shutdown functions for Intel device and the setup function to be used is depends on the USB PID/VID, which makes difficult to maintain the code and increases the code size. This patch adds combined setup and shutdown functions to provide a single entry point for all Intel devices and choose the setup functions based on the information read with HCI_Intel_Read_Version command. Starting from TyP device, the command and response parameters for HCI_Intel_Read_Version command are changed even though OCF remains same. However, the legacy devices still can handle the command without error even if it has a extra parameter, so to simplify the flow, the new command format is used to read the version information for both legacy and new (tlv based) format. Also, it also adds a routine to setup the hdev callbacks in btintel. Signed-off-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
- 25 3月, 2021 7 次提交
-
-
由 Lokendra Singh 提交于
This skips parsing the firmware version information from the firmware file while controller is in bootloader mode. As in bootloader mode, we are supposed to patch unconditionally. Signed-off-by: NLokendra Singh <lokendra.singh@intel.com> Signed-off-by: NLuiz Augusto von Dentz <luiz.von.dentz@intel.com> Tested-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
由 Lokendra Singh 提交于
In Operational firmware mode, 'Minimum FW version' TLV ID is not available. So, we cannot fetch already running firmware info for comparison against another build. However, It can be collected using a combination of other TLV ID's information. Signed-off-by: NLokendra Singh <lokendra.singh@intel.com> Signed-off-by: NLuiz Augusto von Dentz <luiz.von.dentz@intel.com> Tested-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
由 Lokendra Singh 提交于
This moves limited_cce and sbe_type checks under bootloader during tlv parsing as operational firmware don't have access to these values. Any attempt to read such values in operational firmware will only fetch garbage data. Signed-off-by: NLokendra Singh <lokendra.singh@intel.com> Signed-off-by: NKiran K <kiran.k@intel.com> Signed-off-by: NLuiz Augusto von Dentz <luiz.von.dentz@intel.com> Tested-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
由 Luiz Augusto von Dentz 提交于
This moves version checks of intel_version() to btintel_version_info(). Signed-off-by: NLuiz Augusto von Dentz <luiz.von.dentz@intel.com> Tested-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
由 Luiz Augusto von Dentz 提交于
This moves version checks of intel_version_tlv() to btintel_version_info_tlv(). Signed-off-by: NLuiz Augusto von Dentz <luiz.von.dentz@intel.com> Tested-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
由 Luiz Augusto von Dentz 提交于
In order to allow new firmware to load, it first needs to check if the firmware version on file matches the one loaded if it doesn't, then it needs to revert to bootloader mode in order to load the new firmware. Signed-off-by: NLuiz Augusto von Dentz <luiz.von.dentz@intel.com> Tested-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
由 Luiz Augusto von Dentz 提交于
This checks the firmware build number, week and year against the repective loaded version. If details are a match, skip the download process. Signed-off-by: NLuiz Augusto von Dentz <luiz.von.dentz@intel.com> Tested-by: NTedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
- 08 3月, 2021 1 次提交
-
-
由 Kiran K 提交于
Boot address parameter was not getting updated properly due to wrong offset Signed-off-by: NKiran K <kiran.k@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
- 19 12月, 2020 1 次提交
-
-
由 Kiran K 提交于
This reverts commit a63f23c9d139377833a139b179793fea79ee198f. get_unaligned_{le16|le32|le64}(p) is meant to replace code of the form le16_to_cpu(get_unaligned((__le16 *)p)). There is no need to explicitly do leXX_to_cpu() if get_unaligned_leXX() is used. https://lwn.net/Articles/277779/Reported-by: Nkernel test robot <lkp@intel.com> Signed-off-by: NKiran K <kiran.k@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
- 07 12月, 2020 1 次提交
-
-
由 Kiran K 提交于
do __le32_to_cpu to tlv data fields to make sure driver runs correctly when running on big endian system. Signed-off-by: NKiran K <kiran.k@intel.com> Reviewed-by: NChethan T N <chethan.tumkur.narayan@intel.com> Reviewed-by: NSrivatsa Ravishankar <ravishankar.srivatsa@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org> Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
-
- 15 9月, 2020 2 次提交
-
-
由 Kiran K 提交于
New generation controllers supports ECDSA secure boot engine. This patch adds, 1) function to send ECDSA header 2) function to download complete firmware for new generation Intel controllers Signed-off-by: NKiran K <kiran.k@intel.com> Signed-off-by: NAmit K Bag <amit.k.bag@intel.com> Signed-off-by: NRaghuram Hegde <raghuram.hegde@intel.com> Reviewed-by: NChethan T N <chethan.tumkur.narayan@intel.com> Reviewed-by: NSrivatsa Ravishankar <ravishankar.srivatsa@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
由 Kiran K 提交于
New generation Intel controllers returns version information in TLV format. This patch adds, 1) Enums, structures for TLV 2) function to read controller information, parse TLV data and populate intel_version_tlv structure 3) function to print version information Signed-off-by: NKiran K <kiran.k@intel.com> Signed-off-by: NAmit K Bag <amit.k.bag@intel.com> Signed-off-by: NRaghuram Hegde <raghuram.hegde@intel.com> Reviewed-by: NChethan T N <chethan.tumkur.narayan@intel.com> Reviewed-by: NSrivatsa Ravishankar <ravishankar.srivatsa@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
- 13 9月, 2020 1 次提交
-
-
由 Kiran K 提交于
Split firmware download code into two functions - one to download header and other to download payload. This patch enhances readability and reusabiltiy of code Signed-off-by: NKiran K <kiran.k@intel.com> Reviewed-by: NChethan T N <chethan.tumkur.narayan@intel.com> Reviewed-by: NSathish Narasimman <Sathish.Narasimman@intel.com> Reviewed-by: NSrivatsa Ravishankar <ravishankar.srivatsa@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
- 10 6月, 2020 2 次提交
-
-
由 Chethan T N 提交于
This patch shall enable the Intel telemetry exception format based on the supported features Signed-off-by: NChethan T N <chethan.tumkur.narayan@intel.com> Signed-off-by: NPs AyappadasX <AyappadasX.Ps@intel.com> Signed-off-by: NKiran K <kiran.k@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
由 Chethan T N 提交于
The command shall read the Intel controller supported debug feature. Based on the supported features additional debug configuration shall be enabled. Signed-off-by: NChethan T N <chethan.tumkur.narayan@intel.com> Signed-off-by: NPs AyappadasX <AyappadasX.Ps@intel.com> Signed-off-by: NKiran K <kiran.k@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
- 13 2月, 2020 1 次提交
-
-
由 Gustavo A. R. Silva 提交于
The current codebase makes use of the zero-length array language extension to the C90 standard, but the preferred mechanism to declare variable-length types such as these ones is a flexible array member[1][2], introduced in C99: struct foo { int stuff; struct boo array[]; }; By making use of the mechanism above, we will get a compiler warning in case the flexible array does not occur last in the structure, which will help us prevent some kind of undefined behavior bugs from being inadvertenly introduced[3] to the codebase from now on. Also, notice that, dynamic memory allocations won't be affected by this change: "Flexible array members have incomplete type, and so the sizeof operator may not be applied. As a quirk of the original implementation of zero-length arrays, sizeof evaluates to zero."[1] This issue was found with the help of Coccinelle. [1] https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html [2] https://github.com/KSPP/linux/issues/21 [3] commit 76497732 ("cxgb3/l2t: Fix undefined behaviour") Signed-off-by: NGustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
- 17 10月, 2019 1 次提交
-
-
由 Amit K Bag 提交于
Sometimes during FW data download stage, in case of an error is encountered the controller device could not be recovered. To recover from such failures send Intel hard Reset to re-trigger FW download in following error scenarios: 1. Intel Read version command error 2. Firmware download timeout 3. Failure in Intel Soft Reset for switching to operational FW 4. Boot timeout for switching to operaional FW Signed-off-by: NRaghuram Hegde <raghuram.hegde@intel.com> Signed-off-by: NChethan T N <chethan.tumkur.narayan@intel.com> Signed-off-by: NAmit K Bag <amit.k.bag@intel.com> Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
-
- 31 5月, 2019 1 次提交
-
-
由 Thomas Gleixner 提交于
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details you should have received a copy of the gnu general public license along with this program if not write to the free software foundation inc 59 temple place suite 330 boston ma 02111 1307 usa extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 1334 file(s). Signed-off-by: NThomas Gleixner <tglx@linutronix.de> Reviewed-by: NAllison Randal <allison@lohutok.net> Reviewed-by: NRichard Fontana <rfontana@redhat.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070033.113240726@linutronix.deSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-