22 Jul, 2020

4 commits

  • When reading registers defined by the PCIe spec, use the names already
    defined by the PCI core. This makes maintenance of the PCI core and
    drivers easier. No functional change intended.

    Signed-off-by: Bjorn Helgaas
    Acked-by: Arnd Bergmann
    Link: https://lore.kernel.org/r/20200721212336.1159079-6-helgaas@kernel.org
    [ additional replacements due to changes in my tree - gregkh ]
    Signed-off-by: Greg Kroah-Hartman

    Bjorn Helgaas
     
  • Instead of hard-coding the location of the L1 PM Substates capability based
    on the Device ID, search for it in the extended capabilities list. This
    works for any device, as long as it implements the L1 PM Substates
    capability correctly, so it doesn't require maintenance as new devices are
    added. No functional change intended.

    Signed-off-by: Bjorn Helgaas
    Acked-by: Arnd Bergmann
    Link: https://lore.kernel.org/r/20200721212336.1159079-5-helgaas@kernel.org
    [ minor addition due to differences in my tree - gregkh]
    Signed-off-by: Greg Kroah-Hartman

    Bjorn Helgaas
     
  • rtsx_pci_read_config_dword() and similar wrappers around the PCI config
    accessors add very little value, and they obscure the fact that often we
    are accessing standard PCI registers that should be coordinated with the
    PCI core.

    Remove the wrappers and use the PCI config accessors directly. No
    functional change intended.

    Signed-off-by: Bjorn Helgaas
    Acked-by: Arnd Bergmann
    Link: https://lore.kernel.org/r/20200721212336.1159079-4-helgaas@kernel.org
    [ fixed up some other instances as original patch was based on old tree - gregkh
    Signed-off-by: Greg Kroah-Hartman

    Bjorn Helgaas
     
  • There are no more uses of struct rtsx_pcr.pcie_cap. Remove it.

    Signed-off-by: Bjorn Helgaas
    Acked-by: Arnd Bergmann
    Link: https://lore.kernel.org/r/20200721212336.1159079-3-helgaas@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Bjorn Helgaas
     

10 Jul, 2020

1 commit


22 May, 2020

3 commits

  • 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
    Link: https://lore.kernel.org/r/20200521180545.1159896-5-helgaas@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Bjorn Helgaas
     
  • 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
    Link: https://lore.kernel.org/r/20200521180545.1159896-3-helgaas@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Bjorn Helgaas
     
  • Remove the following unused function pointers from struct pcr_ops:

    int (*set_ltr_latency)(struct rtsx_pcr *pcr, u32 latency);
    int (*set_l1off_sub)(struct rtsx_pcr *pcr, u8 val);
    void (*full_on)(struct rtsx_pcr *pcr);
    void (*power_saving)(struct rtsx_pcr *pcr);

    Signed-off-by: Bjorn Helgaas
    Link: https://lore.kernel.org/r/20200521180545.1159896-2-helgaas@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Bjorn Helgaas
     

14 Nov, 2019

1 commit

  • 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
    Link: https://lore.kernel.org/r/1571645105-5028-1-git-send-email-rui_feng@realsil.com.cn
    Signed-off-by: Greg Kroah-Hartman

    Rui Feng
     

21 May, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 or at your option any
    later version this program is distributed in the hope that it will
    be useful but without any warranty without even the implied warranty
    of merchantability or fitness for a particular purpose see the gnu
    general public license for more details you should have received a
    copy of the gnu general public license along with this program if
    not see http www gnu org licenses

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 13 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Steve Winslow
    Reviewed-by: Jilayne Lovejoy
    Reviewed-by: Kate Stewart
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190519154042.236620792@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

01 Mar, 2018

1 commit

  • A change to the generic scatterlist code caused a conflict with
    the rtsx card reader driver:

    In file included from drivers/misc/cardreader/rtsx_pcr.c:32:
    include/linux/rtsx_pci.h:40: error: "SG_END" redefined [-Werror]

    This changes one instance of the driver to prefix SG_END and
    related constants.

    Fixes: 723fbf563a6a ("lib/scatterlist: Add SG_CHAIN and SG_END macros for LSB encodings")
    Cc: Anshuman Khandual
    Signed-off-by: Arnd Bergmann
    Signed-off-by: Jens Axboe

    Arnd Bergmann
     

30 Jan, 2018

1 commit

  • Pull MFD updates from Lee Jones:
    "New Drivers:
    - Add support for RAVE Supervisory Processor

    Moved drivers:
    - Move Realtek Card Reader Driver to Misc

    New Device Support:
    - Add support for Pinctrl to axp20x

    New Functionality:
    - Add resume support to atmel-flexcom

    Fix-ups:
    - Split MFD (mfd) and userspace handlers (platform) in cros_ec
    - Fix trivial (whitespace, spelling) issue(s) in pcf50633-core
    - Clean-up error handling in ab8500-debugfs
    - General tidying up in tmio_core
    - Kconfig fix-ups for qcom-pm8xxx
    - Licensing changes (SPDX) to stm32-lptimer, stm32-timers
    - Device Tree fixups in mc13xxx
    - Simplify/remove unused code in cros_ec_spi, axp20x, ti_am335x_tscadc,
    kempld-core, intel_soc_pmic_core.c, ab8500-debugfs"

    * tag 'mfd-next-4.16' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd: (32 commits)
    mfd: lpc_ich: Do not touch SPI-NOR write protection bit on Apollo Lake
    mfd: axp20x: Mark axp288 CHRG_BAK_CTRL register volatile
    mfd: ab8500: Introduce DEFINE_SHOW_ATTRIBUTE() macro
    atmel_flexcom: Support resuming after a chip reset
    mfd: Remove duplicate includes
    dt-bindings: mfd: mc13xxx: Add the unit address to sysled
    mfd: stm32: Adopt SPDX identifier
    mfd: axp20x: Add pinctrl cell for AXP813
    mfd: pm8xxx: Make elegible for COMPILE_TEST
    mfd: kempld-core: Use resource_size function on resource object
    mfd: tmio: Move register macros to tmio_core.c
    mfd: cros ec: spi: Simplify delay handling between SPI messages
    mfd: palmas: Assign the right powerhold mask for tps65917
    mfd: ab8500-debugfs: Use common error handling code in ab8500_print_modem_registers()
    mfd: ti_am335x_tscadc: Remove redundant assignment to node
    mfd: pcf50633: Fix spelling mistake: 'Falied' -> 'Failed'
    dt-bindings: watchdog: Add bindings for RAVE SP watchdog driver
    watchdog: Add RAVE SP watchdog driver
    mfd: Add driver for RAVE Supervisory Processor
    serdev: Introduce devm_serdev_device_open()
    ...

    Linus Torvalds
     

29 Nov, 2017

2 commits

  • Add support for new chip rts5260.
    In order to support rts5260, the definitions of
    some internal registers and workflow have to be
    modified and are different from its predecessors
    and OCP function is added for RTS5260. So we need
    this patch to ensure RTS5260 can work.

    Signed-off-by: Rui Feng
    Reviewed-by: Daniel Bristot de Oliveira
    Tested-by: Perry Yuan
    Signed-off-by: Lee Jones

    Rui Feng
     
  • Because Realtek card reader drivers are pcie and usb drivers,
    and they bridge mmc subsystem and memstick subsystem, they are
    not mfd drivers. Greg and Lee Jones had a discussion about
    where to put the drivers, the result is that misc is a good
    place for them, so I move all files to misc. If I don't move
    them to a right place, I can't add any patch for this driver.

    Signed-off-by: Rui Feng
    Reviewed-by: Daniel Bristot de Oliveira
    Acked-by: Arnd Bergmann
    Acked-by: Ulf Hansson
    Acked-by: Greg Kroah-Hartman
    Tested-by: Perry Yuan
    Signed-off-by: Lee Jones

    Rui Feng