]> www.infradead.org Git - users/hch/misc.git/commitdiff
PCI/ERR: Remove remnants of .link_reset() callback
authorLukas Wunner <lukas@wunner.de>
Wed, 13 Aug 2025 05:11:05 +0000 (07:11 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 13 Aug 2025 18:21:02 +0000 (13:21 -0500)
Back in 2017, commit 2fd260f03b6a ("PCI/AER: Remove unused .link_reset()
callback") removed .link_reset() from struct pci_error_handlers, but left
a few code comments behind which still mention it.  Remove them.

The code comments in the SolarFlare Ethernet drivers point out that no
.mmio_enabled() callback is needed because the driver's .error_detected()
callback always returns PCI_ERS_RESULT_NEED_RESET, which causes
pcie_do_recovery() to skip .mmio_enabled().  That's not quite correct
because efx_io_error_detected() does return PCI_ERS_RESULT_RECOVERED under
certain conditions and then .mmio_enabled() would indeed be called if it
were implemented.  Remove this misleading portion of the code comment as
well.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/1d72a891a7f57115e78a73046e776f7e0c8cd68f.1755008151.git.lukas@wunner.de
drivers/net/ethernet/sfc/efx_common.c
drivers/net/ethernet/sfc/falcon/efx.c
drivers/net/ethernet/sfc/siena/efx_common.c
drivers/scsi/lpfc/lpfc_init.c

index 5a14d94163b19f2013abb2e6f9a2d6a5fe16077d..e8fdbb62d8723357b680f9b8f2c810f48043911a 100644 (file)
@@ -1258,9 +1258,6 @@ out:
 
 /* For simplicity and reliability, we always require a slot reset and try to
  * reset the hardware when a pci error affecting the device is detected.
- * We leave both the link_reset and mmio_enabled callback unimplemented:
- * with our request for slot reset the mmio_enabled callback will never be
- * called, and the link_reset callback is not used by AER or EEH mechanisms.
  */
 const struct pci_error_handlers efx_err_handlers = {
        .error_detected = efx_io_error_detected,
index b07f7e4e287775aebdf158574cdc19e685611d06..0c784656fde98506b43eed23234e1c1b1547bc06 100644 (file)
@@ -3128,9 +3128,6 @@ out:
 
 /* For simplicity and reliability, we always require a slot reset and try to
  * reset the hardware when a pci error affecting the device is detected.
- * We leave both the link_reset and mmio_enabled callback unimplemented:
- * with our request for slot reset the mmio_enabled callback will never be
- * called, and the link_reset callback is not used by AER or EEH mechanisms.
  */
 static const struct pci_error_handlers ef4_err_handlers = {
        .error_detected = ef4_io_error_detected,
index a0966f8796645238feeab27da6f569b11d7a468b..35036cc902fe87d890a1af24c23ea4c5c9c9f4a4 100644 (file)
@@ -1285,9 +1285,6 @@ out:
 
 /* For simplicity and reliability, we always require a slot reset and try to
  * reset the hardware when a pci error affecting the device is detected.
- * We leave both the link_reset and mmio_enabled callback unimplemented:
- * with our request for slot reset the mmio_enabled callback will never be
- * called, and the link_reset callback is not used by AER or EEH mechanisms.
  */
 const struct pci_error_handlers efx_siena_err_handlers = {
        .error_detected = efx_io_error_detected,
index 4081d2a358eee8fe22b4b2356d789adedd1b490c..cf08bb5b37c32a77e67203951374b166400c1ea3 100644 (file)
@@ -14377,7 +14377,7 @@ lpfc_sli_prep_dev_for_perm_failure(struct lpfc_hba *phba)
  * as desired.
  *
  * Return codes
- *     PCI_ERS_RESULT_CAN_RECOVER - can be recovered with reset_link
+ *     PCI_ERS_RESULT_CAN_RECOVER - can be recovered without reset
  *     PCI_ERS_RESULT_NEED_RESET - need to reset before recovery
  *     PCI_ERS_RESULT_DISCONNECT - device could not be recovered
  **/