[PATCH] Bluetooth: btmtk: improve error logs of MT79xx WMT operations

Jiajia Liu <[email protected]>
Newsgroups org.infradead.lists.linux-mediatek,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-bluetooth,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
There are some identical error logs, making it difficult to distinguish
which step has the error. Improve them based on BTMTK_WMT_FUNC_CTRL and
BTMTK_WMT_PATCH_DWNLD calls and comments.

Signed-off-by: Jiajia Liu <[email protected]>
---
 drivers/bluetooth/btmtk.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/bluetooth/btmtk.c b/drivers/bluetooth/btmtk.c
index 02a96342e964..bbd0ac41fdb7 100644
--- a/drivers/bluetooth/btmtk.c
+++ b/drivers/bluetooth/btmtk.c
@@ -198,7 +198,7 @@ int btmtk_setup_firmware_79xx(struct hci_dev *hdev, const char *fwname,
 
 				err = wmt_cmd_sync(hdev, &wmt_params);
 				if (err < 0) {
-					bt_dev_err(hdev, "Failed to send wmt patch dwnld (%d)",
+					bt_dev_err(hdev, "Failed to get wmt patch status (%d)",
 						   err);
 					goto err_release_fw;
 				}
@@ -251,7 +251,7 @@ int btmtk_setup_firmware_79xx(struct hci_dev *hdev, const char *fwname,
 					err = -EIO;
 					goto err_release_fw;
 				} else if (err < 0) {
-					bt_dev_err(hdev, "Failed to send wmt patch dwnld (%d)",
+					bt_dev_err(hdev, "Failed to send wmt patch data (%d)",
 						   err);
 					goto err_release_fw;
 				}
@@ -1424,7 +1424,7 @@ int btmtk_usb_setup(struct hci_dev *hdev)
 
 		err = btmtk_usb_hci_wmt_sync(hdev, &wmt_params);
 		if (err < 0) {
-			bt_dev_err(hdev, "Failed to send wmt func ctrl (%d)", err);
+			bt_dev_err(hdev, "Failed to enable protocol (%d)", err);
 			return err;
 		}
 
@@ -1550,7 +1550,7 @@ int btmtk_usb_shutdown(struct hci_dev *hdev)
 
 	err = btmtk_usb_hci_wmt_sync(hdev, &wmt_params);
 	if (err < 0) {
-		bt_dev_err(hdev, "Failed to send wmt func ctrl (%d)", err);
+		bt_dev_err(hdev, "Failed to disable device (%d)", err);
 		usb_autopm_put_interface(data->intf);
 		return err;
 	}
-- 
2.55.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.