public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: devel@edk2.groups.io
Cc: Laszlo Ersek <lersek@redhat.com>, Eric Dong <eric.dong@intel.com>
Subject: [PATCH v3 19/78] MdeModulePkg/UsbMass: Fix various typos
Date: Fri,  7 Feb 2020 02:07:32 +0100	[thread overview]
Message-ID: <20200207010831.9046-20-philmd@redhat.com> (raw)
In-Reply-To: <20200207010831.9046-1-philmd@redhat.com>

From: Antoine Coeur <coeur@gmx.fr>

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>
---
 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBoot.h | 4 ++--
 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.h  | 4 ++--
 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassCbi.h  | 2 +-
 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassImpl.h | 2 +-
 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBoot.c | 4 ++--
 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.c  | 4 ++--
 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassCbi.c  | 4 ++--
 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassImpl.c | 4 ++--
 8 files changed, 14 insertions(+), 14 deletions(-)

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


  parent reply	other threads:[~2020-02-07  1:09 UTC|newest]

Thread overview: 84+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-07  1:07 [PATCH v3 00/78] Fix a bunch of typos (part 1) Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 01/78] CryptoPkg/OpensslLib: Fix few typos Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 02/78] EmbeddedPkg/VirtualKeyboard: Fix a typo in EFI_INVALID_PARAMETER Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 03/78] EmbeddedPkg/VirtualKeyboard: Fix few typos Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 04/78] EmulatorPkg/Sec: Fix various typos Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 05/78] EmulatorPkg/Unix: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 06/78] EmulatorPkg/Win: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 07/78] FatPkg/EnhancedFatDxe: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 08/78] FatPkg/FatPei: Fix few typos Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 09/78] MdeModulePkg/Application: Improve French translation Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 10/78] MdeModulePkg/Application: Fix various typos Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 11/78] MdeModulePkg/Bus/Ata: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 12/78] MdeModulePkg/Bus/I2c: Fix few typos Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 13/78] MdeModulePkg/Bus/Isa: Fix various typos Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 14/78] MdeModulePkg/Bus/Scsi: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 15/78] MdeModulePkg/Bus/Sd: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 16/78] MdeModulePkg/Core/Pei: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 17/78] MdeModulePkg/Core/PiSmmCore: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 18/78] MdeModulePkg/UsbBusDxe: Fix a typo Philippe Mathieu-Daudé
2020-02-07  1:07 ` Philippe Mathieu-Daudé [this message]
2020-02-07  1:07 ` [PATCH v3 20/78] MdeModulePkg/UsbMouse: Fix few typos Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 21/78] MdeModulePkg/UsbBus: Fix various typos Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 22/78] MdeModulePkg/Usb: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 23/78] MdePkg/IndustryStandard: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 24/78] MdePkg/Library/Dxe: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 25/78] MdePkg/Library/Pci: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 26/78] MdePkg/Library/Smm: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 27/78] MdePkg/Ppi: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 28/78] MdePkg/Register: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 29/78] NetworkPkg: Fix a typo Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 30/78] NetworkPkg/ArpDxe: Fix various typos Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 31/78] NetworkPkg/Dhcp4Dxe: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 32/78] NetworkPkg/Dhcp6Dxe: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 33/78] NetworkPkg/DnsDxe: Fix a typo Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 34/78] NetworkPkg/DnsDxe: Fix various typos Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 35/78] NetworkPkg/DpcDxe: Fix few typos Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 36/78] NetworkPkg/HttpBootDxe: Fix a typo in variable name Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 37/78] NetworkPkg/HttpBootDxe: Fix various typos Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 38/78] NetworkPkg/HttpDxe: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 39/78] NetworkPkg/Ip4Dxe: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 40/78] NetworkPkg/Ip6Dxe: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 41/78] NetworkPkg/IScsiDxe: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 42/78] NetworkPkg/Library: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 43/78] NetworkPkg/MnpDxe: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 44/78] NetworkPkg/Mtftp4Dxe: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 45/78] NetworkPkg/Mtftp6Dxe: " Philippe Mathieu-Daudé
2020-02-07  1:07 ` [PATCH v3 46/78] NetworkPkg/SnpDxe: Fix few typos Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 47/78] NetworkPkg/TcpDxe/Sock: " Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 48/78] NetworkPkg/TcpDxe/Tcp: Fix various typos Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 49/78] NetworkPkg/Tls: Fix few typos Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 50/78] NetworkPkg/Udp4Dxe: Fix various typos Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 51/78] NetworkPkg/Udp6Dxe: " Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 52/78] NetworkPkg/UefiPxeBcDxe: " Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 53/78] NetworkPkg/VlanConfigDxe: Fix few typos Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 54/78] OvmfPkg/Acpi: " Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 55/78] OvmfPkg/Csm: Fix various typos Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 56/78] OvmfPkg/Csm/LegacyBios: Fix a typo Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 57/78] OvmfPkg/Qemu: Fix various typos Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 58/78] OvmfPkg/Virtio: Fix few typos Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 59/78] OvmfPkg/Xen: Fix a typo Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 60/78] OvmfPkg/Xen: Fix various typos Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 61/78] PcAtChipsetPkg: Fix few typos Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 62/78] SecurityPkg: " Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 63/78] SecurityPkg/Hash2DxeCrypto: " Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 64/78] SecurityPkg/Library/Tpm: Fix various typos Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 65/78] SecurityPkg/Tcg: " Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 66/78] SecurityPkg/VariableAuthenticated: Fix few typos Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 67/78] ShellPkg/Application: Fix various typos Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 68/78] ShellPkg/DynamicCommand: " Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 69/78] SignedCapsulePkg: " Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 70/78] SignedCapsulePkg/Universal: " Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 71/78] SourceLevelDebugPkg/DebugAgent: " Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 72/78] SourceLevelDebugPkg/DebugCommunicationLib: " Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 73/78] SourceLevelDebugPkg: Fix few typos Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 74/78] StandaloneMmPkg: Fix a typo Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 75/78] StandaloneMmPkg: Fix few typos Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 76/78] UefiCpuPkg/CpuDxe: " Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 77/78] UefiCpuPkg/PiSmm: Fix various typos Philippe Mathieu-Daudé
2020-02-07  1:08 ` [PATCH v3 78/78] UefiCpuPkg/Smm: " Philippe Mathieu-Daudé
2020-02-07 10:51 ` [PATCH v3 00/78] Fix a bunch of typos (part 1) Laszlo Ersek
2020-02-10 22:54   ` [edk2-devel] " Laszlo Ersek
2020-02-11 12:12     ` Philippe Mathieu-Daudé
2020-02-12 12:02       ` Laszlo Ersek
2020-02-12 17:01     ` Cœur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200207010831.9046-20-philmd@redhat.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox