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:Bjorn Helgaas <bhelgaas@google.com> Stable-dep-of: e7e39756 ("PCI/ASPM: Avoid link retraining race") Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment