mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 17:44:14 +08:00
e09060b3b6
Don't assume that the device is fully under the control of ASPM and use RMW capability accessors which do proper locking to avoid losing concurrent updates to the register values. If configuration fails in pcie_aspm_configure_common_clock(), the function attempts to restore the old PCI_EXP_LNKCTL_CCC settings. Store only the old PCI_EXP_LNKCTL_CCC bit for the relevant devices rather than the content of the whole LNKCTL registers. It aligns better with how pcie_lnkctl_clear_and_set() expects its parameter and makes the code more obvious to understand. Suggested-by: Lukas Wunner <lukas@wunner.de> Fixes: |
||
---|---|---|
.. | ||
aer_inject.c | ||
aer.c | ||
aspm.c | ||
dpc.c | ||
edr.c | ||
err.c | ||
Kconfig | ||
Makefile | ||
pme.c | ||
portdrv.c | ||
portdrv.h | ||
ptm.c | ||
rcec.c |