Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1295184ybi; Sat, 8 Jun 2019 06:42:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzn3p4xZBmak710RVp380Or2JVSFOZ+R6omKEr2F0ieeCn9zlyQgsn/8ST5KKf9q5DknJD4 X-Received: by 2002:a17:902:14e:: with SMTP id 72mr62792522plb.36.1560001323069; Sat, 08 Jun 2019 06:42:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560001323; cv=none; d=google.com; s=arc-20160816; b=yzvlvdgrqctbvS0LNk85mSNE2UL0SUXOOeLJFZOgrKmt4AcsvQgSOhke2GSSfhYVtF DbOFh6avDWLvycKiYmA2XtuPtusCAFLPux43X4Wvv2zSTVnjyImxE8H88CAhslKDOQWM Smc9jZp4Jt7Pd4cmE0Oz6coXwSnDt8sAMK1GlRCLePGOZhD6FlUYi7Bd0w+F0Vz+T5p9 5DcE9zGhTgNebGrmjUHtf9JWU9uXtj4rzwcssjpgry6q/RVZV5NdJyB3TTLG+xwyk+ef oucKzOayLryfOYwnz/rej69PyMIar1eP2JQkKGMB1B7DdGm3/sTUTgk0FSmBCNYBslrn 3DUQ== 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=M6esHlCIrbJYEWOtQvE97uOx0yadRrrmfbu5AzWCaRc=; b=BUYp+kcK7dZtGC3aLfEgZvXn5eaAQSDYMV/0FcQl2DAu9XIn7+oLfUDLo87ad/6XwI uzzdgf6Z+Ny+PJO3W+4Nd1N9jSoclGRa8UkGgyTXuAUol/Ti9Pc5LvteQz9z73beOiMa QMQeyozwGtjnoKP9cyDggCLtiN9d7slA+SJvV/Q1og2Et6nO9Fkih2wq9ZkFAfVQMykh vJa2xUxdkmNW5ATLi0yBUGkvOkfmjqCDBj92afEwamsuiyolPciEDbd3oqNN+CS/x6YJ C3fVichZ7C5CDGw9Eig/mu0D7VFCuoWWreNAsUoNiXem3p4rkhMRaQXvqYrDM0N27vgJ /zVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m73bra1Z; 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 h5si4463574pjs.96.2019.06.08.06.41.46; Sat, 08 Jun 2019 06:42:03 -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=m73bra1Z; 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 S1727211AbfFHNkL (ORCPT + 99 others); Sat, 8 Jun 2019 09:40:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:56536 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbfFHNkL (ORCPT ); Sat, 8 Jun 2019 09:40:11 -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 E242D214C6; Sat, 8 Jun 2019 13:40:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560001210; bh=J92X63eJnF4/ZVdxVIzn3vP2M1eHZgcHuOyotC/SU70=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=m73bra1Z+41F0rgW/uhg+IO5K040f0AtsUsJDeViRz2rbmwBQHi02yq9+vforBjdz McI+37imngbfGlmpzulh2QG7T5hy9uGJCLBinLya2e6DcmT+M0SRJCe5BLMJuNgylf O3SlY3L1djbLQDYAsNPNro2UzNxTEWRYVUHcHg6E= Date: Sat, 8 Jun 2019 15:40:08 +0200 From: Greg KH To: Pawel Laszczak Cc: devicetree@vger.kernel.org, felipe.balbi@linux.intel.com, linux-usb@vger.kernel.org, hdegoede@redhat.com, heikki.krogerus@linux.intel.com, robh+dt@kernel.org, rogerq@ti.com, linux-kernel@vger.kernel.org, jbergsagel@ti.com, nsekhar@ti.com, nm@ti.com, sureshp@cadence.com, peter.chen@nxp.com, jpawar@cadence.com, kurahul@cadence.com Subject: Re: [PATCH v7 2/6] usb:common Separated decoding functions from dwc3 driver. Message-ID: <20190608134008.GB11489@kroah.com> References: <1559729030-16390-1-git-send-email-pawell@cadence.com> <1559729030-16390-3-git-send-email-pawell@cadence.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1559729030-16390-3-git-send-email-pawell@cadence.com> User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 05, 2019 at 11:03:46AM +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: > dwc3_decode_get_status > dwc3_decode_set_clear_feature > dwc3_decode_set_address > dwc3_decode_get_set_descriptor > dwc3_decode_get_configuration > dwc3_decode_set_configuration > dwc3_decode_get_intf > dwc3_decode_set_intf > dwc3_decode_synch_frame > dwc3_decode_set_sel > dwc3_decode_set_isoch_delay > dwc3_decode_ctrl > > These functions are used also in inroduced cdns3 driver. > > All functions prefixes were changed from dwc3 to usb. > Also, function's parameters has been extended according to the name > of fields in standard SETUP packet. > Additionally, patch adds usb_decode_ctrl function to > include/linux/usb/ch9.h file.i > > Signed-off-by: Pawel Laszczak > --- > drivers/usb/common/Makefile | 2 +- > drivers/usb/common/debug.c | 273 ++++++++++++++++++++++++++++++++++++ > drivers/usb/dwc3/debug.h | 252 --------------------------------- > drivers/usb/dwc3/trace.h | 2 +- > include/linux/usb/ch9.h | 25 ++++ > 5 files changed, 300 insertions(+), 254 deletions(-) > create mode 100644 drivers/usb/common/debug.c > > diff --git a/drivers/usb/common/Makefile b/drivers/usb/common/Makefile > index 0a7c45e85481..02eb01666289 100644 > --- a/drivers/usb/common/Makefile > +++ b/drivers/usb/common/Makefile > @@ -4,7 +4,7 @@ > # > > obj-$(CONFIG_USB_COMMON) += usb-common.o > -usb-common-y += common.o > +usb-common-y += common.o debug.o > usb-common-$(CONFIG_USB_LED_TRIG) += led.o > > obj-$(CONFIG_USB_OTG_FSM) += usb-otg-fsm.o > diff --git a/drivers/usb/common/debug.c b/drivers/usb/common/debug.c > new file mode 100644 > index 000000000000..f7218d794aa6 > --- /dev/null > +++ b/drivers/usb/common/debug.c > @@ -0,0 +1,273 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/** > + * Common USB debugging functions > + * > + * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com > + * > + * Authors: Felipe Balbi , > + * Sebastian Andrzej Siewior > + */ > + > +#ifndef __LINUX_USB_COMMON_DEBUG > +#define __LINUX_USB_COMMON_DEBUG Why are you doing thsi in a .c file? thanks, greg k-h