From patchwork Tue Sep 18 12:32:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 10604275 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D974B5A4 for ; Tue, 18 Sep 2018 12:32:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C722F2A852 for ; Tue, 18 Sep 2018 12:32:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BAEFA2A85C; Tue, 18 Sep 2018 12:32:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48FFC2A852 for ; Tue, 18 Sep 2018 12:32:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729747AbeIRSFB (ORCPT ); Tue, 18 Sep 2018 14:05:01 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:56866 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729447AbeIRSFB (ORCPT ); Tue, 18 Sep 2018 14:05:01 -0400 Received: from avalon.bb.dnainternet.fi (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A88E01C0C; Tue, 18 Sep 2018 14:32:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1537273957; bh=mNKYkN4tu7Mnq3XTIymxhKMyFfs/VRBDL6mwEICTWvw=; h=From:To:Cc:Subject:Date:From; b=XFkqqGM1TRp0FtEEGlN1T8lLbsX13XOOOS8FQyMx67Ao6OuBkLBlpNmaof1990sZG Z/9ZSsYDoM4u2OSfOB3TZRMMSd1x1et8jRLfKONL9Vu4ri/piWpz+M26eDLXOUHL+/ OBPBDODm7LXwGs80NtGVMJN/Z3AvmTusYBGd8Gkc= From: Laurent Pinchart To: linux-usb@vger.kernel.org Cc: kieran.bingham@ideasonboard.com, paul.elder@ideasonboard.com Subject: [PATCH 0/4] usb: gadget: uvc: Fix endianness and sign issues Date: Tue, 18 Sep 2018 15:32:43 +0300 Message-Id: <20180918123247.6927-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.16.4 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, This series addresses endianness and sign issues in the configfs support of the UVC gadget function driver. The first patch starts by fixing the endianness of various UVC descriptors to match the USB little endian order. The second patch then fixed the UVC gadget function driver to handle endianness correctly when parsing configfs attributes. The next patch goes on to simplify UVC configfs attribute macros, and the last patch finally fixes sign issues by using the correct format to print unsigned int values. Laurent Pinchart (4): usb: video: Fix endianness mismatches in descriptor structures usb: gadget: uvc: configfs: Fix operation on big endian platforms usb: gadget: uvc: configfs: Simplify attributes macros usb: gadget: uvc: configfs: Use %u to print unsigned int values drivers/usb/gadget/function/uvc_configfs.c | 241 +++++++++-------------- include/uapi/linux/usb/video.h | 304 ++++++++++++++--------------- 2 files changed, 249 insertions(+), 296 deletions(-) Reviewed-by: Paul Elder Tested-by: Paul Elder