mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
Bluetooth: hci_qca: Improve controller ID info log level
Controller ID info got by VSC EDL_PATCH_GETVER is very important, so improve its log level from DEBUG to INFO. Signed-off-by: Zijun Hu <zijuhu@codeaurora.org> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
7e7bbddd02
commit
4942857b01
@ -74,17 +74,21 @@ int qca_read_soc_version(struct hci_dev *hdev, u32 *soc_version,
|
|||||||
|
|
||||||
ver = (struct qca_btsoc_version *)(edl->data);
|
ver = (struct qca_btsoc_version *)(edl->data);
|
||||||
|
|
||||||
BT_DBG("%s: Product:0x%08x", hdev->name, le32_to_cpu(ver->product_id));
|
bt_dev_info(hdev, "QCA Product ID :0x%08x",
|
||||||
BT_DBG("%s: Patch :0x%08x", hdev->name, le16_to_cpu(ver->patch_ver));
|
le32_to_cpu(ver->product_id));
|
||||||
BT_DBG("%s: ROM :0x%08x", hdev->name, le16_to_cpu(ver->rom_ver));
|
bt_dev_info(hdev, "QCA SOC Version :0x%08x",
|
||||||
BT_DBG("%s: SOC :0x%08x", hdev->name, le32_to_cpu(ver->soc_id));
|
le32_to_cpu(ver->soc_id));
|
||||||
|
bt_dev_info(hdev, "QCA ROM Version :0x%08x",
|
||||||
|
le16_to_cpu(ver->rom_ver));
|
||||||
|
bt_dev_info(hdev, "QCA Patch Version:0x%08x",
|
||||||
|
le16_to_cpu(ver->patch_ver));
|
||||||
|
|
||||||
/* QCA chipset version can be decided by patch and SoC
|
/* QCA chipset version can be decided by patch and SoC
|
||||||
* version, combination with upper 2 bytes from SoC
|
* version, combination with upper 2 bytes from SoC
|
||||||
* and lower 2 bytes from patch will be used.
|
* and lower 2 bytes from patch will be used.
|
||||||
*/
|
*/
|
||||||
*soc_version = (le32_to_cpu(ver->soc_id) << 16) |
|
*soc_version = (le32_to_cpu(ver->soc_id) << 16) |
|
||||||
(le16_to_cpu(ver->rom_ver) & 0x0000ffff);
|
(le16_to_cpu(ver->rom_ver) & 0x0000ffff);
|
||||||
if (*soc_version == 0)
|
if (*soc_version == 0)
|
||||||
err = -EILSEQ;
|
err = -EILSEQ;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user