]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassCbi.h
Fixed unexpected timeout in Usb MassStorage Driver.
[mirror_edk2.git] / MdeModulePkg / Bus / Usb / UsbMassStorageDxe / UsbMassCbi.h
index 61954e6be950333b50cc7397178847f6d7eeef91..7933c71bf0316c7c03e7fb9a8542f0eb20ee0397 100644 (file)
@@ -30,14 +30,19 @@ enum {
   USB_CBI_RESET_CMD_LEN         = 12,\r
 \r
   //\r
-  // Usb CBI retry times\r
+  // Usb Cbi retry C/B/I transport times, set by experience\r
   //\r
   USB_CBI_MAX_RETRY             = 3,\r
 \r
   //\r
-  // Usb Cbi transfer timeout\r
+  // Usb Cbi wait device reset complete, set by experience\r
+  //  \r
+  USB_CBI_RESET_DEVICE_STALL    = 50 * USB_MASS_1_MILLISECOND,\r
+\r
+  //\r
+  // Usb Cbi transport timeout, set by experience\r
   //\r
-  USB_CBI_RESET_TIMEOUT         = 1 * USB_MASS_STALL_1_S\r
+  USB_CBI_RESET_DEVICE_TIMEOUT  = 1 * USB_MASS_1_SECOND,\r
 };\r
 \r
 //\r