From patchwork Fri Feb 26 09:48:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 63015 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp615754lbc; Fri, 26 Feb 2016 01:49:03 -0800 (PST) X-Received: by 10.66.154.233 with SMTP id vr9mr791508pab.66.1456480143014; Fri, 26 Feb 2016 01:49:03 -0800 (PST) Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id kn6si18886426pab.36.2016.02.26.01.48.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Feb 2016 01:49:02 -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 A40D51A1E15; Fri, 26 Feb 2016 01:49:04 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-pa0-x234.google.com (mail-pa0-x234.google.com [IPv6:2607:f8b0:400e:c03::234]) (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 B7E0B1A1E0D for ; Fri, 26 Feb 2016 01:49:03 -0800 (PST) Received: by mail-pa0-x234.google.com with SMTP id fy10so48587088pac.1 for ; Fri, 26 Feb 2016 01:48:58 -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=EYJiqBp6yChI6spBdQUV4Zw536mHW5AzWRgoOtIxajE=; b=aIZb3Ew2brHG9z2Q67U8FdNfNhF23RGtQVxDqgRluQjc7xwLz4WKSmRkhyMn1pmodQ Um0uHI8GK0Ex6h28Jd7zIo3zMb1fmPy1UOXELIDq4Enz6CIIqeH31FnVmUlyX+3xDnlp CHrdgYpJXDrBjcaqJBigVFfkFT0VUUXg3btYo= 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=EYJiqBp6yChI6spBdQUV4Zw536mHW5AzWRgoOtIxajE=; b=d5kGkRMYiuuDvDgWELJkOKNaEebnS9CPjpXrXKB4tJWy3q4BNBgTnxqD+WYbT77/Tk P5Uifi2zsYS3/T1B0d4RZufF9ywwol7UV5/lz+0AsvBrQH3Mh6N+thkHNb6thcasuvXl oJpotOVFRuVtfek1O/iCiuxCyp7iM4JOpsLKP5lUWsvERuon0jplBLLltGcydBzCtV4/ nDHnej8ywE8PdW6TTT6w4/JkW4naegvLP5h7DvAAlQDccEI6ysSlslytlq4F2kazx824 pFC0MHc4JiWILkb4f2g0j8vGvQ9tx1bjtEWmjwn50QPmN8Ul47FDHtSP3NBK19LRY/jf EWuA== X-Gm-Message-State: AD7BkJKqo9vgXn/3UWSE1Eyo1LgJoNmyuzLMVOKFeZ/A31fJee88imuAfbAnZ7s2kne1RcZ6 X-Received: by 10.66.248.168 with SMTP id yn8mr795503pac.24.1456480138639; Fri, 26 Feb 2016 01:48:58 -0800 (PST) Received: from mail.hotmail.com (blu004-wss1s3.hotmail.com. [134.170.2.218]) by smtp.gmail.com with ESMTPSA id z3sm18033989par.17.2016.02.26.01.48.57 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Feb 2016 01:48:57 -0800 (PST) Received: from BLU437-SMTP24 ([134.170.2.215]) by BLU004-WSS1S3.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Fri, 26 Feb 2016 01:48:56 -0800 X-TMN: [C+Yjl/7E1JTqkTBQGXxPDUCI/S93wVrQ] 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:38 +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:54.0364 (UTC) FILETIME=[E78E51C0:01D1707A] MIME-Version: 1.0 Cc: Haojian Zhuang Subject: [edk2] [PATCH 2/2] EmbeddedPkg: FastbootUsb: add string descriptors 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" Support both manufacturer and product string descriptors. Otherwise, the manufacturer and product sub nodes won't be created in sysfs directory of linux host. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Haojian Zhuang --- .../Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 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 a3eddda..06d7974 100644 --- a/EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsb.c +++ b/EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsb.c @@ -62,8 +62,8 @@ STATIC USB_DEVICE_DESCRIPTOR mDeviceDescriptor = { FixedPcdGet32 (PcdAndroidFastbootUsbVendorId), //IdVendor FixedPcdGet32 (PcdAndroidFastbootUsbProductId), //IdProduct 0, //BcdDevice - 0, //StrManufacturer - 0, //StrProduct + 1, //StrManufacturer + 2, //StrProduct 3, //StrSerialNumber 1 //NumConfigurations };