Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795046122; b=NJMk3yXGFHDCA6aH5kbLDgx7Tt1mxWK+J0F7G1oX1kwRnAKo9bUpZ350s6OMT3vKeP91 Wq3KsxeLli2srnwL9//N/SNl0ZH68Z/Ch8kJvLh5oG8R22XihFvFJpYdKfPeCC4tdwlbw Qg4jnOrFKzA2zIIUb/FPD5X2DAcZcvSsbeBJhxFJLAFQqNyeSzRc6gLqxx5shlfT+OdqP H8k/oDV5Ot9JwN3x71SrHg5vmMmtDPZGURvla8AIEDMKjyCWzCueu/OMG4euR1bRXcKef olBW980O3/7ZG6GV90GcraUbX/a8GgfFIHVKIb8Z5mPyX2EZEdai/SCUYeS8NCwPQvA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795046122; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=MzbMYFSHl4L/1B3fWmcCTy2AZuQNZ+mEeopppaukL7k=; b=uS1yYFzLQkSkcxw6Uynn570AoNRoMoWr8RXiplGiZLmOgy76+eCVQnZ1vg5V9/LPTYMT Pgx7sd1IC77Y6/OLWmF9s8R0CmYYP9xaxt64EIqoMAzBRaoM44l9t16TJZht1lwJXAtLQ SHL7BKavyZ5MLwvRGgtO1iq+efQF0olSc8+hxG8VhRDkDeUaM/ZCqT1Q3kaofyuPf+zpD rI4KLLBCViJBCKPxoE+nqeXIyYx2Ojg5z6wC2wtzNhvs0rYi9ipYVXy7VQ3/e+gREKBcF UEa4N/tH26Idnn1SdLzuVD4O8BZMu3bZqUob01SuJfDeLFz6YW+5lZ22Ta/qT3h44Og== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=dTImf5SU; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83E0A606A31C; Wed, 18 Nov 2026 23:55:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=dTImf5SU Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1CE91F000C5; Wed, 18 Nov 2026 23:55:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795046122; bh=MzbMYFSHl4L/1B3fWmcCTy2AZuQNZ+mEeopppaukL7k=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=dTImf5SU6fvDag9woqmRxuPiloFZdqdclatqg0slpss+EYiJmbam4adGvE8lyHUtA 9U5lSYsfrZeylKQ5dvkXvmaXkYP7uwoZbzctBVO88mzoWtxPkKJCMfY7oXdcBytA3f kwANLwI4Uc8dRZtnyB0pVxzX2vpMe5o1MAGDbWqw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ricardo Ribalda , Laurent Pinchart , Sasha Levin Subject: [PATCH 6.1 1169/2857] media: uvcvideo: Disable autosuspend for Insta360 Link Date: Wed, 18 Nov 2026 15:36:43 +0100 Message-ID: <20261118150243.681633256@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150201.293410965@linuxfoundation.org> References: <20261118150201.293410965@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ricardo Ribalda [ Upstream commit 3de6df64f92d8633eb51a5e957ffc43ebdb2156e ] When the device suspends, it keeps power-cycling. The user notices it because the LED constanct oscillate between blue (ready) and no LED (off). <6>[95202.128542] usb 3-3-port4: attempt power cycle <6>[95206.070120] usb 3-3.4: new high-speed USB device number 49 using xhci_hcd <6>[95206.212027] usb 3-3.4: New USB device found, idVendor=2e1a, idProduct=4c01, bcdDevice= 2.00 <6>[95206.212044] usb 3-3.4: New USB device strings: Mfr=1, Product=2, SerialNumber= <6>[95206.212050] usb 3-3.4: Product: Insta360 Link <6>[95206.212075] usb 3-3.4: Manufacturer: Amba <7>[95206.214862] usb 3-3.4: GPIO lookup for consumer privacy <7>[95206.214866] usb 3-3.4: using lookup tables for GPIO lookup <7>[95206.214869] usb 3-3.4: No GPIO consumer privacy found <6>[95206.214871] usb 3-3.4: Found UVC 1.10 device Insta360 Link (2e1a:4c01) <3>[95206.217113] usb 3-3.4: Failed to query (GET_INFO) UVC control 14 on unit 1: -32 (exp. 1). <3>[95206.217733] usb 3-3.4: Failed to query (GET_INFO) UVC control 16 on unit 1: -32 (exp. 1). <4>[95206.223544] usb 3-3.4: Warning! Unlikely big volume range (=32767), cval->res is probably wrong. <4>[95206.223554] usb 3-3.4: [9] FU [Mic Capture Volume] ch = 1, val = -32768/-1/1 <6>[95210.698990] usb 3-3.4: USB disconnect, device number 49 <6>[95211.963090] usb 3-3.4: new high-speed USB device number 50 using xhci_hcd <6>[95212.657061] usb 3-3.4: new full-speed USB device number 51 using xhci_hcd <3>[95212.783119] usb 3-3.4: device descriptor read/64, error -32 <3>[95213.015076] usb 3-3.4: device descriptor read/64, error -32 <6>[95213.120358] usb 3-3-port4: attempt power cycle Bus 001 Device 009: ID 2e1a:4c01 Amba Insta360 Link Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 239 Miscellaneous Device bDeviceSubClass 2 bDeviceProtocol 1 Interface Association bMaxPacketSize0 64 idVendor 0x2e1a idProduct 0x4c01 bcdDevice 2.00 iManufacturer 1 Amba iProduct 2 Insta360 Link iSerial 0 bNumConfigurations 1 Signed-off-by: Ricardo Ribalda Reviewed-by: Laurent Pinchart Link: https://lore.kernel.org/r/20221101-instal-v1-0-d13d1331c4b5@chromium.org Signed-off-by: Laurent Pinchart [ sashal: Adapted the probe hunk and the device table to the missing neighbouring entries, placing the Insta360 entry between GEO and Sonix; the header hunk was dropped because the define already exists. ] Signed-off-by: Sasha Levin --- drivers/media/usb/uvc/uvc_driver.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c index a1c6ae97a2b93..5ee4ab0d889e6 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -2296,8 +2296,11 @@ static int uvc_probe(struct usb_interface *intf, goto error; } + if (!(dev->quirks & UVC_QUIRK_DISABLE_AUTOSUSPEND)) + usb_enable_autosuspend(udev); + uvc_dbg(dev, PROBE, "UVC device initialized\n"); - usb_enable_autosuspend(udev); + return 0; error: @@ -3062,6 +3065,15 @@ static const struct usb_device_id uvc_ids[] = { .bInterfaceSubClass = 1, .bInterfaceProtocol = 0, .driver_info = UVC_INFO_QUIRK(UVC_QUIRK_FORCE_BPP) }, + /* Insta360 Link */ + { .match_flags = USB_DEVICE_ID_MATCH_DEVICE + | USB_DEVICE_ID_MATCH_INT_INFO, + .idVendor = 0x2e1a, + .idProduct = 0x4c01, + .bInterfaceClass = USB_CLASS_VIDEO, + .bInterfaceSubClass = 1, + .bInterfaceProtocol = 0, + .driver_info = UVC_INFO_QUIRK(UVC_QUIRK_DISABLE_AUTOSUSPEND) }, /* Sonix Technology USB 2.0 Camera */ { .match_flags = USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_INT_INFO, -- 2.53.0