mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 18:23:53 +08:00
staging: gasket: interrupt: remove PCI-MSIX-specific status check
Devices not using MSIX don't use the msix_initialized field, so don't require it to be set in the interrupt system status check. The general check for interrupts configured that follows can cover both MSIX and device-managed interrupts. Signed-off-by: Todd Poynor <toddpoynor@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a15087ec16
commit
467976ff6e
@ -478,11 +478,6 @@ int gasket_interrupt_system_status(struct gasket_dev *gasket_dev)
|
||||
return GASKET_STATUS_DEAD;
|
||||
}
|
||||
|
||||
if (!gasket_dev->interrupt_data->msix_configured) {
|
||||
dev_dbg(gasket_dev->dev, "Interrupt not initialized\n");
|
||||
return GASKET_STATUS_LAMED;
|
||||
}
|
||||
|
||||
if (gasket_dev->interrupt_data->num_configured !=
|
||||
gasket_dev->interrupt_data->num_interrupts) {
|
||||
dev_dbg(gasket_dev->dev,
|
||||
|
Loading…
Reference in New Issue
Block a user