]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/MptScsiDxe/MptScsi.c
OvmfPkg/MptScsiDxe: Set and restore PCI attributes
authorNikita Leshenko <nikita.leshchenko@oracle.com>
Mon, 4 May 2020 21:06:04 +0000 (00:06 +0300)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 5 May 2020 20:43:02 +0000 (20:43 +0000)
commitecdbdba636b6bac706641ca47aa973193079a3cc
tree0524a6147746fcecbea220fcc4a42fe04cb45108
parentda8c0b8f4d2df23de249580a595afea76b5185fd
OvmfPkg/MptScsiDxe: Set and restore PCI attributes

Enable the IO Space and Bus Mastering and restore the original values
when the device is stopped. This is a standard procedure in PCI
drivers.

Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390
Signed-off-by: Nikita Leshenko <nikita.leshchenko@oracle.com>
Reviewed-by: Liran Alon <liran.alon@oracle.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20200504210607.144434-10-nikita.leshchenko@oracle.com>
OvmfPkg/MptScsiDxe/MptScsi.c