Revision: 17368
          http://sourceforge.net/p/edk2/code/17368
Author:   niruiyu
Date:     2015-05-08 07:30:45 +0000 (Fri, 08 May 2015)
Log Message:
-----------
MdePkg, MdeModulePkg: Remove EFI_ABORTED from I2C protocols per PI spec 1.4.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <[email protected]>
Reviewed-by: Jie Lin <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdeModulePkg/Bus/I2c/I2cDxe/I2cBus.c
    trunk/edk2/MdeModulePkg/Bus/I2c/I2cDxe/I2cHost.c
    trunk/edk2/MdePkg/Include/Protocol/I2cHost.h
    trunk/edk2/MdePkg/Include/Protocol/I2cIo.h

Modified: trunk/edk2/MdeModulePkg/Bus/I2c/I2cDxe/I2cBus.c
===================================================================
--- trunk/edk2/MdeModulePkg/Bus/I2c/I2cDxe/I2cBus.c     2015-05-08 07:30:03 UTC 
(rev 17367)
+++ trunk/edk2/MdeModulePkg/Bus/I2c/I2cDxe/I2cBus.c     2015-05-08 07:30:45 UTC 
(rev 17368)
@@ -2,7 +2,7 @@
   This file implements I2C IO Protocol which enables the user to manipulate a 
single 
   I2C device independent of the host controller and I2C design.
 
-  Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>
   This program and the accompanying materials
   are licensed and made available under the terms and conditions of the BSD 
License
   which accompanies this distribution.  The full text of the license may be 
found at
@@ -1108,8 +1108,6 @@
                                 queued when Event is not NULL.
   @retval EFI_SUCCESS           The transaction completed successfully when
                                 Event is NULL.
-  @retval EFI_ABORTED           The request did not complete because the driver
-                                binding Stop() routine was called.
   @retval EFI_BAD_BUFFER_SIZE   The RequestPacket->LengthInBytes value is too
                                 large.
   @retval EFI_DEVICE_ERROR      There was an I2C error (NACK) during the

Modified: trunk/edk2/MdeModulePkg/Bus/I2c/I2cDxe/I2cHost.c
===================================================================
--- trunk/edk2/MdeModulePkg/Bus/I2c/I2cDxe/I2cHost.c    2015-05-08 07:30:03 UTC 
(rev 17367)
+++ trunk/edk2/MdeModulePkg/Bus/I2c/I2cDxe/I2cHost.c    2015-05-08 07:30:45 UTC 
(rev 17368)
@@ -3,7 +3,7 @@
   do I/O transactions to all of the devices on the I2C bus.
 
   Copyright (c) 2014, Hewlett-Packard Development Company, L.P.<BR>
-  Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>
   This program and the accompanying materials
   are licensed and made available under the terms and conditions of the BSD 
License
   which accompanies this distribution.  The full text of the license may be 
found at
@@ -896,8 +896,6 @@
                               completion status
 
   @retval EFI_SUCCESS           The operation completed successfully.
-  @retval EFI_ABORTED           The request did not complete because the driver
-                                was shutdown.
   @retval EFI_BAD_BUFFER_SIZE   The WriteBytes or ReadBytes buffer size is too 
large.
   @retval EFI_DEVICE_ERROR      There was an I2C error (NACK) during the 
operation.
                                 This could indicate the slave device is not 
present.

Modified: trunk/edk2/MdePkg/Include/Protocol/I2cHost.h
===================================================================
--- trunk/edk2/MdePkg/Include/Protocol/I2cHost.h        2015-05-08 07:30:03 UTC 
(rev 17367)
+++ trunk/edk2/MdePkg/Include/Protocol/I2cHost.h        2015-05-08 07:30:45 UTC 
(rev 17368)
@@ -4,7 +4,7 @@
   This protocol provides callers with the ability to do I/O transactions 
   to all of the devices on the I2C bus.
 
-  Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>
   This program and the accompanying materials                          
   are licensed and made available under the terms and conditions of the BSD 
License         
   which accompanies this distribution.  The full text of the license may be 
found at        
@@ -72,12 +72,6 @@
   the I2C host protocol calls the I2C master protocol to start the
   I2C transaction.
 
-  If the I2C host protocol has pending I2C transactions queued when
-  the driver binding Stop() routine is called then the I2C host
-  protocol completes all of the pending I2C transactions by returning
-  EFI_ABORTED status.  This notifies the upper layers allowing them
-  to take corrective action or prepare to stop.
-
   When Event is NULL, QueueRequest() operates synchronously and
   returns the I2C completion status as its return value.
 
@@ -107,8 +101,6 @@
                                 queued when Event is not NULL.
   @retval EFI_SUCCESS           The transaction completed successfully when
                                 Event is NULL.
-  @retval EFI_ABORTED           The request did not complete because the
-                                driver binding Stop() routine was called.
   @retval EFI_BAD_BUFFER_SIZE   The RequestPacket->LengthInBytes value is
                                 too large.
   @retval EFI_DEVICE_ERROR      There was an I2C error (NACK) during the

Modified: trunk/edk2/MdePkg/Include/Protocol/I2cIo.h
===================================================================
--- trunk/edk2/MdePkg/Include/Protocol/I2cIo.h  2015-05-08 07:30:03 UTC (rev 
17367)
+++ trunk/edk2/MdePkg/Include/Protocol/I2cIo.h  2015-05-08 07:30:45 UTC (rev 
17368)
@@ -4,7 +4,7 @@
   The EFI I2C I/O protocol enables the user to manipulate a single 
   I2C device independent of the host controller and I2C design.
 
-  Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>
   This program and the accompanying materials                          
   are licensed and made available under the terms and conditions of the BSD 
License         
   which accompanies this distribution.  The full text of the license may be 
found at        
@@ -100,8 +100,6 @@
                                 queued when Event is not NULL.
   @retval EFI_SUCCESS           The transaction completed successfully when
                                 Event is NULL.
-  @retval EFI_ABORTED           The request did not complete because the driver
-                                binding Stop() routine was called.
   @retval EFI_BAD_BUFFER_SIZE   The RequestPacket->LengthInBytes value is too
                                 large.
   @retval EFI_DEVICE_ERROR      There was an I2C error (NACK) during the


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to