mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-16 14:08:45 +00:00
efi_loader: EFI_BLOCK_IO_PROTOCOL.Reset()
We cannot do anything in EFI_BLOCK_IO_PROTOCOL.Reset() but this does not justify to return an error. Let EFI_BLOCK_IO_PROTOCOL.Reset() return EFI_SUCCESS. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
9d3f339881
commit
cda9b35272
1 changed files with 16 additions and 1 deletions
|
@ -41,11 +41,26 @@ struct efi_disk_obj {
|
|||
struct blk_desc *desc;
|
||||
};
|
||||
|
||||
/**
|
||||
* efi_disk_reset() - reset block device
|
||||
*
|
||||
* This function implements the Reset service of the EFI_BLOCK_IO_PROTOCOL.
|
||||
*
|
||||
* As U-Boot's block devices do not have a reset function simply return
|
||||
* EFI_SUCCESS.
|
||||
*
|
||||
* See the Unified Extensible Firmware Interface (UEFI) specification for
|
||||
* details.
|
||||
*
|
||||
* @this: pointer to the BLOCK_IO_PROTOCOL
|
||||
* @extended_verification: extended verification
|
||||
* Return: status code
|
||||
*/
|
||||
static efi_status_t EFIAPI efi_disk_reset(struct efi_block_io *this,
|
||||
char extended_verification)
|
||||
{
|
||||
EFI_ENTRY("%p, %x", this, extended_verification);
|
||||
return EFI_EXIT(EFI_DEVICE_ERROR);
|
||||
return EFI_EXIT(EFI_SUCCESS);
|
||||
}
|
||||
|
||||
enum efi_disk_direction {
|
||||
|
|
Loading…
Add table
Reference in a new issue