Commit e455b69d authored by Rui Feng's avatar Rui Feng Committed by Lee Jones

misc: rtsx: Move Realtek Card Reader Driver to misc

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: default avatarRui Feng <rui_feng@realsil.com.cn>
Reviewed-by: default avatarDaniel Bristot de Oliveira <bristot@redhat.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tested-by: default avatarPerry Yuan <perry_yuan@dell.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 4fbd8d19
...@@ -45,7 +45,7 @@ config MEMSTICK_R592 ...@@ -45,7 +45,7 @@ config MEMSTICK_R592
config MEMSTICK_REALTEK_PCI config MEMSTICK_REALTEK_PCI
tristate "Realtek PCI-E Memstick Card Interface Driver" tristate "Realtek PCI-E Memstick Card Interface Driver"
depends on MFD_RTSX_PCI depends on MISC_RTSX_PCI
help help
Say Y here to include driver code to support Memstick card interface Say Y here to include driver code to support Memstick card interface
of Realtek PCI-E card reader of Realtek PCI-E card reader
...@@ -55,7 +55,7 @@ config MEMSTICK_REALTEK_PCI ...@@ -55,7 +55,7 @@ config MEMSTICK_REALTEK_PCI
config MEMSTICK_REALTEK_USB config MEMSTICK_REALTEK_USB
tristate "Realtek USB Memstick Card Interface Driver" tristate "Realtek USB Memstick Card Interface Driver"
depends on MFD_RTSX_USB depends on MISC_RTSX_USB
help help
Say Y here to include driver code to support Memstick card interface Say Y here to include driver code to support Memstick card interface
of Realtek RTS5129/39 series USB card reader of Realtek RTS5129/39 series USB card reader
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/memstick.h> #include <linux/memstick.h>
#include <linux/mfd/rtsx_pci.h> #include <linux/rtsx_pci.h>
#include <asm/unaligned.h> #include <asm/unaligned.h>
struct realtek_pci_ms { struct realtek_pci_ms {
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include <linux/memstick.h> #include <linux/memstick.h>
#include <linux/kthread.h> #include <linux/kthread.h>
#include <linux/mfd/rtsx_usb.h> #include <linux/rtsx_usb.h>
#include <linux/pm_runtime.h> #include <linux/pm_runtime.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/sched.h> #include <linux/sched.h>
......
...@@ -929,17 +929,6 @@ config MFD_RDC321X ...@@ -929,17 +929,6 @@ config MFD_RDC321X
southbridge which provides access to GPIOs and Watchdog using the southbridge which provides access to GPIOs and Watchdog using the
southbridge PCI device configuration space. southbridge PCI device configuration space.
config MFD_RTSX_PCI
tristate "Realtek PCI-E card reader"
depends on PCI
select MFD_CORE
help
This supports for Realtek PCI-Express card reader including rts5209,
rts5227, rts522A, rts5229, rts5249, rts524A, rts525A, rtl8411, etc.
Realtek card reader supports access to many types of memory cards,
such as Memory Stick, Memory Stick Pro, Secure Digital and
MultiMediaCard.
config MFD_RT5033 config MFD_RT5033
tristate "Richtek RT5033 Power Management IC" tristate "Richtek RT5033 Power Management IC"
depends on I2C depends on I2C
...@@ -953,16 +942,6 @@ config MFD_RT5033 ...@@ -953,16 +942,6 @@ config MFD_RT5033
sub-devices like charger, fuel gauge, flash LED, current source, sub-devices like charger, fuel gauge, flash LED, current source,
LDO and Buck. LDO and Buck.
config MFD_RTSX_USB
tristate "Realtek USB card reader"
depends on USB
select MFD_CORE
help
Select this option to get support for Realtek USB 2.0 card readers
including RTS5129, RTS5139, RTS5179 and RTS5170.
Realtek card reader supports access to many types of memory cards,
such as Memory Stick Pro, Secure Digital and MultiMediaCard.
config MFD_RC5T583 config MFD_RC5T583
bool "Ricoh RC5T583 Power Management system device" bool "Ricoh RC5T583 Power Management system device"
depends on I2C=y depends on I2C=y
......
...@@ -19,10 +19,6 @@ obj-$(CONFIG_MFD_CROS_EC_I2C) += cros_ec_i2c.o ...@@ -19,10 +19,6 @@ obj-$(CONFIG_MFD_CROS_EC_I2C) += cros_ec_i2c.o
obj-$(CONFIG_MFD_CROS_EC_SPI) += cros_ec_spi.o obj-$(CONFIG_MFD_CROS_EC_SPI) += cros_ec_spi.o
obj-$(CONFIG_MFD_EXYNOS_LPASS) += exynos-lpass.o obj-$(CONFIG_MFD_EXYNOS_LPASS) += exynos-lpass.o
rtsx_pci-objs := rtsx_pcr.o rts5209.o rts5229.o rtl8411.o rts5227.o rts5249.o
obj-$(CONFIG_MFD_RTSX_PCI) += rtsx_pci.o
obj-$(CONFIG_MFD_RTSX_USB) += rtsx_usb.o
obj-$(CONFIG_HTC_PASIC3) += htc-pasic3.o obj-$(CONFIG_HTC_PASIC3) += htc-pasic3.o
obj-$(CONFIG_HTC_I2CPLD) += htc-i2cpld.o obj-$(CONFIG_HTC_I2CPLD) += htc-i2cpld.o
......
...@@ -496,6 +496,10 @@ config PCI_ENDPOINT_TEST ...@@ -496,6 +496,10 @@ config PCI_ENDPOINT_TEST
Enable this configuration option to enable the host side test driver Enable this configuration option to enable the host side test driver
for PCI Endpoint. for PCI Endpoint.
config MISC_RTSX
tristate
default MISC_RTSX_PCI || MISC_RTSX_USB
source "drivers/misc/c2port/Kconfig" source "drivers/misc/c2port/Kconfig"
source "drivers/misc/eeprom/Kconfig" source "drivers/misc/eeprom/Kconfig"
source "drivers/misc/cb710/Kconfig" source "drivers/misc/cb710/Kconfig"
...@@ -508,4 +512,5 @@ source "drivers/misc/mic/Kconfig" ...@@ -508,4 +512,5 @@ source "drivers/misc/mic/Kconfig"
source "drivers/misc/genwqe/Kconfig" source "drivers/misc/genwqe/Kconfig"
source "drivers/misc/echo/Kconfig" source "drivers/misc/echo/Kconfig"
source "drivers/misc/cxl/Kconfig" source "drivers/misc/cxl/Kconfig"
source "drivers/misc/cardreader/Kconfig"
endmenu endmenu
...@@ -55,6 +55,7 @@ obj-$(CONFIG_CXL_BASE) += cxl/ ...@@ -55,6 +55,7 @@ obj-$(CONFIG_CXL_BASE) += cxl/
obj-$(CONFIG_ASPEED_LPC_CTRL) += aspeed-lpc-ctrl.o obj-$(CONFIG_ASPEED_LPC_CTRL) += aspeed-lpc-ctrl.o
obj-$(CONFIG_ASPEED_LPC_SNOOP) += aspeed-lpc-snoop.o obj-$(CONFIG_ASPEED_LPC_SNOOP) += aspeed-lpc-snoop.o
obj-$(CONFIG_PCI_ENDPOINT_TEST) += pci_endpoint_test.o obj-$(CONFIG_PCI_ENDPOINT_TEST) += pci_endpoint_test.o
obj-$(CONFIG_MISC_RTSX) += cardreader/
lkdtm-$(CONFIG_LKDTM) += lkdtm_core.o lkdtm-$(CONFIG_LKDTM) += lkdtm_core.o
lkdtm-$(CONFIG_LKDTM) += lkdtm_bugs.o lkdtm-$(CONFIG_LKDTM) += lkdtm_bugs.o
......
config MISC_RTSX_PCI
tristate "Realtek PCI-E card reader"
depends on PCI
select MFD_CORE
help
This supports for Realtek PCI-Express card reader including rts5209,
rts5227, rts522A, rts5229, rts5249, rts524A, rts525A, rtl8411.
Realtek card readers support access to many types of memory cards,
such as Memory Stick, Memory Stick Pro, Secure Digital and
MultiMediaCard.
config MISC_RTSX_USB
tristate "Realtek USB card reader"
depends on USB
select MFD_CORE
help
Select this option to get support for Realtek USB 2.0 card readers
including RTS5129, RTS5139, RTS5179 and RTS5170.
Realtek card reader supports access to many types of memory cards,
such as Memory Stick Pro, Secure Digital and MultiMediaCard.
rtsx_pci-objs := rtsx_pcr.o rts5209.o rts5229.o rtl8411.o rts5227.o rts5249.o
obj-$(CONFIG_MISC_RTSX_PCI) += rtsx_pci.o
obj-$(CONFIG_MISC_RTSX_USB) += rtsx_usb.o
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/mfd/rtsx_pci.h> #include <linux/rtsx_pci.h>
#include "rtsx_pcr.h" #include "rtsx_pcr.h"
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/mfd/rtsx_pci.h> #include <linux/rtsx_pci.h>
#include "rtsx_pcr.h" #include "rtsx_pcr.h"
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/mfd/rtsx_pci.h> #include <linux/rtsx_pci.h>
#include "rtsx_pcr.h" #include "rtsx_pcr.h"
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/mfd/rtsx_pci.h> #include <linux/rtsx_pci.h>
#include "rtsx_pcr.h" #include "rtsx_pcr.h"
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/mfd/rtsx_pci.h> #include <linux/rtsx_pci.h>
#include "rtsx_pcr.h" #include "rtsx_pcr.h"
...@@ -738,4 +738,3 @@ void rts525a_init_params(struct rtsx_pcr *pcr) ...@@ -738,4 +738,3 @@ void rts525a_init_params(struct rtsx_pcr *pcr)
pcr->reg_pm_ctrl3 = RTS524A_PM_CTRL3; pcr->reg_pm_ctrl3 = RTS524A_PM_CTRL3;
pcr->ops = &rts525a_pcr_ops; pcr->ops = &rts525a_pcr_ops;
} }
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <linux/idr.h> #include <linux/idr.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/mfd/core.h> #include <linux/mfd/core.h>
#include <linux/mfd/rtsx_pci.h> #include <linux/rtsx_pci.h>
#include <linux/mmc/card.h> #include <linux/mmc/card.h>
#include <asm/unaligned.h> #include <asm/unaligned.h>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#ifndef __RTSX_PCR_H #ifndef __RTSX_PCR_H
#define __RTSX_PCR_H #define __RTSX_PCR_H
#include <linux/mfd/rtsx_pci.h> #include <linux/rtsx_pci.h>
#define MIN_DIV_N_PCR 80 #define MIN_DIV_N_PCR 80
#define MAX_DIV_N_PCR 208 #define MAX_DIV_N_PCR 208
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <linux/usb.h> #include <linux/usb.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/mfd/core.h> #include <linux/mfd/core.h>
#include <linux/mfd/rtsx_usb.h> #include <linux/rtsx_usb.h>
static int polling_pipe = 1; static int polling_pipe = 1;
module_param(polling_pipe, int, S_IRUGO | S_IWUSR); module_param(polling_pipe, int, S_IRUGO | S_IWUSR);
......
...@@ -838,14 +838,14 @@ config MMC_USDHI6ROL0 ...@@ -838,14 +838,14 @@ config MMC_USDHI6ROL0
config MMC_REALTEK_PCI config MMC_REALTEK_PCI
tristate "Realtek PCI-E SD/MMC Card Interface Driver" tristate "Realtek PCI-E SD/MMC Card Interface Driver"
depends on MFD_RTSX_PCI depends on MISC_RTSX_PCI
help help
Say Y here to include driver code to support SD/MMC card interface Say Y here to include driver code to support SD/MMC card interface
of Realtek PCI-E card reader of Realtek PCI-E card reader
config MMC_REALTEK_USB config MMC_REALTEK_USB
tristate "Realtek USB SD/MMC Card Interface Driver" tristate "Realtek USB SD/MMC Card Interface Driver"
depends on MFD_RTSX_USB depends on MISC_RTSX_USB
help help
Say Y here to include driver code to support SD/MMC card interface Say Y here to include driver code to support SD/MMC card interface
of Realtek RTS5129/39 series card reader of Realtek RTS5129/39 series card reader
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include <linux/mmc/sd.h> #include <linux/mmc/sd.h>
#include <linux/mmc/sdio.h> #include <linux/mmc/sdio.h>
#include <linux/mmc/card.h> #include <linux/mmc/card.h>
#include <linux/mfd/rtsx_pci.h> #include <linux/rtsx_pci.h>
#include <asm/unaligned.h> #include <asm/unaligned.h>
struct realtek_pci_sdmmc { struct realtek_pci_sdmmc {
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include <linux/scatterlist.h> #include <linux/scatterlist.h>
#include <linux/pm_runtime.h> #include <linux/pm_runtime.h>
#include <linux/mfd/rtsx_usb.h> #include <linux/rtsx_usb.h>
#include <asm/unaligned.h> #include <asm/unaligned.h>
#if defined(CONFIG_LEDS_CLASS) || (defined(CONFIG_LEDS_CLASS_MODULE) && \ #if defined(CONFIG_LEDS_CLASS) || (defined(CONFIG_LEDS_CLASS_MODULE) && \
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/mfd/rtsx_common.h> #include <linux/rtsx_common.h>
#define MAX_RW_REG_CNT 1024 #define MAX_RW_REG_CNT 1024
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment