]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/UsbMass: Fix various typos
authorAntoine Coeur <coeur@gmx.fr>
Fri, 7 Feb 2020 01:07:32 +0000 (02:07 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 10 Feb 2020 22:30:07 +0000 (22:30 +0000)
Fix various typos in comments and documentation.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Antoine Coeur <coeur@gmx.fr>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Acked-by: Liming Gao <liming.gao@intel.com>
Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
Message-Id: <20200207010831.9046-20-philmd@redhat.com>

MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBoot.c
MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBoot.h
MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.c
MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.h
MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassCbi.c
MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassCbi.h
MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassImpl.c
MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassImpl.h

index 600896b6a2147c6c5cc17356a842b44347000434..aab4061e183c0a20f012615ad4c6a50a2fa0cac7 100644 (file)
@@ -197,7 +197,7 @@ UsbBootExecCmd (
 \r
   //\r
   // If ExecCommand() returns no error and CmdResult is success,\r
-  // then the commnad transfer is successful.\r
+  // then the command transfer is successful.\r
   //\r
   if ((CmdResult == USB_MASS_CMD_SUCCESS) && !EFI_ERROR (Status)) {\r
     return EFI_SUCCESS;\r
@@ -610,7 +610,7 @@ UsbScsiModeSense (
   This function get the parameters for the USB mass storage media,\r
   It is used both to initialize the media during the Start() phase\r
   of Driver Binding Protocol and to re-initialize it when the media is\r
-  changed. Althought the RemoveableMedia is unlikely to change,\r
+  changed. Although the RemoveableMedia is unlikely to change,\r
   it is also included here.\r
 \r
   @param  UsbMass                The device to retrieve disk gemotric.\r
index 2b89c92724a8936461b12eb3d49b09e5547039ac..f34a41284e4c561acd7cf4a9f796a68d72ce9e72 100644 (file)
@@ -77,7 +77,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 // Mass command timeout, refers to specification[USB20-9.2.6.1]\r
 //\r
 // USB2.0 Spec define the up-limit timeout 5s for all command. USB floppy,\r
-// USB CD-Rom and iPod devices are much slower than USB key when reponse\r
+// USB CD-Rom and iPod devices are much slower than USB key when response\r
 // most of commands, So we set 5s as timeout here.\r
 //\r
 #define USB_BOOT_GENERAL_CMD_TIMEOUT    (5 * USB_MASS_1_SECOND)\r
@@ -213,7 +213,7 @@ typedef struct {
   This function get the parameters for the USB mass storage media,\r
   It is used both to initialize the media during the Start() phase\r
   of Driver Binding Protocol and to re-initialize it when the media is\r
-  changed. Althought the RemoveableMedia is unlikely to change,\r
+  changed. Although the RemoveableMedia is unlikely to change,\r
   it is also included here.\r
 \r
   @param  UsbMass                The device to retrieve disk gemotric.\r
index 98d2ba99688b5c4a610b1db5237ef56b73987245..1e878a1bdd1d7a628599f30a1b2d1c626b26e9c5 100644 (file)
@@ -326,7 +326,7 @@ UsbBotGetStatus (
 \r
   for (Index = 0; Index < USB_BOT_RECV_CSW_RETRY; Index++) {\r
     //\r
-    // Attemp to the read Command Status Wrapper from bulk in endpoint\r
+    // Attempt to the read Command Status Wrapper from bulk in endpoint\r
     //\r
     ZeroMem (&Csw, sizeof (USB_BOT_CSW));\r
     Result = 0;\r
@@ -553,7 +553,7 @@ UsbBotGetMaxLun (
   UsbBot = (USB_BOT_PROTOCOL *) Context;\r
 \r
   //\r
-  // Issue a class specific Bulk-Only Mass Storage get max lun reqest.\r
+  // Issue a class specific Bulk-Only Mass Storage get max lun request.\r
   // according to section 3.2 of USB Mass Storage Class Bulk-Only Transport Spec, v1.0.\r
   //\r
   Request.RequestType = 0xA1;\r
index ea03cf7e2fd42f9811f13571bebcb27dae3ad31a..3ef8f240a2c1547343ec6b37a0aa062f0441c9ec 100644 (file)
@@ -14,14 +14,14 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 extern USB_MASS_TRANSPORT mUsbBotTransport;\r
 \r
 //\r
-// Usb Bulk-Only class specfic request\r
+// Usb Bulk-Only class specific request\r
 //\r
 #define USB_BOT_RESET_REQUEST    0xFF       ///< Bulk-Only Mass Storage Reset\r
 #define USB_BOT_GETLUN_REQUEST   0xFE       ///< Get Max Lun\r
 #define USB_BOT_CBW_SIGNATURE    0x43425355 ///< dCBWSignature, tag the packet as CBW\r
 #define USB_BOT_CSW_SIGNATURE    0x53425355 ///< dCSWSignature, tag the packet as CSW\r
 #define USB_BOT_MAX_LUN          0x0F       ///< Lun number is from 0 to 15\r
-#define USB_BOT_MAX_CMDLEN       16         ///< Maxium number of command from command set\r
+#define USB_BOT_MAX_CMDLEN       16         ///< Maximum number of command from command set\r
 \r
 //\r
 // Usb BOT command block status values\r
index 1e5508c7567456acf8fee01de98aa15cffc51d9b..477f0536d673903b1a96ac665bc376a6d24b404c 100644 (file)
@@ -305,7 +305,7 @@ UsbCbiDataTransfer (
       if (TransStatus == EFI_USB_ERR_NAK) {\r
         //\r
         // The device can NAK the host if either the data/buffer isn't\r
-        // aviable or the command is in-progress.\r
+        // available or the command is in-progress.\r
         // If data are partially transferred, we just ignore NAK and continue.\r
         // If all data have been transferred and status is NAK, then we retry for several times.\r
         // If retry exceeds the USB_CBI_MAX_RETRY, then return error status.\r
@@ -378,7 +378,7 @@ UsbCbiGetStatus (
   Timeout   = Timeout / USB_MASS_1_MILLISECOND;\r
 \r
   //\r
-  // Attemp to the read the result from interrupt endpoint\r
+  // Attempt to the read the result from interrupt endpoint\r
   //\r
   for (Retry = 0; Retry < USB_CBI_MAX_RETRY; Retry++) {\r
     TransStatus = 0;\r
index 287c0330f61e6d531c6914541bb02b019d9d9d35..b79b9c243630b96eb28ea6273ccdd91b1759e19c 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-  Defination for the USB mass storage Control/Bulk/Interrupt (CBI) transport,\r
+  Definition for the USB mass storage Control/Bulk/Interrupt (CBI) transport,\r
   according to USB Mass Storage Class Control/Bulk/Interrupt (CBI) Transport, Revision 1.1.\r
 \r
 Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
index 0dcbc5da2cb881640402414320d0a2a9327e9677..bbd19e04474827c7b8ae722131f8cc3a8b676d0b 100644 (file)
@@ -367,7 +367,7 @@ UsbMassInitMedia (
 }\r
 \r
 /**\r
-  Initilize the USB Mass Storage transport.\r
+  Initialize the USB Mass Storage transport.\r
 \r
   This function tries to find the matching USB Mass Storage transport\r
   protocol for USB device. If found, initializes the matching transport.\r
@@ -770,7 +770,7 @@ ON_EXIT:
 /**\r
   Starts the USB mass storage device with this driver.\r
 \r
-  This function consumes USB I/O Portocol, intializes USB mass storage device,\r
+  This function consumes USB I/O Protocol, initializes USB mass storage device,\r
   installs Block I/O Protocol, and submits Asynchronous Interrupt\r
   Transfer to manage the USB mass storage device.\r
 \r
index 9f63deeae3dbc208ed184b8bbeaa782b91c6f8b6..283bed7055a0c811751d3602f5a818ff5f1945ff 100644 (file)
@@ -48,7 +48,7 @@ USBMassDriverBindingSupported (
 /**\r
   Starts the USB mass storage device with this driver.\r
 \r
-  This function consumes USB I/O Portocol, intializes USB mass storage device,\r
+  This function consumes USB I/O Protocol, initializes USB mass storage device,\r
   installs Block I/O Protocol, and submits Asynchronous Interrupt\r
   Transfer to manage the USB mass storage device.\r
 \r