From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.120]) by mx.groups.io with SMTP id smtpd.web09.6483.1581037742809033861 for ; Thu, 06 Feb 2020 17:09:03 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MkPg+55D; spf=pass (domain: redhat.com, ip: 205.139.110.120, mailfrom: philmd@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581037741; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VCebm9dWecOBrgGzJc/6JmhhuPtUuXorrU9oas/b6BE=; b=MkPg+55DkegGKl2yDjoNqAcysKa/cKjTMFZg5pAg6a9VuZOVlmi8ddAxJqCUYKwE8fsmKp ZecnZochpc7zSipVPDAGb9cKdwVNxnLlimWrxddMB4oGpzjuixB7GHbxZXUM1f700ufO7T dkIBylq+U/fTEPPcu/P0EYdstcmLjOg= 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-130-TcnYXERjPd-1IzklWZ8ZTA-1; Thu, 06 Feb 2020 20:08:59 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D4236800EB2; Fri, 7 Feb 2020 01:08:58 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-120.brq.redhat.com [10.40.204.120]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C514E5C1BB; Fri, 7 Feb 2020 01:08:57 +0000 (UTC) From: =?UTF-8?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkw6k=?= To: devel@edk2.groups.io Cc: Laszlo Ersek , Eric Dong Subject: [PATCH v3 14/78] MdeModulePkg/Bus/Scsi: Fix various typos Date: Fri, 7 Feb 2020 02:07:27 +0100 Message-Id: <20200207010831.9046-15-philmd@redhat.com> In-Reply-To: <20200207010831.9046-1-philmd@redhat.com> References: <20200207010831.9046-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: TcnYXERjPd-1IzklWZ8ZTA-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 Acked-by: Liming Gao Signed-off-by: Philippe Mathieu-Daude --- MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.h | 4 +-- MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.h | 10 +++--- MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c | 6 ++-- MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c | 32 ++++++++++---------- 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.h b/MdeModulePkg/Bus/= Scsi/ScsiBusDxe/ScsiBus.h index 917e937520a8..97581866b6f7 100644 --- a/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.h +++ b/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.h @@ -50,7 +50,7 @@ typedef struct { } SCSI_EVENT_DATA; =20 // -// SCSI Bus Controller device strcuture +// SCSI Bus Controller device structure // #define SCSI_BUS_DEVICE_SIGNATURE SIGNATURE_32 ('s', 'c', 's', 'i') =20 @@ -450,7 +450,7 @@ ScsiExecuteSCSICommand ( =20 @param This Protocol instance pointer @param Controller Controller handle - @param TargetId Tartget to be scanned + @param TargetId Target to be scanned @param Lun The Lun of the SCSI device on the SCSI channel. @param ScsiBusDev The pointer of SCSI_BUS_DEVICE =20 diff --git a/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.h b/MdeModulePkg/Bu= s/Scsi/ScsiDiskDxe/ScsiDisk.h index 2d8679ec6fd0..ed9bbd6f8ba8 100644 --- a/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.h +++ b/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.h @@ -185,7 +185,7 @@ extern EFI_COMPONENT_NAME2_PROTOCOL gScsiDiskComponent= Name2; // // SCSI Disk Timeout Experience Value // -// As ScsiDisk and ScsiBus driver are used to manage SCSI or ATAPI devices= , the timout +// As ScsiDisk and ScsiBus driver are used to manage SCSI or ATAPI devices= , the timeout // value is updated to 30s to follow ATA/ATAPI spec in which the device ma= y take up to 30s // to respond command. // @@ -412,7 +412,7 @@ ScsiDiskComponentNameGetControllerName ( @retval EFI_SUCCESS The device was reset. @retval EFI_DEVICE_ERROR The device is not functioning properly and = could not be reset. - @return EFI_STATUS is retured from EFI_SCSI_IO_PROTOCOL.ResetDevice(). + @return EFI_STATUS is returned from EFI_SCSI_IO_PROTOCOL.ResetDevice(). =20 **/ EFI_STATUS @@ -464,7 +464,7 @@ ScsiDiskReadBlocks ( @retval EFI_WRITE_PROTECTED The device can not be written to. @retval EFI_DEVICE_ERROR Fail to detect media. @retval EFI_NO_MEDIA Media is not present. - @retval EFI_MEDIA_CHNAGED Media has changed. + @retval EFI_MEDIA_CHANGED Media has changed. @retval EFI_BAD_BUFFER_SIZE The Buffer was not a multiple of the block= size of the device. @retval EFI_INVALID_PARAMETER Invalid parameter passed in. =20 @@ -1010,7 +1010,7 @@ CheckTargetStatus ( =20 When encountering error during the process, if retrieve sense keys befor= e error encountered, it returns the sense keys with return status set to E= FI_SUCCESS, - and NeedRetry set to FALSE; otherwize, return the proper return status. + and NeedRetry set to FALSE; otherwise, return the proper return status. =20 @param ScsiDiskDevice The pointer of SCSI_DISK_DEV @param NeedRetry The pointer of flag indicates if need a retry @@ -1444,7 +1444,7 @@ ScsiDiskIsHardwareError ( @param SenseCounts The number of sense key =20 @retval TRUE Media is changed. - @retval FALSE Medit is NOT changed. + @retval FALSE Media is NOT changed. **/ BOOLEAN ScsiDiskIsMediaChange ( diff --git a/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c b/MdeModulePkg/Bus/= Scsi/ScsiBusDxe/ScsiBus.c index 1caffd38cdcb..27b554ad3e1d 100644 --- a/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c +++ b/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c @@ -487,7 +487,7 @@ SCSIBusDriverBindingStart ( } 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 // ScanOtherPuns =3D FALSE; } @@ -644,7 +644,7 @@ SCSIBusDriverBindingStop ( ); // // When Start() succeeds to open ExtPassThru, it always tries to ope= n PassThru BY_DRIVER. - // Its intent is to prevent another SCSI Bus Driver from woking on t= he same host handle. + // Its intent is to prevent another SCSI Bus Driver from working on = the same host handle. // So Stop() needs to try to close PassThru if present here. // gBS->CloseProtocol ( @@ -1099,7 +1099,7 @@ ScsiExecuteSCSICommand ( =20 @param This Protocol instance pointer @param Controller Controller handle - @param TargetId Tartget to be scanned + @param TargetId Target to be scanned @param Lun The Lun of the SCSI device on the SCSI channel. @param ScsiBusDev The pointer of SCSI_BUS_DEVICE =20 diff --git a/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c b/MdeModulePkg/Bu= s/Scsi/ScsiDiskDxe/ScsiDisk.c index 6bfcf03a4b41..c80e78fa8a6b 100644 --- a/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c +++ b/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c @@ -704,7 +704,7 @@ ScsiDiskReadBlocks ( @retval EFI_WRITE_PROTECTED The device can not be written to. @retval EFI_DEVICE_ERROR Fail to detect media. @retval EFI_NO_MEDIA Media is not present. - @retval EFI_MEDIA_CHNAGED Media has changed. + @retval EFI_MEDIA_CHANGED Media has changed. @retval EFI_BAD_BUFFER_SIZE The Buffer was not a multiple of the block= size of the device. @retval EFI_INVALID_PARAMETER Invalid parameter passed in. =20 @@ -3166,7 +3166,7 @@ CheckTargetStatus ( =20 When encountering error during the process, if retrieve sense keys befor= e error encountered, it returns the sense keys with return status set to E= FI_SUCCESS, - and NeedRetry set to FALSE; otherwize, return the proper return status. + and NeedRetry set to FALSE; otherwise, return the proper return status. =20 @param ScsiDiskDevice The pointer of SCSI_DISK_DEV @param NeedRetry The pointer of flag indicates if need a retry @@ -3438,7 +3438,7 @@ ScsiDiskReadSectors ( // As ScsiDisk and ScsiBus driver are used to manage SCSI or ATAPI dev= ices, we have to use // the lowest transfer rate to calculate the possible maximum timeout = value for each operation. // From the above table, we could know 2.1Mbytes per second is lowest = one. - // The timout value is rounded up to nearest integar and here an addit= ional 30s is added + // The timeout value is rounded up to nearest integer and here an addi= tional 30s is added // to follow ATA spec in which it mentioned that the device may take u= p to 30s to respond // commands in the Standby/Idle mode. // @@ -3482,7 +3482,7 @@ ScsiDiskReadSectors ( // it is invalid to request more sectors in the CDB than the entire // transfer (ie. ByteCount) can carry. // - // In addition, ByteCount is only expected to go down, or stay uncha= ged. + // In addition, ByteCount is only expected to go down, or stay uncha= nged. // Therefore we don't need to update Timeout: the original timeout s= hould // accommodate shorter transfers too. // @@ -3603,7 +3603,7 @@ ScsiDiskWriteSectors ( // As ScsiDisk and ScsiBus driver are used to manage SCSI or ATAPI dev= ices, we have to use // the lowest transfer rate to calculate the possible maximum timeout = value for each operation. // From the above table, we could know 2.1Mbytes per second is lowest = one. - // The timout value is rounded up to nearest integar and here an addit= ional 30s is added + // The timeout value is rounded up to nearest integer and here an addi= tional 30s is added // to follow ATA spec in which it mentioned that the device may take u= p to 30s to respond // commands in the Standby/Idle mode. // @@ -3646,7 +3646,7 @@ ScsiDiskWriteSectors ( // it is invalid to request more sectors in the CDB than the entire // transfer (ie. ByteCount) can carry. // - // In addition, ByteCount is only expected to go down, or stay uncha= ged. + // In addition, ByteCount is only expected to go down, or stay uncha= nged. // Therefore we don't need to update Timeout: the original timeout s= hould // accommodate shorter transfers too. // @@ -3787,7 +3787,7 @@ ScsiDiskAsyncReadSectors ( // we have to use the lowest transfer rate to calculate the possible // maximum timeout value for each operation. // From the above table, we could know 2.1Mbytes per second is lowest = one. - // The timout value is rounded up to nearest integar and here an addit= ional + // The timeout value is rounded up to nearest integer and here an addi= tional // 30s is added to follow ATA spec in which it mentioned that the devi= ce // may take up to 30s to respond commands in the Standby/Idle mode. // @@ -4004,7 +4004,7 @@ ScsiDiskAsyncWriteSectors ( // we have to use the lowest transfer rate to calculate the possible // maximum timeout value for each operation. // From the above table, we could know 2.1Mbytes per second is lowest = one. - // The timout value is rounded up to nearest integar and here an addit= ional + // The timeout value is rounded up to nearest integer and here an addi= tional // 30s is added to follow ATA spec in which it mentioned that the devi= ce // may take up to 30s to respond commands in the Standby/Idle mode. // @@ -4143,10 +4143,10 @@ ScsiDiskRead10 ( UINTN Action; =20 // - // Implement a backoff algorithem to resolve some compatibility issues t= hat + // Implement a backoff algorithm to resolve some compatibility issues th= at // some SCSI targets or ATAPI devices couldn't correctly response readin= g/writing // big data in a single operation. - // This algorithem will at first try to execute original request. If the= request fails + // This algorithm will at first try to execute original request. If the = request fails // with media error sense data or else, it will reduce the transfer leng= th to half and // try again till the operation succeeds or fails with one sector transf= er length. // @@ -4268,10 +4268,10 @@ ScsiDiskWrite10 ( UINTN Action; =20 // - // Implement a backoff algorithem to resolve some compatibility issues t= hat + // Implement a backoff algorithm to resolve some compatibility issues th= at // some SCSI targets or ATAPI devices couldn't correctly response readin= g/writing // big data in a single operation. - // This algorithem will at first try to execute original request. If the= request fails + // This algorithm will at first try to execute original request. If the = request fails // with media error sense data or else, it will reduce the transfer leng= th to half and // try again till the operation succeeds or fails with one sector transf= er length. // @@ -4391,10 +4391,10 @@ ScsiDiskRead16 ( UINTN Action; =20 // - // Implement a backoff algorithem to resolve some compatibility issues t= hat + // Implement a backoff algorithm to resolve some compatibility issues th= at // some SCSI targets or ATAPI devices couldn't correctly response readin= g/writing // big data in a single operation. - // This algorithem will at first try to execute original request. If the= request fails + // This algorithm will at first try to execute original request. If the = request fails // with media error sense data or else, it will reduce the transfer leng= th to half and // try again till the operation succeeds or fails with one sector transf= er length. // @@ -4515,10 +4515,10 @@ ScsiDiskWrite16 ( UINTN Action; =20 // - // Implement a backoff algorithem to resolve some compatibility issues t= hat + // Implement a backoff algorithm to resolve some compatibility issues th= at // some SCSI targets or ATAPI devices couldn't correctly response readin= g/writing // big data in a single operation. - // This algorithem will at first try to execute original request. If the= request fails + // This algorithm will at first try to execute original request. If the = request fails // with media error sense data or else, it will reduce the transfer leng= th to half and // try again till the operation succeeds or fails with one sector transf= er length. // --=20 2.21.1