Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3330033ybi; Fri, 5 Jul 2019 05:43:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJ9UqvsJx3c58Pk/vokOecxnqX7XOE276kqojqFF5OQd90yb/46B6k3iOf6qRsjIC605ya X-Received: by 2002:a17:90a:cb12:: with SMTP id z18mr5224835pjt.82.1562330610060; Fri, 05 Jul 2019 05:43:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562330610; cv=none; d=google.com; s=arc-20160816; b=vXrGOjacBMuv3g88gQWQlnS4Nb631G61Qfa+Eax5aupW5j+eEO8NQp9QaPb7mTcMAU uOdugxtrJkrNRt95c+rBEuAr7XcFgEz11ayqOGui2D2r0Iq2Ok/g5NV9EEZPGoPMhc2v RyCAAOXMNIhRAUGpy9CCKVk7rmBY9XO/e5evZKTX9wnvrHIY6cJ0duHZfiiUu5vy2iAV IiznX5nuO9FXpjD8FNIptJGy19i9iocNgbtAeI35FBS6Rpz3mWtY0ls2wp2LAc9Zjsqi clLOWlp3x2WemQARq3/bwCipNcaCavNBgjhHpMmjA43OxvaW3cDAZS3kZP+zj7asvw1p wuCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=ZZCPF/j/hSFuBy6D4JkE/Z95iguPEvSBbkr5eYdhO/A=; b=MA/WlfeYlu2kuUjZhig/N0MHVHDPY6PjAOBCleep/BbUG3nvExtZsAJDApEto3qgdP 1XGljsFfG+tVbykXV/IPwtrDoBfGOI1wQtJ3TKRmtPyOUdQpeczgn2OqTU3pc5gDIqtY e31TIQFwOpZjq2C4+aCgnlPzPSFnvxXxHx440qYIYOwNA+bSaBzH/s2mQ6SgzC1oe+lD OZ5ubOxvcKJtrCDDpW/xf6YFAVXORURxmBJn2jBCFhYAtPSCsv/CP4EqusAXMvWRCVGU pzTaFF9V0fLOBasJWSpbz5FCPwd54vcovRf8HRcQ9hBWOyckWqh0gVJ3ZzLJB9zBM2vv SQRg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si8528049plk.388.2019.07.05.05.43.15; Fri, 05 Jul 2019 05:43:30 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728741AbfGELja (ORCPT + 99 others); Fri, 5 Jul 2019 07:39:30 -0400 Received: from mga17.intel.com ([192.55.52.151]:45408 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727758AbfGELja (ORCPT ); Fri, 5 Jul 2019 07:39:30 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Jul 2019 04:39:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,454,1557212400"; d="scan'208";a="155261669" Received: from pipin.fi.intel.com (HELO pipin) ([10.237.72.175]) by orsmga007.jf.intel.com with ESMTP; 05 Jul 2019 04:39:25 -0700 From: Felipe Balbi To: Pawel Laszczak , devicetree@vger.kernel.org Cc: gregkh@linuxfoundation.org, 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, Pawel Laszczak Subject: Re: [PATCH v9 2/6] usb:gadget Separated decoding functions from dwc3 driver. In-Reply-To: <1562324238-16655-3-git-send-email-pawell@cadence.com> References: <1562324238-16655-1-git-send-email-pawell@cadence.com> <1562324238-16655-3-git-send-email-pawell@cadence.com> Date: Fri, 05 Jul 2019 14:39:24 +0300 Message-ID: <87tvc0lngz.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Pawel Laszczak writes: > diff --git a/include/linux/usb/ch9.h b/include/linux/usb/ch9.h > index da82606be605..d388a3a5ab7e 100644 > --- a/include/linux/usb/ch9.h > +++ b/include/linux/usb/ch9.h > @@ -70,4 +70,29 @@ extern enum usb_device_speed usb_get_maximum_speed(struct device *dev); > */ > extern const char *usb_state_string(enum usb_device_state state); > > +/** > + * usb_decode_ctrl - Returns human readable representation of control request. > + * @str: buffer to return a human-readable representation of control request. > + * This buffer should have about 200 bytes. > + * @size: size of str buffer. > + * @bRequestType: matches the USB bmRequestType field > + * @bRequest: matches the USB bRequest field > + * @wValue: matches the USB wValue field (CPU byte order) > + * @wIndex: matches the USB wIndex field (CPU byte order) > + * @wLength: matches the USB wLength field (CPU byte order) > + * > + * Function returns decoded, formatted and human-readable description of > + * control request packet. > + * > + * The usage scenario for this is for tracepoints, so function as a return > + * use the same value as in parameters. This approach allows to use this > + * function in TP_printk > + * > + * Important: wValue, wIndex, wLength parameters before invoking this function > + * should be processed by le16_to_cpu macro. > + */ > +extern const char *usb_decode_ctrl(char *str, size_t size, __u8 bRequestType, > + __u8 bRequest, __u16 wValue, __u16 wIndex, > + __u16 wLength); > + where's the stub when !TRACING? -- balbi