diff mbox

[edk2,2/2] EmbeddedPkg: FastbootUsb: add string descriptors

Message ID BLU437-SMTP24C2DA5BC2E4BCA05EB8D397A70@phx.gbl
State New
Headers show

Commit Message

Haojian Zhuang Feb. 26, 2016, 9:48 a.m. UTC
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 <haojian.zhuang@linaro.org>

---
 .../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 mbox

Patch

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
 };