]> git.baikalelectronics.ru Git - kernel.git/commit
misc: rtsx: Use pcie_capability_clear_and_set_word() for PCI_EXP_LNKCTL
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 21 Jul 2020 21:23:32 +0000 (16:23 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2020 11:21:51 +0000 (13:21 +0200)
commitfb0bf2fc4a5c7b5fb0108397b8ceeaad2302cc21
tree3f7e9da9b01e1e89a57029e5d27f8a657c0ced82
parentaf934aaa36826acbddaa1c415d179c0b24827cfe
misc: rtsx: Use pcie_capability_clear_and_set_word() for PCI_EXP_LNKCTL

Instead of using the driver-specific rtsx_pci_write_config_byte() to update
the PCIe Link Control Register, use pcie_capability_write_word() like the
rest of the kernel does.  This makes it easier to maintain ASPM across the
PCI core and drivers.

No functional change intended.  I missed this when doing 78dc4f4a1977
("misc: rtsx: Use pcie_capability_clear_and_set_word() for
PCI_EXP_LNKCTL").

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20200721212336.1159079-2-helgaas@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/cardreader/rtsx_pcr.c