From nobody Sat Feb 7 06:20:46 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+52753+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+52753+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1578042548; cv=none; d=zohomail.com; s=zohoarc; b=DDu7zjRXZzbsYJNtXR+vZeg0rz8a4wDIFppkznJCFdVFi8QXPC8fkVD8pPPSKPf/MNz/ohkM4uvleWqMsefgQVEb0iiSvmBhPeFKJolVPnk7QbmMRggnH9FoB88RSbZRqUZbZAyNDwTjRS7a2X0IBh+oZGwioj//QLYb26Y67jE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578042548; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=oh+NUMIkBvxrQGqN98hYHW6anY/ovcIMBCdQfyOsrDM=; b=aRe0NDmVklx/RxVmj1S8ujeeuafE1z3o2RYxQRqVnIfkcRMKCAO1K4ogJDRBAR7SiA6EpLVl6RP1WqpxSucYfMjSv8xNjrJKPgvrJIbbj7NR/lPWRIOZsJT9FFMYLRC4AnEOyMDjmItzXUHFI8YRCNaGoByvuGJFyHCXJ8lxkfw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+52753+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1578042548015664.2625139958421; Fri, 3 Jan 2020 01:09:08 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id aW9NYY1788612x6p2nFF1nXk; Fri, 03 Jan 2020 01:09:07 -0800 X-Received: from us-smtp-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.61]) by mx.groups.io with SMTP id smtpd.web10.1933.1578042547024349315 for ; Fri, 03 Jan 2020 01:09:07 -0800 X-Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-206-oVaxJ74ZN2KlAwxrA2o6Zg-1; Fri, 03 Jan 2020 04:09:04 -0500 X-Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 86F28185432D; Fri, 3 Jan 2020 09:09:03 +0000 (UTC) X-Received: from x1w.redhat.com (ovpn-116-190.ams2.redhat.com [10.36.116.190]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C96FC7BA29; Fri, 3 Jan 2020 09:09:00 +0000 (UTC) From: =?UTF-8?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkw6k=?= To: devel@edk2.groups.io Cc: Antoine Coeur , Jian J Wang , Hao A Wu , Ray Ni , Philippe Mathieu-Daude Subject: [edk2-devel] [PATCH v2 19/78] MdeModulePkg/UsbMass: Fix various typos Date: Fri, 3 Jan 2020 10:07:13 +0100 Message-Id: <20200103090812.10592-20-philmd@redhat.com> In-Reply-To: <20200103090812.10592-1-philmd@redhat.com> References: <20200103090812.10592-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-MC-Unique: oVaxJ74ZN2KlAwxrA2o6Zg-1 X-Mimecast-Spam-Score: 0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,philmd@redhat.com X-Gm-Message-State: PT0DKNpF2vhQ9cHOr4Xc7BfJx1787277AA= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1578042547; bh=QqaCMqYWrhi8utPZQAy+cC1hhcijqp7OMfTbczK1wig=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=OXQYHCnEzdbhjvQJYrJTGcT4gPO90QE+AY3es8/G2A2FKeE0YizEcur1WHqLmowAXJ5 gQuO09fYwsrIEbScnA+B6+sbIghBSiNYYmqIhz5EiPqbn3ikOpVLDH9tt6ffyZ9Lymg4F pHtRy03AcnRHuoGHb06i9KdQ4fSsLyVUPAw= X-ZohoMail-DKIM: pass (identity @groups.io) From: Antoine Coeur Fix various typos in comments and documentation. Cc: Jian J Wang Cc: Hao A Wu Cc: Ray Ni Signed-off-by: Antoine Coeur Reviewed-by: Philippe Mathieu-Daude Signed-off-by: Philippe Mathieu-Daude --- 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/MdeModu= lePkg/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. =20 @param UsbMass The device to retrieve disk gemotric. diff --git a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.h b/MdeModul= ePkg/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; =20 // -// Usb Bulk-Only class specfic request +// Usb Bulk-Only class specific request // #define USB_BOT_RESET_REQUEST 0xFF ///< Bulk-Only Mass Storage Re= set #define USB_BOT_GETLUN_REQUEST 0xFE ///< Get Max Lun #define USB_BOT_CBW_SIGNATURE 0x43425355 ///< dCBWSignature, tag the pa= cket as CBW #define USB_BOT_CSW_SIGNATURE 0x53425355 ///< dCSWSignature, tag the pa= cket 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 =20 // // Usb BOT command block status values diff --git a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassCbi.h b/MdeModul= ePkg/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) transpo= rt, + Definition for the USB mass storage Control/Bulk/Interrupt (CBI) transpo= rt, according to USB Mass Storage Class Control/Bulk/Interrupt (CBI) Transpo= rt, Revision 1.1. =20 Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
diff --git a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassImpl.h b/MdeModu= lePkg/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. =20 - This function consumes USB I/O Portocol, intializes USB mass storage dev= ice, + This function consumes USB I/O Protocol, initializes USB mass storage de= vice, installs Block I/O Protocol, and submits Asynchronous Interrupt Transfer to manage the USB mass storage device. =20 diff --git a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBoot.c b/MdeModu= lePkg/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 ( =20 // // If ExecCommand() returns no error and CmdResult is success, - // then the commnad transfer is successful. + // then the command transfer is successful. // if ((CmdResult =3D=3D 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. =20 @param UsbMass The device to retrieve disk gemotric. diff --git a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.c b/MdeModul= ePkg/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 ( =20 for (Index =3D 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 =3D 0; @@ -553,7 +553,7 @@ UsbBotGetMaxLun ( UsbBot =3D (USB_BOT_PROTOCOL *) Context; =20 // - // 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 Transpor= t Spec, v1.0. // Request.RequestType =3D 0xA1; diff --git a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassCbi.c b/MdeModul= ePkg/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 =3D=3D 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 conti= nue. // If all data have been transferred and status is NAK, then we re= try for several times. // If retry exceeds the USB_CBI_MAX_RETRY, then return error statu= s. @@ -378,7 +378,7 @@ UsbCbiGetStatus ( Timeout =3D Timeout / USB_MASS_1_MILLISECOND; =20 // - // Attemp to the read the result from interrupt endpoint + // Attempt to the read the result from interrupt endpoint // for (Retry =3D 0; Retry < USB_CBI_MAX_RETRY; Retry++) { TransStatus =3D 0; diff --git a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassImpl.c b/MdeModu= lePkg/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 ( } =20 /** - Initilize the USB Mass Storage transport. + Initialize the USB Mass Storage transport. =20 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 @@ ON_EXIT: /** Starts the USB mass storage device with this driver. =20 - This function consumes USB I/O Portocol, intializes USB mass storage dev= ice, + This function consumes USB I/O Protocol, initializes USB mass storage de= vice, installs Block I/O Protocol, and submits Asynchronous Interrupt Transfer to manage the USB mass storage device. =20 --=20 2.21.0 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#52753): https://edk2.groups.io/g/devel/message/52753 Mute This Topic: https://groups.io/mt/69395721/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-