Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6303248ybi; Sun, 21 Jul 2019 14:29:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1vWmzMB9SCYqxdmdAupEty1jLs7YqT0oAdqEDWtcNHzQZi2L0Rlh164LNmPqHM8UxgXhs X-Received: by 2002:a17:902:be15:: with SMTP id r21mr70183617pls.293.1563744563100; Sun, 21 Jul 2019 14:29:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563744563; cv=none; d=google.com; s=arc-20160816; b=mufMGwGSzwmlG8xqcNizE0FdAj79XpgN7ohGIy/gv4/oLqvgkSRQn5j29wTmzrxfLf o3XIw3zMIo7/v8C6NgsI/DXbmAG4LDZdDIuYYzFB+wtV2ZJ359lOITwTY2hP1tlYj1gs KmbCtpaQYbzCHRv5UkzDTtp/oM584ECTxCg3a7eSYizb8M6ADmYhgxoKFSPGkM4le3qF gawRpNvIY/gmc10bzxu7kcQ+FjC83803Cu0Ktn6Hs5fdJafN7IO7m5ArTpIQGT7E2PzX LqLLYIlFXZhXYBmx20JGr1vps3SGdraErG/KpsmXko2WykO5iFF3QykqhFz0Q1vfmvdd j++w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=fLdXFAFmcebMWbtmyTaYJd2RmJ0gtIHFH0+F2kH9ou8=; b=ZLiqjNIyXFTeq7wIW8b7z6RqCnAoibofNHOVktuVdqqeJKfkdlbRDoRAKwHnN7uGVZ 74aIYd6g4MH1zL5dQUe2G4qiMWIctxJtTIJh04Hjk5rpd6IEdF7SyOpWN0k1WvE0sI07 5wmWGIhYtwrVUXJ0xVEliyaV7RHfhlAXQ2KJWG5neSMA3fAV+mcmx34pX0cYyPfqizBZ uonvuHtuT1R8IsdPgEZm9UV2XlbzSemFD/jEkpodUb9eCRc7EPSTATir0loOivzSk2g4 qfbfd3eSo17EgO3D3ZKabYe0sCWnABMILkRs43s44UFJC9YoPDCm3Z3QHDqaZH4cyT6n dLgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2si7146499pjy.48.2019.07.21.14.29.07; Sun, 21 Jul 2019 14:29:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726293AbfGUUyl (ORCPT + 99 others); Sun, 21 Jul 2019 16:54:41 -0400 Received: from smtprelay0068.hostedemail.com ([216.40.44.68]:45604 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726233AbfGUUyl (ORCPT ); Sun, 21 Jul 2019 16:54:41 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id C6CE9283D; Sun, 21 Jul 2019 20:54:39 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::::,RULES_HIT:41:355:379:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1801:1981:2110:2194:2199:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3872:4250:4321:4605:5007:6742:8603:8957:9008:10004:10400:10848:11026:11232:11233:11658:11914:12043:12296:12297:12438:12740:12760:12895:13069:13161:13229:13311:13357:13439:14096:14097:14659:21080:21433:21627:30012:30030:30054:30090:30091,0,RBL:23.242.196.136:@perches.com:.lbl8.mailshell.net-62.8.0.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:26,LUA_SUMMARY:none X-HE-Tag: badge91_457dfadbc403e X-Filterd-Recvd-Size: 2397 Received: from XPS-9350.home (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf02.hostedemail.com (Postfix) with ESMTPA; Sun, 21 Jul 2019 20:54:37 +0000 (UTC) Message-ID: <817d0c88a2764ef07b4169bd0e2632f3e78c47d8.camel@perches.com> Subject: Re: [PATCH v10 2/6] usb:common Separated decoding functions from dwc3 driver. From: Joe Perches To: Alan Stern Cc: Pawel Laszczak , felipe.balbi@linux.intel.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, rogerq@ti.com, linux-kernel@vger.kernel.org, jbergsagel@ti.com, nsekhar@ti.com, nm@ti.com, sureshp@cadence.com, jpawar@cadence.com, kurahul@cadence.com, aniljoy@cadence.com Date: Sun, 21 Jul 2019 13:54:35 -0700 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.5-0ubuntu0.18.10.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2019-07-21 at 16:45 -0400, Alan Stern wrote: > On Sun, 21 Jul 2019, Joe Perches wrote: > > > On Sun, 2019-07-21 at 19:32 +0100, Pawel Laszczak wrote: > > > Patch moves some decoding functions from driver/usb/dwc3/debug.h driver > > > to driver/usb/common/debug.c file. These moved functions include: > > [] > > > diff --git a/drivers/usb/common/debug.c b/drivers/usb/common/debug.c > > [] > > > +static void usb_decode_set_clear_feature(__u8 bRequestType, __u8 bRequest, > > > + __u16 wValue, __u16 wIndex, > > > + char *str, size_t size) > > > > It's probably not necessary to use Hungarian > > when moving these functions into generic code. > > In fact, these are the well known and commonly accepted names for these > data values, as given in the USB specification and used in many other > places in the Linux USB stack. See for example the definition of > struct usb_ctrlrequest in include/uapi/linux/usb/ch9.h. > > Changing them here would only make the code less readable. Perhaps, but these have already been converted from the __le types, so perhaps not. It might be more sensible to convert the __u16 uses to u16 and avoid the __le16 names. cheers, Joe