From patchwork Fri Feb 26 09:48:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 63014 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp615702lbc; Fri, 26 Feb 2016 01:48:56 -0800 (PST) X-Received: by 10.66.155.232 with SMTP id vz8mr728362pab.53.1456480135970; Fri, 26 Feb 2016 01:48:55 -0800 (PST) Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id ut6si1353871pac.241.2016.02.26.01.48.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Feb 2016 01:48:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 723EE1A1E12; Fri, 26 Feb 2016 01:49:00 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-oi0-x22d.google.com (mail-oi0-x22d.google.com [IPv6:2607:f8b0:4003:c06::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 3711B1A1E12 for ; Fri, 26 Feb 2016 01:48:59 -0800 (PST) Received: by mail-oi0-x22d.google.com with SMTP id k67so1964577oia.3 for ; Fri, 26 Feb 2016 01:48:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:from:to:cc:subject:date:in-reply-to:references :mime-version; bh=GWKNzTkGaad8ouE0ZvgHPlfMX0+TFnrW+jYjHK3qNJM=; b=LMFwJveJc2eYJ+qkYJMGLzDG2KpIU+wF2h/cmR5sWzqYnJ7G7oRrdnErc1kJAfCJXX H0WOAEZJhfEkeOQgr36HnfDjbomxsNnGtuqgZX6FEL1LWjcfTgbOvDBIjsIvkWt14sh6 bXk5aeokWT8d+BE/tp1vFxkQ8aAJ9jJ9DEwK8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:from:to:cc:subject:date:in-reply-to :references:mime-version; bh=GWKNzTkGaad8ouE0ZvgHPlfMX0+TFnrW+jYjHK3qNJM=; b=KTTzzAiGLB9h2kShTmy5ZNNnH9ugx+Xq9NwZtrksImDFWRInBk5TVvI/2lsgu4wXoG 3zfFD8e5KlVQy1blSFM/Y7bX+yOadnrRZyntnFFxKI/8mPDUWYf/RgKb/pAGXkzaOBSa LfIr+lfVZ3pdsu1uIkCow1Zg6KmxiM1idQuhcC5FOViKkESTFUcco2cX7CuGD8+XYJGp 8kxyLUqEtlXO4yp9WqZm+zGaBDsqBjKIh8jgy1A3CxD15lKXwt9K/7wX77FvtA2RbzA6 GopRN8GDqwy1IELCSnpJ3GQVoeHBp1jDG2w+bLGd680auKRAY+ThERSWZEhJ2tj1Dlmk k7sg== X-Gm-Message-State: AD7BkJK8mKYqhgYmib0qocMAYQTAoEMPMmImkZi54n3aKyyyrfkrcNbfCix3yuietNEd6SAQ X-Received: by 10.202.199.212 with SMTP id x203mr393751oif.21.1456480133731; Fri, 26 Feb 2016 01:48:53 -0800 (PST) Received: from mail.hotmail.com (blu004-wss1s2.hotmail.com. [134.170.2.217]) by smtp.gmail.com with ESMTPSA id n127sm8237252oia.8.2016.02.26.01.48.52 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Feb 2016 01:48:53 -0800 (PST) Received: from BLU437-SMTP24 ([134.170.2.215]) by BLU004-WSS1S2.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Fri, 26 Feb 2016 01:48:51 -0800 X-TMN: [vu5yl5DNlQts2SXFC98ihWQeRFDqWE1i] Message-ID: From: Haojian Zhuang To: edk2-devel@lists.01.org, leif.lindholm@linaro.org, ard.biesheuvel@linaro.org Date: Fri, 26 Feb 2016 17:48:37 +0800 X-Mailer: git-send-email 1.9.1 In-Reply-To: <1456480118-25551-1-git-send-email-haojian.zhuang@linaro.org> References: <1456480118-25551-1-git-send-email-haojian.zhuang@linaro.org> X-OriginalArrivalTime: 26 Feb 2016 09:48:49.0887 (UTC) FILETIME=[E4E32EF0:01D1707A] MIME-Version: 1.0 Cc: Haojian Zhuang Subject: [edk2] [PATCH 1/2] EmbeddedPkg: FastbootUsb: set serial number as 3 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Set serial number as 3. If the serial number is 0, fastboot won't load real serial number from descriptor at all. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Haojian Zhuang --- .../Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsb.c b/EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsb.c index e7da1fa..a3eddda 100644 --- a/EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsb.c +++ b/EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsb.c @@ -64,7 +64,7 @@ STATIC USB_DEVICE_DESCRIPTOR mDeviceDescriptor = { 0, //BcdDevice 0, //StrManufacturer 0, //StrProduct - 0, //StrSerialNumber + 3, //StrSerialNumber 1 //NumConfigurations };