From nobody Sat Feb 7 08:13:54 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+51628+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+51628+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1575389864; cv=none; d=zohomail.com; s=zohoarc; b=C/0zVj2Ful9KfdIx9tZitC2qmPPrZSXYkx5lFYLbBPh1PH00lZLqXYCbKar6RS3YYqbujXDBauaLCUj1hCOnOx0sW58J2Piyh8w2Tj3CcYoi3RF6K8P64jku3+9bSIEn0NdDbKrYVJJZe0FA31qxdFQBJJSXACutwgzw/5177O0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1575389864; 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=ww4pg/0Xjk3TFKfThLIykVuayu3rwnVcLVXjTunl/mU=; b=ixyTVRbKbF89UwjVQNGbt0QPJBSWpXU691j6CkTMXBLWIHJYumXysLyeQgd0VvaNEf9e8O++rRqMPK5LPS7JbF4+KNkfdP2xy6thx4ka/uWLWrmi9RgWRG3BjhVFcYahFNqjQ3sz0rwms9M9hIQfG8zooHQbOLerpKf3VHAcV5I= 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+51628+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 1575389864742588.0194518021425; Tue, 3 Dec 2019 08:17:44 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id aaaaYY1788612xaaaaaaaaaa; Tue, 03 Dec 2019 08:17:43 -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.web11.8425.1575389863092229155 for ; Tue, 03 Dec 2019 08:17:43 -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-268-UsP8lLhkMe-EDmCGUIGFig-1; Tue, 03 Dec 2019 11:17:39 -0500 X-Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4A79618AAFA2; Tue, 3 Dec 2019 16:17:38 +0000 (UTC) X-Received: from x1w.redhat.com (ovpn-204-86.brq.redhat.com [10.40.204.86]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8AE1760C80; Tue, 3 Dec 2019 16:17:33 +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 23/79] MdeModulePkg/UsbBus: Fix various typos Date: Tue, 3 Dec 2019 17:15:06 +0100 Message-Id: <20191203161602.15969-24-philmd@redhat.com> In-Reply-To: <20191203161602.15969-1-philmd@redhat.com> References: <20191203161602.15969-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: UsP8lLhkMe-EDmCGUIGFig-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: aaaaaaaaaaaaaaaaaaaaaaaax1787277AA= 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=1575389863; bh=INyLmeVTteY4hlZ4G79QdS3QW9RBNGHhiEvnBndyPf4=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=CM72caMTujFEWJLHRds/KCzvBNMhjVVKba9EyVDE52CDcnd0lSu16CleAGTkmocTFka z87YRKBIUv3V1dN/ou3CbdoXk835ufYL+piE5vmNC9pq8LFmea/XvnzxpIFSJaqWnKdfi Myva+fTAlXWn8y5OR+O54EXPNfzFDTetmdI= 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: Philippe Mathieu-Daude --- MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.h | 14 +++++++------- MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.h | 2 +- MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.h | 2 +- MdeModulePkg/Bus/Usb/UsbBusPei/HubPeim.h | 2 +- MdeModulePkg/Bus/Usb/UsbBusPei/PeiUsbLib.h | 2 +- MdeModulePkg/Bus/Usb/UsbBusPei/UsbPeim.h | 2 +- MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c | 12 ++++++------ MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c | 2 +- MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c | 4 ++-- MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c | 8 ++++---- MdeModulePkg/Bus/Usb/UsbBusPei/PeiUsbLib.c | 2 +- MdeModulePkg/Bus/Usb/UsbBusPei/UsbIoPeim.c | 2 +- 12 files changed, 27 insertions(+), 27 deletions(-) diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.h b/MdeModulePkg/Bus/Usb= /UsbBusDxe/UsbBus.h index 3fdbc94d95eb..c84a24df2413 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.h +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.h @@ -159,7 +159,7 @@ typedef struct _EFI_USB_BUS_PROTOCOL { =20 // // Stands for the real USB device. Each device may -// has several seperately working interfaces. +// has several separately working interfaces. // struct _USB_DEVICE { USB_BUS *Bus; @@ -265,8 +265,8 @@ struct _USB_BUS { // USB Bus driver need to control the recursive connect policy of the bu= s, only those wanted // usb child device will be recursively connected. // - // WantedUsbIoDPList tracks the Usb child devices which user want to rec= ursivly fully connecte, - // every wanted child device is stored in a item of the WantedUsbIoDPLis= t, whose structrure is + // WantedUsbIoDPList tracks the Usb child devices which user want to rec= ursively fully connecte, + // every wanted child device is stored in a item of the WantedUsbIoDPLis= t, whose structure is // DEVICE_PATH_LIST_ITEM // LIST_ENTRY WantedUsbIoDPList; @@ -337,7 +337,7 @@ UsbBusAddWantedUsbIoDP ( Check whether a usb child device is the wanted device in a bus. =20 @param Bus The Usb bus's private data pointer. - @param UsbIf The usb child device inferface. + @param UsbIf The usb child device interface. =20 @retval True If a usb child device is the wanted device in a bus. @retval False If a usb child device is *NOT* the wanted device in a bu= s. @@ -351,7 +351,7 @@ UsbBusIsWantedUsbIO ( ); =20 /** - Recursively connnect every wanted usb child device to ensure they all fu= lly connected. + Recursively connect every wanted usb child device to ensure they all ful= ly connected. Check all the child Usb IO handles in this bus, recursively connecte if = it is wanted usb child device. =20 @param UsbBusId Point to EFI_USB_BUS_PROTOCOL interfac= e. @@ -461,7 +461,7 @@ UsbIoSyncInterruptTransfer ( the request. @param PollInterval The interval to poll the transfer result,= (in ms). @param DataLength The length of perodic data transfer. - @param Callback The function to call periodicaly when tra= nsfer is + @param Callback The function to call periodically when tr= ansfer is ready. @param Context The context to the callback. =20 @@ -512,7 +512,7 @@ UsbIoIsochronousTransfer ( @param DeviceEndpoint The device endpoint. @param Data The data to transfer. @param DataLength The length of perodic data transfer. - @param IsochronousCallBack The function to call periodicaly when tra= nsfer is + @param IsochronousCallBack The function to call periodically when tr= ansfer is ready. @param Context The context to the callback. =20 diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.h b/MdeModulePkg/Bus/Usb= /UsbBusDxe/UsbHub.h index 0f4db2f34dc9..6043b5b2cd48 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.h +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.h @@ -97,7 +97,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent =20 #pragma pack(1) // -// Hub descriptor, the last two fields are of variable lenght. +// Hub descriptor, the last two fields are of variable length. // typedef struct { UINT8 Length; diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.h b/MdeModulePkg/Bus= /Usb/UsbBusDxe/UsbUtility.h index 9c52520c87f7..1d2b8a6174c7 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.h +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.h @@ -101,7 +101,7 @@ UsbHcClearRootHubPortFeature ( @param UsbResult The result of transfer. =20 @retval EFI_SUCCESS The control transfer finished without error. - @retval Others The control transfer failed, reason returned in= UsbReslt. + @retval Others The control transfer failed, reason returned in= UsbResult. =20 **/ EFI_STATUS diff --git a/MdeModulePkg/Bus/Usb/UsbBusPei/HubPeim.h b/MdeModulePkg/Bus/Us= b/UsbBusPei/HubPeim.h index a78a1652ff4a..2a6d911a067e 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusPei/HubPeim.h +++ b/MdeModulePkg/Bus/Usb/UsbBusPei/HubPeim.h @@ -78,7 +78,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #define MAXBYTES 8 #pragma pack(1) // -// Hub descriptor, the last two fields are of variable lenght. +// Hub descriptor, the last two fields are of variable length. // typedef struct { UINT8 Length; diff --git a/MdeModulePkg/Bus/Usb/UsbBusPei/PeiUsbLib.h b/MdeModulePkg/Bus/= Usb/UsbBusPei/PeiUsbLib.h index cf9400987a38..48b8e594b283 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusPei/PeiUsbLib.h +++ b/MdeModulePkg/Bus/Usb/UsbBusPei/PeiUsbLib.h @@ -1,5 +1,5 @@ /** @file -Common Libarary for PEI USB +Common Library for PEI USB =20 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
=20 diff --git a/MdeModulePkg/Bus/Usb/UsbBusPei/UsbPeim.h b/MdeModulePkg/Bus/Us= b/UsbBusPei/UsbPeim.h index caba53266dac..b55b97d8707f 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusPei/UsbPeim.h +++ b/MdeModulePkg/Bus/Usb/UsbBusPei/UsbPeim.h @@ -154,7 +154,7 @@ PeiUsbControlTransfer ( @param DeviceEndpoint Endpoint number and its direction in bit 7. @param Data A pointer to the buffer of data to transmit from or receive into. - @param DataLength The lenght of the data buffer. + @param DataLength The length of the data buffer. @param Timeout Indicates the maximum time, in millisecond= , which the transfer is allowed to complete. If Timeou= t is 0, then the caller must wait for the function to b= e completed diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c b/MdeModulePkg/Bus/Usb= /UsbBusDxe/UsbBus.c index d4002c48d74e..4b4915c019ad 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c @@ -96,10 +96,10 @@ UsbIoControlTransfer ( UsbStatus ); // - // If the request completed sucessfully and the Direction of the request= is + // If the request completed successfully and the Direction of the reques= t is // EfiUsbDataIn or EfiUsbDataOut, then make sure the actual number of by= tes - // transfered is the same as the number of bytes requested. If a differ= ent - // number of bytes were transfered, then return EFI_DEVICE_ERROR. + // transferred is the same as the number of bytes requested. If a diffe= rent + // number of bytes were transferred, then return EFI_DEVICE_ERROR. // if (!EFI_ERROR (Status)) { if (Direction !=3D EfiUsbNoData && DataLength !=3D RequestedDataLength= ) { @@ -389,7 +389,7 @@ ON_EXIT: the request. @param PollInterval The interval to poll the transfer result,= (in ms). @param DataLength The length of perodic data transfer. - @param Callback The function to call periodicaly when tra= nsfer is + @param Callback The function to call periodically when tr= ansfer is ready. @param Context The context to the callback. =20 @@ -490,7 +490,7 @@ UsbIoIsochronousTransfer ( @param DeviceEndpoint The device endpoint. @param Data The data to transfer. @param DataLength The length of perodic data transfer. - @param IsochronousCallBack The function to call periodicaly when tra= nsfer is + @param IsochronousCallBack The function to call periodically when tr= ansfer is ready. @param Context The context to the callback. =20 @@ -1355,7 +1355,7 @@ UsbBusControllerDriverStart ( if (IsDevicePathEnd (RemainingDevicePath)) { // // If RemainingDevicePath is the End of Device Path Node, - // skip enumerate any device and return EFI_SUCESSS + // skip enumerate any device and return EFI_SUCCESS // return EFI_SUCCESS; } diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c b/MdeModulePkg/Bus/= Usb/UsbBusDxe/UsbEnumer.c index cc0de52de411..d3e0cfa626c3 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c @@ -757,7 +757,7 @@ UsbEnumerateNewDev ( =20 // // After port is reset, hub establishes a signal path between - // the device and host (DEFALUT state). Device's registers are + // the device and host (DEFAULT state). Device's registers are // reset, use default address 0 (host enumerates one device at // a time) , and ready to respond to control transfer at EP 0. // diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c b/MdeModulePkg/Bus/Usb= /UsbBusDxe/UsbHub.c index c7c27a54819f..c5bd112511a4 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c @@ -545,7 +545,7 @@ UsbOnHubInterrupt ( // OK, actually something is changed, save the change map // then signal the HUB to do enumeration. This is a good // practise since UsbOnHubInterrupt is called in the context - // of host contrller's AsyncInterrupt monitor. + // of host controller's AsyncInterrupt monitor. // HubIf->ChangeMap =3D AllocateZeroPool (DataLength); =20 @@ -630,7 +630,7 @@ UsbHubInit ( =20 // // OK, set IsHub to TRUE. Now usb bus can handle this device - // as a working HUB. If failed eariler, bus driver will not + // as a working HUB. If failed earlier, bus driver will not // recognize it as a hub. Other parts of the bus should be able // to work. // diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c b/MdeModulePkg/Bus= /Usb/UsbBusDxe/UsbUtility.c index 8559992d2743..7529e03e853c 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c @@ -784,7 +784,7 @@ MatchUsbClass ( // If connect class policy, determine whether to create device handle by= the five fields // in class device path node. // - // In addtion, hub interface is always matched for this policy. + // In addition, hub interface is always matched for this policy. // if ((ActIfDesc->InterfaceClass =3D=3D USB_HUB_CLASS_CODE) && (ActIfDesc->InterfaceSubClass =3D=3D USB_HUB_SUBCLASS_CODE)) { @@ -1018,7 +1018,7 @@ UsbBusAddWantedUsbIoDP ( } else { // // If RemainingDevicePath is the End of Device Path Node, - // skip enumerate any device and return EFI_SUCESSS + // skip enumerate any device and return EFI_SUCCESS // return EFI_SUCCESS; } @@ -1034,7 +1034,7 @@ UsbBusAddWantedUsbIoDP ( Check whether a usb child device is the wanted device in a bus. =20 @param Bus The Usb bus's private data pointer. - @param UsbIf The usb child device inferface. + @param UsbIf The usb child device interface. =20 @retval True If a usb child device is the wanted device in a bus. @retval False If a usb child device is *NOT* the wanted device in a bu= s. @@ -1136,7 +1136,7 @@ UsbBusIsWantedUsbIO ( } =20 /** - Recursively connnect every wanted usb child device to ensure they all fu= lly connected. + Recursively connect every wanted usb child device to ensure they all ful= ly connected. Check all the child Usb IO handles in this bus, recursively connecte if = it is wanted usb child device. =20 @param UsbBusId Point to EFI_USB_BUS_PROTOCOL interfac= e. diff --git a/MdeModulePkg/Bus/Usb/UsbBusPei/PeiUsbLib.c b/MdeModulePkg/Bus/= Usb/UsbBusPei/PeiUsbLib.c index 2cc1fc6aa77e..1385b0ab59af 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusPei/PeiUsbLib.c +++ b/MdeModulePkg/Bus/Usb/UsbBusPei/PeiUsbLib.c @@ -1,5 +1,5 @@ /** @file -Common Libarary for PEI USB +Common Library for PEI USB =20 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
=20 diff --git a/MdeModulePkg/Bus/Usb/UsbBusPei/UsbIoPeim.c b/MdeModulePkg/Bus/= Usb/UsbBusPei/UsbIoPeim.c index 653bbf52f005..fc04f834a549 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusPei/UsbIoPeim.c +++ b/MdeModulePkg/Bus/Usb/UsbBusPei/UsbIoPeim.c @@ -131,7 +131,7 @@ PeiUsbControlTransfer ( @param DeviceEndpoint Endpoint number and its direction in bit 7. @param Data A pointer to the buffer of data to transmit from or receive into. - @param DataLength The lenght of the data buffer. + @param DataLength The length of the data buffer. @param Timeout Indicates the maximum time, in millisecond= , which the transfer is allowed to complete. If Timeou= t is 0, then the caller must wait for the function to b= e completed --=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 (#51628): https://edk2.groups.io/g/devel/message/51628 Mute This Topic: https://groups.io/mt/65773540/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-