Skip to content

Commit 704e5dd

Browse files
niklas88bjorn-helgaas
authored andcommitted
powerpc/eeh: Use result of error_detected() in uevent
Ever since uevent support was added for AER and EEH with commit 856e1eb ("PCI/AER: Add uevents in AER and EEH error/resume"), it reported PCI_ERS_RESULT_NONE as uevent when recovery begins. Commit 7b42d97 ("PCI/ERR: Always report current recovery status for udev") subsequently amended AER to report the actual return value of error_detected(). Make the same change to EEH to align it with AER and s390. Suggested-by: Lukas Wunner <lukas@wunner.de> Link: https://lore.kernel.org/linux-pci/aIp6LiKJor9KLVpv@wunner.de/ Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Lukas Wunner <lukas@wunner.de> Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> Acked-by: Mahesh Salgaonkar <mahesh@linux.ibm.com> Link: https://patch.msgid.link/20250807-add_err_uevents-v5-3-adf85b0620b0@linux.ibm.com
1 parent dab32f2 commit 704e5dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/powerpc/kernel/eeh_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ static enum pci_ers_result eeh_report_error(struct eeh_dev *edev,
334334
rc = driver->err_handler->error_detected(pdev, pci_channel_io_frozen);
335335

336336
edev->in_error = true;
337-
pci_uevent_ers(pdev, PCI_ERS_RESULT_NONE);
337+
pci_uevent_ers(pdev, rc);
338338
return rc;
339339
}
340340

0 commit comments

Comments
 (0)