]> 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>
Thu, 21 May 2020 18:05:43 +0000 (13:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 May 2020 07:38:13 +0000 (09:38 +0200)
commite211aaf586f2de6d66336be4d13e34473b9b065c
tree41036f3d6a12f55a2b15ac150fbb4df0f5f5ae17
parentb329afa078ba802648e6db95afb00cfb3e975dac
misc: rtsx: Use pcie_capability_clear_and_set_word() for PCI_EXP_LNKCTL

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

Remove the now-unused rtsx_pci_update_cfg_byte() and ASPM_MASK_NEG
definitions.

No functional change intended.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20200521180545.1159896-5-helgaas@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/cardreader/rts5249.c
drivers/misc/cardreader/rts5260.c
drivers/misc/cardreader/rts5261.c
drivers/misc/cardreader/rtsx_pcr.c
drivers/misc/cardreader/rtsx_pcr.h
include/linux/rtsx_pci.h