PCI/ASPM: Return 0 or -ETIMEDOUT from pcie_retrain_link()
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 20 Jun 2023 19:44:55 +0000 (14:44 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 20 Jun 2023 19:58:31 +0000 (14:58 -0500)
commitf5297a01ee805d7fa569d288ed65fc0f9ac9b03d
tree08dd2e5e337c9fc3f2a5338011cda8cc714140c1
parent911afb9f9516a8ea2db1d15b18436c19a591dc5c
PCI/ASPM: Return 0 or -ETIMEDOUT from  pcie_retrain_link()

"pcie_retrain_link" is not a question with a true/false answer, so "bool"
isn't quite the right return type.  Return 0 for success or -ETIMEDOUT if
the retrain failed.  No functional change intended.

[bhelgaas: based on Ilpo's patch below]
Link: https://lore.kernel.org/r/20230502083923.34562-1-ilpo.jarvinen@linux.intel.com
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aspm.c