Files
system76-edk2/MdePkg/Include/Protocol
Julien Grall 13d378fc82 MdeModulePkg/SerialDxe: Fix return valued in SerialSetAttributes
SerialSetAttributes is meant to match the behavior of the function
EFI_SERIAL_IO_PROTOCOL.SetAttributes() in the UEFI spec (v2.7). This
means the function can only return:
    - EFI_SUCCESS
    - EFI_INVALID_PARAMETER
    - EFI_DEVICE_ERROR

However the function SerialPortSetAttributes may also validly return
EFI_UNSUPPORTED. For instance this is the case of the Xen Console
driver.

EFI_UNSUPPORTED could be also interpreted as "One or more of the attributes
has an unsupported value". So return EFI_INVALID_PARAMETER in that case.

Lastly, to prevent another return slipping in the future, all the errors
but EFI_INVALID_PARAMETER and EFI_UNSUPPORTED will return
EFI_DEVICE_ERROR.

Contributed-under: Tianocore Contribution Agreement 1.1
Signed-off-by: Julien Grall <julien.grall@linaro.org>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
2017-11-30 09:11:49 +08:00
..
2010-04-23 15:46:20 +00:00
2010-04-23 15:46:20 +00:00
2010-04-23 15:46:20 +00:00
2010-04-23 15:46:20 +00:00
2016-07-11 10:29:49 +08:00
2010-04-23 15:46:20 +00:00
2014-05-13 09:14:00 +00:00
2010-04-23 15:46:20 +00:00
2010-04-23 15:46:20 +00:00
2010-04-23 15:46:20 +00:00
2010-04-23 15:46:20 +00:00
2015-05-05 01:34:39 +00:00
2016-10-21 16:40:51 +08:00
2013-08-20 07:08:25 +00:00
2011-06-08 05:53:18 +00:00
2011-06-08 05:53:18 +00:00
2010-04-23 15:46:20 +00:00
2010-04-23 15:46:20 +00:00
2010-04-23 15:46:20 +00:00
2010-04-23 15:46:20 +00:00
2010-04-23 15:46:20 +00:00
2010-04-23 15:46:20 +00:00
2016-07-11 10:29:49 +08:00
2010-04-23 15:46:20 +00:00
2010-04-23 15:46:20 +00:00
2010-04-23 15:46:20 +00:00
2010-04-23 15:46:20 +00:00
2011-10-26 02:21:06 +00:00
2010-04-23 15:46:20 +00:00