Bjorn Helgaas
3d1e7aa80d
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 >
2020-05-22 09:38:13 +02:00
Bjorn Helgaas
51876e22bf
misc: rtsx: Removed unused dev_aspm_mode
...
The struct rtsx_cr_option.dev_aspm_mode member is never set to anything
other than DEV_ASPM_DYNAMIC (0). Remove it and code that tests it. No
functional change intended.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com >
Link: https://lore.kernel.org/r/20200521180545.1159896-3-helgaas@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-05-22 09:38:12 +02:00
Rui Feng
c18c1f1035
misc: rtsx: Improve compatibility for rts5261
...
Change initial clock to improve compatibility for rts5261
Signed-off-by: Rui Feng <rui_feng@realsil.com.cn >
Link: https://lore.kernel.org/r/1586918237-3016-1-git-send-email-rui_feng@realsil.com.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-04-23 16:55:24 +02:00
Ricky Wu
4686392c32
mmc: rtsx_pci: Fix support for speed-modes that relies on tuning
...
The TX/RX register should not be treated the same way to allow for better
support of tuning. Fix this by using a default initial value for TX.
Signed-off-by: Ricky Wu <ricky_wu@realtek.com >
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200316025232.1167-1-ricky_wu@realtek.com
[Ulf: Updated changelog]
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-03-18 11:55:02 +01:00
Rui Feng
4d6168314d
misc: rtsx: Fix impossible condition
...
A u8 can only go up to 255, condition n > 396 is
impossible, so change u8 to u16.
Signed-off-by: Rui Feng <rui_feng@realsil.com.cn >
Link: https://lore.kernel.org/r/1574214006-13540-1-git-send-email-rui_feng@realsil.com.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-01-14 15:06:07 +01:00
Rui Feng
c0e5f4e73a
misc: rtsx: Add support for RTS5261
...
Add support for new chip rts5261.
In order to support rts5261, the definitions of some internal registers
and workflow have to be modified and are different from its predecessors.
So we need this patch to ensure RTS5261 can work.
Signed-off-by: Rui Feng <rui_feng@realsil.com.cn >
Link: https://lore.kernel.org/r/1571645105-5028-1-git-send-email-rui_feng@realsil.com.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-14 13:07:48 +08:00