OSDN Git Service

misc: rtsx: modify and fix init_hw function
authorRicky Wu <ricky_wu@realtek.com>
Wed, 2 Dec 2020 06:32:28 +0000 (14:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2020 18:42:01 +0000 (19:42 +0100)
commit121e9c6b5c4cad63e078f1fc5890f265521d2994
tree7067f36eb28856d56773bb09fd0b30c38f2e54ea
parentd928061c3143de36c17650ce7b60760fefb8336c
misc: rtsx: modify and fix init_hw function

changed rtsx_pci_disable_aspm() to rtsx_disable_aspm()
do not access ASPM configuration directly

changed pcie_capability_write_word() to _clear_and_set_word()
make sure only change PCI_EXP_LNKCTL bit8

make sure ASPM disable after extra_init_hw()

Signed-off-by: Ricky Wu <ricky_wu@realtek.com>
Link: https://lore.kernel.org/r/20201202063228.18319-1-ricky_wu@realtek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/cardreader/rtsx_pcr.c