From patchwork Mon Mar 8 10:27:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pawel Laszczak X-Patchwork-Id: 12121893 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1680C43381 for ; Mon, 8 Mar 2021 10:29:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BD96465126 for ; Mon, 8 Mar 2021 10:29:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230440AbhCHK2u (ORCPT ); Mon, 8 Mar 2021 05:28:50 -0500 Received: from mx0b-0014ca01.pphosted.com ([208.86.201.193]:32988 "EHLO mx0a-0014ca01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230111AbhCHK20 (ORCPT ); Mon, 8 Mar 2021 05:28:26 -0500 Received: from pps.filterd (m0042333.ppops.net [127.0.0.1]) by mx0b-0014ca01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 128AJxKo026495; Mon, 8 Mar 2021 02:28:22 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=proofpoint; bh=27BXUSSZ/MHaVEuVakHQqwXwUOGeLmhTJpuje4Et+4k=; b=h8jA4VLABypv2avnLkFcmyXrIfNwFTnNGuJpZs+GpE2/OVStEbF0G2/+QNyNb3OGDhXN Wks8DDKtH2KsfhBxFfXOy22tP3Fh6fP2sU2JO8thHsSLNpDZy7pqTZhKgmijfBg4EocO UeJ6zmAZ8DPQ3bVIKwOB6jxDKlQFl2Qz6+nE4bcYSRvpfcDjI271yvS3941+Wu0QjiZb Tp9W3w/d25ATUubTgt/HDi2A/ZM5cAxqomzqLsk07SJXidhVzT66qEKey6vw2xfP47/g MtFBKLcKUJC1USUtDrR2Q4R2arP73cFqntZNN7F/CLTLGSC+idbf8bn6ZkZBO8TlFYiW 6g== Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2103.outbound.protection.outlook.com [104.47.70.103]) by mx0b-0014ca01.pphosted.com with ESMTP id 374674vuuj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 Mar 2021 02:28:22 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UzXhka+JO9RhMOfRpKZgttDQofJrvwkKnFQw8g/p3UKOHfDefQhDAT9hFbx8yga2Ayz4a2V0JjQE6uyQVEvOZXzwkC5ySR6H69d5btu/u2BWlSFPCQKrhh3DWBjWknfp+T0OXZZpE1aOzgNHXD1/9MtKRIuB7fhdEKxeuCBNjg3NDjDFhvk+FKjJaffAtxgl5AGTTsBAOyvB5Xy/lXsw+z+Qpukes23YvMnFtPM6UTyrm+E51tvglocg9fYMHv6JD+8/LmAZSrsfm7gP1satb+K+MkowcUhzsurOq+HG3OEx/QSlTLre+WbJj3op9NY+K1NKko0nOFgDuCP9PAKASw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=27BXUSSZ/MHaVEuVakHQqwXwUOGeLmhTJpuje4Et+4k=; b=n0/Vho2FCKSuCtPOuXGkSwjJMUxrGZRrEGjdjwHGsHLD/uDNHrynxADMtTLHyYGmZT/Yohd/bCetVGGYO/7En54qz6cgcxN73GWpwXA3xyowaLZSJe4MR7224CChzlctCKKxKWCd7OW50VkK87WO33AWRtaPfyDVOvHGk6LFGxb6vqeXKFUptv5mZpAbc3z0fIxM/QHg2f6S/BSnk45TT60BU0J4e2XHMmCbLrU2S8rxe58zqkX/aIF3cc09d1pFNr2dE/H+VFS3G4uFb6XzPbAWnISwV3yPitZVqTba5vsKrA46Qm/IlQ+lghBVgSYiZkIHGgvr0npvGi2BDE1Seg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 158.140.1.148) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=cadence.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=cadence.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=27BXUSSZ/MHaVEuVakHQqwXwUOGeLmhTJpuje4Et+4k=; b=H05pehvn1JJFa8L58MOKMB4BZMbwJcH9XnQVXvl8LMKmfRQ45RJixnYWSPmu2uOU9i8lj4V2jTJdAsOZWqLDNu4EhLqiuf5UKi8bZ9zJZ5KT1hiQzuxDmFrOg297UJH9/HjsNTMX0vrk2MlyDCInxtvlqfdbB4Ttp5Uuirk1AlQ= Received: from DM6PR03CA0014.namprd03.prod.outlook.com (2603:10b6:5:40::27) by BN8PR07MB6210.namprd07.prod.outlook.com (2603:10b6:408:b5::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.23; Mon, 8 Mar 2021 10:28:20 +0000 Received: from DM6NAM12FT061.eop-nam12.prod.protection.outlook.com (2603:10b6:5:40:cafe::a4) by DM6PR03CA0014.outlook.office365.com (2603:10b6:5:40::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17 via Frontend Transport; Mon, 8 Mar 2021 10:28:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 158.140.1.148) smtp.mailfrom=cadence.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=pass action=none header.from=cadence.com; Received-SPF: Pass (protection.outlook.com: domain of cadence.com designates 158.140.1.148 as permitted sender) receiver=protection.outlook.com; client-ip=158.140.1.148; helo=sjmaillnx2.cadence.com; Received: from sjmaillnx2.cadence.com (158.140.1.148) by DM6NAM12FT061.mail.protection.outlook.com (10.13.179.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.16 via Frontend Transport; Mon, 8 Mar 2021 10:28:20 +0000 Received: from maileu3.global.cadence.com (maileu3.cadence.com [10.160.88.99]) by sjmaillnx2.cadence.com (8.14.4/8.14.4) with ESMTP id 128ASHYS028203 (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256 verify=OK); Mon, 8 Mar 2021 02:28:19 -0800 X-CrossPremisesHeadersFilteredBySendConnector: maileu3.global.cadence.com Received: from maileu3.global.cadence.com (10.160.88.99) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 8 Mar 2021 11:28:04 +0100 Received: from gli-login.cadence.com (10.187.128.100) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Mon, 8 Mar 2021 11:28:04 +0100 Received: from gli-login.cadence.com (localhost [127.0.0.1]) by gli-login.cadence.com (8.14.4/8.14.4) with ESMTP id 128AS4ZG010553; Mon, 8 Mar 2021 11:28:04 +0100 Received: (from pawell@localhost) by gli-login.cadence.com (8.14.4/8.14.4/Submit) id 128AS3qo010552; Mon, 8 Mar 2021 11:28:03 +0100 From: Pawel Laszczak To: , CC: , , , , , , Pawel Laszczak Subject: [PATCH 1/2] usb: gadget: uvc: Updating bcdUVC field to 0x0110 Date: Mon, 8 Mar 2021 11:27:34 +0100 Message-ID: <20210308102735.9251-1-pawell@gli-login.cadence.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-OrganizationHeadersPreserved: maileu3.global.cadence.com X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 06c91725-f93a-4cf8-1a74-08d8e21ce52c X-MS-TrafficTypeDiagnostic: BN8PR07MB6210: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1107; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XSctOznHGEt6CNnnsppR9i417+YiBkdZeQrxvlXtYHOLDHcXEOEAORQZ8HkmgR6dbgODHx3buJkc0BXcW3m1GJbhldp4TFTGgCEnM9zi93GiWvb/i3UTvOk4b41e+hTcO3XSM8uv0atDe7AfanKQMjbbr7EAoz/G+4rpdMQYh2dlhQTL8ANOuLKNhtcweeKUQ7X1McyqUv9Uu6hIdfXGUaTzEez24TeDd4t/EAGjdSf9lfcdqgQWytyWSZtTI1t6pSeAjBtoDgNS7RI004b0SCZ66TTYHnmU/48AZ8jW6cdOuiPaGBuhTZN/KBhW7ZmPDdb7GhEivZl6RbFQUyuN7mJKXKCyT36Zs1Kb2zz0XVgCgjUR8cXdUrLKfvm0daQ9KeJvToAUKS2Wvb1oqKtLTZSm4qBxH3m0Xornyg6W/XbGnFrXP2rRtcyB0KuFHmuRqzVQvEatQ2UfP0r87hymIzwYheqSbnf+Ph5S+OcQ0uWs6zXCb3l62+IslSA3naZ+wFiQhhIhraX9B2LcSipfEf81SNBRibI/RN71aALpTist2VU3nLqhxvWb/nxJ+qNbX6TaEDR7+uyX3g7bh2P2dcbf9mtLL4W5NnpkLK/+OzCMrm2GGzKU7hpoCTz4PObNpV24t88kvo63aLUEiUfBueRdhFJDErFyudZ78vGYut8uoOzigGuPEB4dcHNi4ZO/ X-Forefront-Antispam-Report: CIP:158.140.1.148;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:sjmaillnx2.cadence.com;PTR:unknown.Cadence.COM;CAT:NONE;SFS:(4636009)(346002)(136003)(376002)(39860400002)(396003)(36092001)(36840700001)(46966006)(66574015)(356005)(426003)(478600001)(316002)(336012)(47076005)(82740400003)(8936002)(8676002)(2906002)(70206006)(36860700001)(7636003)(5660300002)(186003)(83380400001)(54906003)(26005)(4326008)(110136005)(86362001)(82310400003)(6666004)(70586007)(1076003)(107886003)(42186006)(36906005);DIR:OUT;SFP:1101; X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2021 10:28:20.3740 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 06c91725-f93a-4cf8-1a74-08d8e21ce52c X-MS-Exchange-CrossTenant-Id: d36035c5-6ce6-4662-a3dc-e762e61ae4c9 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=d36035c5-6ce6-4662-a3dc-e762e61ae4c9;Ip=[158.140.1.148];Helo=[sjmaillnx2.cadence.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM12FT061.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR07MB6210 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-03-08_04:2021-03-08,2021-03-08 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_check_notspam policy=outbound_check score=0 suspectscore=0 phishscore=0 clxscore=1015 bulkscore=0 impostorscore=0 priorityscore=1501 spamscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=654 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103080054 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Pawel Laszczak Command Verifier during UVC Descriptor Tests (Class Video Control Interface Descriptor Test Video) compleins about: Video Control Interface Header bcdUVC is 0x0100. USB Video Class specification 1.0 has been replaced by 1.1 specification (UVC: 6.2.26) Class Video Control Interface Descriptor bcdUVC is not 1.1 Signed-off-by: Pawel Laszczak Reviewed-by: Laurent Pinchart --- drivers/usb/gadget/function/uvc_configfs.c | 2 +- drivers/usb/gadget/legacy/webcam.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/function/uvc_configfs.c b/drivers/usb/gadget/function/uvc_configfs.c index 00fb58e50a15..cd28dec837dd 100644 --- a/drivers/usb/gadget/function/uvc_configfs.c +++ b/drivers/usb/gadget/function/uvc_configfs.c @@ -231,7 +231,7 @@ static struct config_item *uvcg_control_header_make(struct config_group *group, h->desc.bLength = UVC_DT_HEADER_SIZE(1); h->desc.bDescriptorType = USB_DT_CS_INTERFACE; h->desc.bDescriptorSubType = UVC_VC_HEADER; - h->desc.bcdUVC = cpu_to_le16(0x0100); + h->desc.bcdUVC = cpu_to_le16(0x0110); h->desc.dwClockFrequency = cpu_to_le32(48000000); config_item_init_type_name(&h->item, name, &uvcg_control_header_type); diff --git a/drivers/usb/gadget/legacy/webcam.c b/drivers/usb/gadget/legacy/webcam.c index a9f8eb8e1c76..3a61de4bb2b1 100644 --- a/drivers/usb/gadget/legacy/webcam.c +++ b/drivers/usb/gadget/legacy/webcam.c @@ -90,7 +90,7 @@ static const struct UVC_HEADER_DESCRIPTOR(1) uvc_control_header = { .bLength = UVC_DT_HEADER_SIZE(1), .bDescriptorType = USB_DT_CS_INTERFACE, .bDescriptorSubType = UVC_VC_HEADER, - .bcdUVC = cpu_to_le16(0x0100), + .bcdUVC = cpu_to_le16(0x0110), .wTotalLength = 0, /* dynamic */ .dwClockFrequency = cpu_to_le32(48000000), .bInCollection = 0, /* dynamic */ From patchwork Mon Mar 8 10:27:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pawel Laszczak X-Patchwork-Id: 12121891 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9E1EAC433E0 for ; Mon, 8 Mar 2021 10:29:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 592C36512D for ; Mon, 8 Mar 2021 10:29:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230169AbhCHK2t (ORCPT ); Mon, 8 Mar 2021 05:28:49 -0500 Received: from mx0b-0014ca01.pphosted.com ([208.86.201.193]:8490 "EHLO mx0a-0014ca01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230126AbhCHK2R (ORCPT ); Mon, 8 Mar 2021 05:28:17 -0500 Received: from pps.filterd (m0042333.ppops.net [127.0.0.1]) by mx0b-0014ca01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 128AK7PN027437; Mon, 8 Mar 2021 02:28:11 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=proofpoint; bh=OBKMP1phaAFh+09Pc1TZ37g3M8vO6rqr9IwHMoeZZIo=; b=UtMvZk3VEDF8wWHZUsyZ6NQizf3P3qY702oejojzy8dEsdH5MT3DnbStsQfsUbIpx0l4 M8GCrAooCESIkvy6zK4LDzKHNdEyQ0ihCM5CKGaT3Tfq+9NcqEOkoNvsxKAP8FjZA54Y /fb5g3tGRGm/HmM1IRA7Pwd/XJiv4+JMZtv1dypN84uOb1SbOBAeSLILYxjOzMbN5qUh wh7t5ziAR/VaIuvs0D7I8G4VA3H2FBebU6UdC4kZSF4GNlyK8OnKcimE23FIIcgHzN45 g5QCI5tZvll6wf64dsKcTddWrr8MfgP61boMWhVntA6mQ25ZmJmZHkImOtUqxH4NWXyP fw== Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41]) by mx0b-0014ca01.pphosted.com with ESMTP id 374674vuu1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 Mar 2021 02:28:11 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Exb2mYcFW1AAY++9Qk6drAGvUOm/BtCZmURcS7+EzrJApsUJk6eOQl2kdLxurick24KPpj1dj92fIoye5UoVqBI1dkWdiCF1Ntw75Qoz+lZBG8ywC7CzGkAU9BMQtouNbxT5GAoXADpFMdsUZOQnu8uJo1wB1H0UMEMLdp74q+PBQiRrn6d9uiU+drdFGxtb5Xy39ceefa+fLJkrllTmDlm/qrht65egdanukMuFULn8UWIytAv5er1sGb+DaQKvt3ThunSwYWLba2Eq4+jDZFm721hJ2rrw3AZJmyHk6x0cGCYtGtrkrbN2EP0oep3/EqO+DTwJWrBEVOfNERLdYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OBKMP1phaAFh+09Pc1TZ37g3M8vO6rqr9IwHMoeZZIo=; b=XWjZK28vjn9wdaTcDYSak8F1cZFRt/HvlpwQIm4j1tDeGoKgpQriIampHS6zgDhkNgMIDqYnmd5BD2T/1GkU+Ar5Ldr9CvQzYsDMe9ozKuwawcfqmMBfIkV8akO/8eqQK36Icqy0wt1zKEvEgO9RyBNNLsIMyY2buJ3mZobhxVLQ7dbpBtCRgPXxSBNkz92H/zlt7zPHjQyzxvYONSDeXl9x/f9+E5h9oql+2Up7XwrN5Dz9tZN2xPbXQFsd3fGQfsNckGhwpHjC5Y97o6LCC0WW7Cly4i4ekIXCPbTWCIY0ewJ2EulWyzcv/leC+opEEFLzo6xJ8c+3XRzj7D+7fA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 158.140.1.147) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=cadence.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=cadence.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OBKMP1phaAFh+09Pc1TZ37g3M8vO6rqr9IwHMoeZZIo=; b=7DWy3NrrFhoSuTThw+Q3Kb7HOxqRafd/JNU0csWtI4BhN7q4lC2TvbAG0ImBSITM4nxayE1F3Jv2bNGkYE9h0Xft0MWXUP4u/IJESf2HWf2bg36ZJ/NVQmeiS5cigmsiAcgXcZalduVqddk5dxZaEg9nppx//pejE+3YwadmCzc= Received: from MW2PR16CA0016.namprd16.prod.outlook.com (2603:10b6:907::29) by MWHPR07MB3535.namprd07.prod.outlook.com (2603:10b6:301:63::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.26; Mon, 8 Mar 2021 10:28:08 +0000 Received: from MW2NAM12FT005.eop-nam12.prod.protection.outlook.com (2603:10b6:907:0:cafe::96) by MW2PR16CA0016.outlook.office365.com (2603:10b6:907::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17 via Frontend Transport; Mon, 8 Mar 2021 10:28:08 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 158.140.1.147) smtp.mailfrom=cadence.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=pass action=none header.from=cadence.com; Received-SPF: Pass (protection.outlook.com: domain of cadence.com designates 158.140.1.147 as permitted sender) receiver=protection.outlook.com; client-ip=158.140.1.147; helo=sjmaillnx1.cadence.com; Received: from sjmaillnx1.cadence.com (158.140.1.147) by MW2NAM12FT005.mail.protection.outlook.com (10.13.180.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.16 via Frontend Transport; Mon, 8 Mar 2021 10:28:08 +0000 Received: from maileu3.global.cadence.com (maileu3.cadence.com [10.160.88.99]) by sjmaillnx1.cadence.com (8.14.4/8.14.4) with ESMTP id 128AS6Ag003739 (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256 verify=OK); Mon, 8 Mar 2021 02:28:07 -0800 X-CrossPremisesHeadersFilteredBySendConnector: maileu3.global.cadence.com Received: from maileu3.global.cadence.com (10.160.88.99) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 8 Mar 2021 11:28:05 +0100 Received: from gli-login.cadence.com (10.187.128.100) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Mon, 8 Mar 2021 11:28:05 +0100 Received: from gli-login.cadence.com (localhost [127.0.0.1]) by gli-login.cadence.com (8.14.4/8.14.4) with ESMTP id 128AS42d010561; Mon, 8 Mar 2021 11:28:04 +0100 Received: (from pawell@localhost) by gli-login.cadence.com (8.14.4/8.14.4/Submit) id 128AS4sx010560; Mon, 8 Mar 2021 11:28:04 +0100 From: Pawel Laszczak To: , CC: , , , , , , Pawel Laszczak Subject: [PATCH 2/2] usb: webcam: Invalid size of Processing Unit Descriptor Date: Mon, 8 Mar 2021 11:27:35 +0100 Message-ID: <20210308102735.9251-2-pawell@gli-login.cadence.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210308102735.9251-1-pawell@gli-login.cadence.com> References: <20210308102735.9251-1-pawell@gli-login.cadence.com> MIME-Version: 1.0 X-OrganizationHeadersPreserved: maileu3.global.cadence.com X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0974b368-4b14-4089-7f15-08d8e21cddf5 X-MS-TrafficTypeDiagnostic: MWHPR07MB3535: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Pc22cPqdhWL+NpVoy38jKrM6xpeP+uEDu219PLUAEmi3J4dO9JhF4oKyk0E7sx6rhkG8mTFszFCRRkpbguQJQSdHJBKuoYE9GggMoJPZCSxsZkRms7KpwCsL61l9Gi+Iz/mjL8AZNsPGNHskFfb5M5ppcjV2C939UexBAeE1cmyX4MGY2rTi9wIQdTDog/BO2wIVvaOn+B7gStyYaUc8tkOoSNwpatVby5H8q0UlEVzQ73No5TA4YQsweUjrRecPv1urKKPTG0gvEnCsZXr08zm/rzVE9ke1pq0dAehLBvEIc7UsPARAj2EpmDO4us6GyFsnRAt6Qi5HCeWov7z0zD2Lh3ueNuHBXVoL3pLI+6nT0WCOY9vyFNGr4LulcS6F3FYBG+5bRi97IAcxrW6mqOMSpvSyce/+DzU+xKGbKlbeK4/2kccywshOYKCRI+XidFz18MPX8XfKQc8ym5JpxjynYTdRQsABOmREUE0TOlufAXJxxxBKJ0OtZ7F4TDrPuwYGlNE19fYLZvCxxtPdeykjf+JANS30ZhUonCsqFyEw8rHV7jIDW75Q7w8LWcvcb4GFkkfdYHFzKlVSWejHnPDIZ9S31/+0LpOeAD7vagdr7/F1jPs6jolItoaZdrnpAQ6ZJx8mRkPAb2R0Tmcm7onw2Axq/Vy0W/Pg3Tuxh3iVUMOq6oiO3V02roiwCxxf X-Forefront-Antispam-Report: CIP:158.140.1.147;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:sjmaillnx1.cadence.com;PTR:unknown.Cadence.COM;CAT:NONE;SFS:(4636009)(136003)(39860400002)(396003)(376002)(346002)(36092001)(46966006)(36840700001)(70206006)(478600001)(110136005)(70586007)(86362001)(2906002)(107886003)(5660300002)(4326008)(316002)(6666004)(36860700001)(186003)(8676002)(8936002)(42186006)(36906005)(7636003)(26005)(54906003)(1076003)(82740400003)(47076005)(82310400003)(336012)(4744005)(356005)(426003);DIR:OUT;SFP:1101; X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2021 10:28:08.3200 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0974b368-4b14-4089-7f15-08d8e21cddf5 X-MS-Exchange-CrossTenant-Id: d36035c5-6ce6-4662-a3dc-e762e61ae4c9 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=d36035c5-6ce6-4662-a3dc-e762e61ae4c9;Ip=[158.140.1.147];Helo=[sjmaillnx1.cadence.com] X-MS-Exchange-CrossTenant-AuthSource: MW2NAM12FT005.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3535 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-03-08_04:2021-03-08,2021-03-08 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_check_notspam policy=outbound_check score=0 suspectscore=0 phishscore=0 clxscore=1011 bulkscore=0 impostorscore=0 priorityscore=1501 spamscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=748 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103080054 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Pawel Laszczak According with USB Device Class Definition for Video Device the Processing Unit Descriptor bLength should be 12 (10 + bmControlSize), but it has 11. Invalid length caused that Processing Unit Descriptor Test Video form CV tool failed. To fix this issue patch adds bmVideoStandards into uvc_processing_unit_descriptor structure. Signed-off-by: Pawel Laszczak Reviewed-by: Laurent Pinchart --- include/uapi/linux/usb/video.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/usb/video.h b/include/uapi/linux/usb/video.h index d854cb19c42c..2a54e8fdd341 100644 --- a/include/uapi/linux/usb/video.h +++ b/include/uapi/linux/usb/video.h @@ -302,6 +302,7 @@ struct uvc_processing_unit_descriptor { __u8 bControlSize; __u8 bmControls[2]; __u8 iProcessing; + __u8 bmVideoStandards; } __attribute__((__packed__)); #define UVC_DT_PROCESSING_UNIT_SIZE(n) (9+(n))