From patchwork Wed Feb 22 15:12:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 731143 X-Patchwork-Delegate: l.majewski@samsung.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3vT1Gz59BCz9s7F for ; Thu, 23 Feb 2017 02:18:51 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2F4F04B5D0; Wed, 22 Feb 2017 16:18:44 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gwmETbcyJBEa; Wed, 22 Feb 2017 16:18:43 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 62F8E4B5B4; Wed, 22 Feb 2017 16:18:17 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 09C19B3896 for ; Wed, 22 Feb 2017 16:14:12 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oJFFtW2klRlA for ; Wed, 22 Feb 2017 16:14:11 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by theia.denx.de (Postfix) with ESMTPS id 9C9F1B3882 for ; Wed, 22 Feb 2017 16:13:25 +0100 (CET) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP; 22 Feb 2017 07:13:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,194,1484035200"; d="scan'208";a="61139331" Received: from pipin.fi.intel.com (HELO localhost) ([10.237.68.37]) by orsmga004.jf.intel.com with ESMTP; 22 Feb 2017 07:13:21 -0800 From: Felipe Balbi To: Lukasz Majewski , Marek Vasut Date: Wed, 22 Feb 2017 17:12:41 +0200 Message-Id: <20170222151241.21902-3-felipe.balbi@linux.intel.com> X-Mailer: git-send-email 2.11.0.295.gd7dffce1ce In-Reply-To: <20170222151241.21902-1-felipe.balbi@linux.intel.com> References: <20170222151241.21902-1-felipe.balbi@linux.intel.com> Cc: u-boot@lists.denx.de, Andy Shevchenko Subject: [U-Boot] [PATCH 3/3] usb: gadget: g_dnl: don't set iProduct nor iSerialNumber X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Both these numbers are calculated in runtime and dynamically assigned to the device descriptor during bind(). Signed-off-by: Felipe Balbi --- No access to a board right now, compile tested only drivers/usb/gadget/g_dnl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget/g_dnl.c index 4cc4438fdb4a..d4bee9b03e4f 100644 --- a/drivers/usb/gadget/g_dnl.c +++ b/drivers/usb/gadget/g_dnl.c @@ -62,8 +62,8 @@ static struct usb_device_descriptor device_desc = { .idVendor = __constant_cpu_to_le16(CONFIG_G_DNL_VENDOR_NUM), .idProduct = __constant_cpu_to_le16(CONFIG_G_DNL_PRODUCT_NUM), - .iProduct = STRING_PRODUCT, - .iSerialNumber = STRING_SERIAL, + /* .iProduct = DYNAMIC */ + /* .iSerialNumber = DYNAMIC */ .bNumConfigurations = 1, };