]> Gentwo Git Trees - linux/.git/commitdiff
Bluetooth: btusb: mediatek: Add err code to btusb claim iso printout
authorDouglas Anderson <dianders@chromium.org>
Thu, 16 Jan 2025 03:36:37 +0000 (19:36 -0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 20 Feb 2025 18:06:48 +0000 (13:06 -0500)
Add the error code to the message "Failed to claim iso
interface". That allows us to know which error case
usb_driver_claim_interface() hit.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btusb.c

index 90966dfbd2781f64a2babe0a6ba45543851950e5..1ee88ef5db2d0f65938a05ede280d9a0cec1cccf 100644 (file)
@@ -2645,7 +2645,7 @@ static void btusb_mtk_claim_iso_intf(struct btusb_data *data)
        device_unlock(&btmtk_data->isopkt_intf->dev);
        if (err < 0) {
                btmtk_data->isopkt_intf = NULL;
-               bt_dev_err(data->hdev, "Failed to claim iso interface");
+               bt_dev_err(data->hdev, "Failed to claim iso interface: %d", err);
                return;
        }