mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-30 07:29:42 -05:00
PCI/ERR: Always report current recovery status for udev
A device still participates in error recovery even if it doesn't have the error callbacks. Always provide the status for user event watchers. Signed-off-by: Keith Busch <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Sinan Kaya <[email protected]>
This commit is contained in:
parent
542aeb9c8f
commit
7b42d97e99
1 changed files with 2 additions and 3 deletions
|
|
@ -70,9 +70,8 @@ static int report_error_detected(struct pci_dev *dev,
|
|||
} else {
|
||||
err_handler = dev->driver->err_handler;
|
||||
vote = err_handler->error_detected(dev, state);
|
||||
pci_uevent_ers(dev, PCI_ERS_RESULT_NONE);
|
||||
}
|
||||
|
||||
pci_uevent_ers(dev, vote);
|
||||
*result = merge_result(*result, vote);
|
||||
device_unlock(&dev->dev);
|
||||
return 0;
|
||||
|
|
@ -140,8 +139,8 @@ static int report_resume(struct pci_dev *dev, void *data)
|
|||
|
||||
err_handler = dev->driver->err_handler;
|
||||
err_handler->resume(dev);
|
||||
pci_uevent_ers(dev, PCI_ERS_RESULT_RECOVERED);
|
||||
out:
|
||||
pci_uevent_ers(dev, PCI_ERS_RESULT_RECOVERED);
|
||||
device_unlock(&dev->dev);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue