Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7019395ybi; Mon, 22 Jul 2019 05:48:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzE3/uK8IqKjQ0pMnRaowJ5GVQfF+kEWlmf5ZbHkd8B4aMCaT23X+lLpowb2gsomo/JCkd7 X-Received: by 2002:a17:902:968d:: with SMTP id n13mr27717696plp.257.1563799729529; Mon, 22 Jul 2019 05:48:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563799729; cv=none; d=google.com; s=arc-20160816; b=RHanCDhReP3AfTr4Lc7CqNpuSH+2bI1rRxhr7FfGvwtPZr23eCWkDwbvVZ4XBGFCDI w4EairhSaIQu9T3VjCfh7oYypTEnUeVMzz5BFUZ8n99XKqN9zy71nNY2dImNZzvSUn8n Grj9TubtR3JoN7gfCvXK2HIXX6gv2nHkuI08ifXt+g49Qv7eNlJ73X8BJgOtDZUCeZiW bg3vxz9XE75Ce49gHXhDBJY3C26I3q8ft/vcmos/OJNyDz1MJiXtZu+x4ihIpYLPOR/R 5Iu8oAMsUpB1mKbLYYocEoXDsx9Bj7+AYOdSB1ZNUkzouDRcxfLIkXy+HwGQVpAQo2fH Fbtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KEgMDJe/6Ldq9isY7thAFrfbq9xcnEKcaRIIBNhqi1w=; b=yffLsXM+fTqUEgQfZjIGzIk1WjomNBojp6fpwHlqz+mg/jisoQBpXcXYeKJu/Um6lJ Z0z3t3Rgqsnje6Psj5UJ0RCuv74NieGvd7W3V23lCH4UNGwGIfT9T1RfH0hT8pXZF3b3 ZSZAiXceW7Ga94f+fBmtToqvakNt1lRXDaiArvk8tqRLT6Vfm9C3ZnqjL8O5QlZtC+Kr xXEIWuMQqJyQqifBsT0c8Fz1sRZkbfY+ywKBTi+/Dp3xrzrDb2G7d4aC8MjGKc8Hzdb7 +andT0GFXMesKZPfXx5LTwSUBb2PCeiK/s58Ic7SHmZbMqXafs88+AlWAElaaLmCxaVb bS4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oYOcVUTx; 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 64si8095190ply.399.2019.07.22.05.48.33; Mon, 22 Jul 2019 05:48:49 -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; dkim=pass header.i=@kernel.org header.s=default header.b=oYOcVUTx; 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 S1730000AbfGVLtT (ORCPT + 99 others); Mon, 22 Jul 2019 07:49:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:48560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728929AbfGVLtT (ORCPT ); Mon, 22 Jul 2019 07:49:19 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5FCA32184E; Mon, 22 Jul 2019 11:49:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563796158; bh=lfCsJto9RujbowCe09F/3388kpRaij+nFMO9+8CcYSw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oYOcVUTx5ataZt6ry78DD/qh6hiSk+JEEayS9GoSUcHP8EL5tZtnwTWIZ7IYvadoS hVw7qKAY4taSUGTuqorqgYB9aMoexAgwCZFFNrAl/YTVvsCtsxHz/SpFimDP3/r1p6 Y+V8Fvn1BdDDBCeByBv3mLVmVCcm1v9/23E8bVmY= Date: Mon, 22 Jul 2019 13:49:15 +0200 From: "gregkh@linuxfoundation.org" To: Pawel Laszczak Cc: Joe Perches , "felipe.balbi@linux.intel.com" , "linux-usb@vger.kernel.org" , "rogerq@ti.com" , "linux-kernel@vger.kernel.org" , "jbergsagel@ti.com" , "nsekhar@ti.com" , "nm@ti.com" , Suresh Punnoose , Jayshri Dajiram Pawar , Rahul Kumar , Anil Joy Varughese Subject: Re: [PATCH v10 2/6] usb:common Separated decoding functions from dwc3 driver. Message-ID: <20190722114915.GB10515@kroah.com> References: <1563733939-21214-1-git-send-email-pawell@cadence.com> <1563733939-21214-3-git-send-email-pawell@cadence.com> <4d4a8a02e4ec7fad9213302d17a6acd17851d8da.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 22, 2019 at 10:06:38AM +0000, Pawel Laszczak wrote: > Hi, > > > > >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 my opinion it's ok in this place. It's consistence with USB specification ch9 and with > https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/usb/ch9.h. (look at usb_ctrlrequest). Yes, this is fine, the USB subsystem has this everywhere, and we all know exactly what it means when we see it. thanks, greg k-h