Commit 2413ced0 authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by sanglipeng
Browse files

PCI/ASPM: Return 0 or -ETIMEDOUT from pcie_retrain_link()

stable inclusion
from stable-v5.10.190
commit ffc0ee491f048043d60c1cef0001a02cdebb805d
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I928UI

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ffc0ee491f048043d60c1cef0001a02cdebb805d

--------------------------------

[ Upstream commit f5297a01 ]

"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: default avatarBjorn Helgaas <bhelgaas@google.com>
Stable-dep-of: e7e39756 ("PCI/ASPM: Avoid link retraining race")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 637fb6c4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment