From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9657E245028; Mon, 31 Mar 2025 14:56:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743432993; cv=none; b=ifOrH8h3C1jiHmeSaSFD3RFmSYbAh2HtTuHEZiExxTthVKc2eZQfSsPvvV0EE7yYW41TVaSb576kx+mWjMiiqnMLzfsoOZmm1fgPY8wkQdQClFnqpF24Rsu9sxyX/gffRm9Ahxt6zJTieVi6xXQu10wedyU0Z/vgFHe5gQoFeaA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743432993; c=relaxed/simple; bh=Qzd79ao6E4FeDqIe4LBC5XzzgCEIvhHJOhoKsCBkaZo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=F69N5gzV/15XZJema8q6EVydY9qJXVR+bjYdIZQNd/H1sP+lO44t7JpiNzt55v6Nj7NgutJTngINI8b4hio03ELKYQzxi//SJI05dF5qO1xcPYXIWOwGd/6ZYy/2X0oO/5w+1Lxat3KgQBTdTcuRDMrjJH5VqbkFtCRfugWu37o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XVJ7Umjh; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XVJ7Umjh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6AACCC4CEE3; Mon, 31 Mar 2025 14:56:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1743432993; bh=Qzd79ao6E4FeDqIe4LBC5XzzgCEIvhHJOhoKsCBkaZo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XVJ7UmjhGCmAAi7gmH9yDwFhQyLUjjZn3mP6e1S+rq345r6f/RX8aUmrg22hw/NkQ aAA7hwsIowSkx+yPPvTjnBpOoBRWwLgCKuG/gN+EEAu6M2E/u3kcXFSIXKvL5A77jm jTdOt8hJLO2PA3LOix1vO1ldsV5WpliYkCDUwCPb6llBfmd99qFe/lP8pQhvzcrA2N L/rLcP75rAvj8+nQ6KXTANDE43jprdx1d8dCERVhKr4LgmHo9vzzvsvgNzVxBUtCUq EmgPu19stQG2ImmGRgwD2CUdSu8+MRYx8bkj0PGXGtRZOUL7i9936TUiBFx3jvEzUD XAVIt3+3j+ahA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Ricardo Ribalda , Laurent Pinchart , Hans Verkuil , Sasha Levin , hdegoede@redhat.com, mchehab@kernel.org, linux-media@vger.kernel.org Subject: [PATCH AUTOSEL 6.6 15/19] media: uvcvideo: Add quirk for Actions UVC05 Date: Mon, 31 Mar 2025 10:55:56 -0400 Message-Id: <20250331145601.1705784-15-sashal@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250331145601.1705784-1-sashal@kernel.org> References: <20250331145601.1705784-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.6.85 Content-Transfer-Encoding: 8bit From: Ricardo Ribalda [ Upstream commit 8c54e58f94ed3ff28643aefd2c0c2c98313ee770 ] Actions UVC05 is a HDMI to USB dongle that implements the UVC protocol. When the device suspends, its firmware seems to enter a weird mode when it does not produce more frames. Add the device to the quirk list to disable autosuspend. Bus 001 Device 007: ID 1de1:f105 Actions Microelectronics Co. Display capture-UVC05 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 239 Miscellaneous Device bDeviceSubClass 2 [unknown] bDeviceProtocol 1 Interface Association bMaxPacketSize0 64 idVendor 0x1de1 Actions Microelectronics Co. idProduct 0xf105 Display capture-UVC05 bcdDevice 4.09 iManufacturer 1 Actions Micro iProduct 2 Display capture-UVC05 iSerial 3 -1005308387 bNumConfigurations 1 Signed-off-by: Ricardo Ribalda Reviewed-by: Laurent Pinchart Link: https://lore.kernel.org/r/20241210-uvc-hdmi-suspend-v1-1-01f5dec023ea@chromium.org Signed-off-by: Laurent Pinchart Signed-off-by: Hans Verkuil Signed-off-by: Sasha Levin --- drivers/media/usb/uvc/uvc_driver.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c index ae2e8bd2b3f73..02cfa12b9cb90 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -3116,6 +3116,15 @@ static const struct usb_device_id uvc_ids[] = { .bInterfaceProtocol = 0, .driver_info = UVC_INFO_QUIRK(UVC_QUIRK_PROBE_MINMAX | UVC_QUIRK_IGNORE_SELECTOR_UNIT) }, + /* Actions Microelectronics Co. Display capture-UVC05 */ + { .match_flags = USB_DEVICE_ID_MATCH_DEVICE + | USB_DEVICE_ID_MATCH_INT_INFO, + .idVendor = 0x1de1, + .idProduct = 0xf105, + .bInterfaceClass = USB_CLASS_VIDEO, + .bInterfaceSubClass = 1, + .bInterfaceProtocol = 0, + .driver_info = UVC_INFO_QUIRK(UVC_QUIRK_DISABLE_AUTOSUSPEND) }, /* NXP Semiconductors IR VIDEO */ { .match_flags = USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_INT_INFO, -- 2.39.5