Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Bluetooth: btnxpuart: Enable status prints for firmware download

This enables prints for firmware download which can help automation
tests to verify firmware download functionality.

dmesg logs before:
modprobe btnxpuart
[ 1999.187264] Bluetooth: MGMT ver 1.22

dmesg logs with this patch:
modprobe btnxpuart
[16179.758515] Bluetooth: hci0: ChipID: 7601, Version: 0
[16179.764748] Bluetooth: hci0: Request Firmware: nxp/uartspi_n61x_v1.bin.se
[16181.217490] Bluetooth: hci0: FW Download Complete: 372696 bytes
[16182.701398] Bluetooth: MGMT ver 1.22

Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Tested-by: Guillaume Legoupil <guillaume.legoupil@nxp.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Neeraj Sanjay Kale and committed by
Luiz Augusto von Dentz
2684dd61 c68bbf5e

+5 -4
+5 -4
drivers/bluetooth/btnxpuart.c
··· 693 693 if (!strlen(nxpdev->fw_name)) { 694 694 snprintf(nxpdev->fw_name, MAX_FW_FILE_NAME_LEN, "%s", fw_name); 695 695 696 - bt_dev_dbg(hdev, "Request Firmware: %s", nxpdev->fw_name); 696 + bt_dev_info(hdev, "Request Firmware: %s", nxpdev->fw_name); 697 697 err = request_firmware(&nxpdev->fw, nxpdev->fw_name, &hdev->dev); 698 698 if (err < 0) { 699 699 bt_dev_err(hdev, "Firmware file %s not found", nxpdev->fw_name); ··· 781 781 } 782 782 783 783 if (!len) { 784 - bt_dev_dbg(hdev, "FW Downloaded Successfully: %zu bytes", 784 + bt_dev_info(hdev, "FW Download Complete: %zu bytes", 785 785 nxpdev->fw->size); 786 786 if (nxp_data->helper_fw_name && !nxpdev->helper_downloaded) { 787 787 nxpdev->helper_downloaded = true; ··· 890 890 891 891 chip_id = le16_to_cpu(req->chip_id); 892 892 loader_ver = req->loader_ver; 893 + bt_dev_info(hdev, "ChipID: %04x, Version: %d", chip_id, loader_ver); 893 894 if (!nxp_request_firmware(hdev, nxp_get_fw_name_from_chipid(hdev, 894 895 chip_id, loader_ver))) 895 896 nxp_send_ack(NXP_ACK_V3, hdev); ··· 935 934 } 936 935 937 936 if (req->len == 0) { 938 - bt_dev_dbg(hdev, "FW Downloaded Successfully: %zu bytes", 937 + bt_dev_info(hdev, "FW Download Complete: %zu bytes", 939 938 nxpdev->fw->size); 940 939 clear_bit(BTNXPUART_FW_DOWNLOADING, &nxpdev->tx_state); 941 940 wake_up_interruptible(&nxpdev->fw_dnld_done_wait_q); ··· 1038 1037 if (err < 0) 1039 1038 return err; 1040 1039 } else { 1041 - bt_dev_dbg(hdev, "FW already running."); 1040 + bt_dev_info(hdev, "FW already running."); 1042 1041 clear_bit(BTNXPUART_FW_DOWNLOADING, &nxpdev->tx_state); 1043 1042 } 1044 1043