[PATCH 8/8] misc: rtsx: Fix clock timing for RTS5261

2020-11-03 Thread rui_feng
From: Rui Feng This patch fix clock timing for RTS5261, using 256 divide for the version higher than version C. Signed-off-by: Rui Feng --- drivers/misc/cardreader/rts5261.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/cardreader/rts5261.c

[PATCH 5/8] misc: rtsx: Check mmc support for RTS5261

2020-11-03 Thread rui_feng
From: Rui Feng This patch check mmc support when RTS5261 initialize, and not support mmc default. Signed-off-by: Rui Feng --- drivers/misc/cardreader/rts5261.c | 8 drivers/misc/cardreader/rts5261.h | 2 ++ 2 files changed, 10 insertions(+) diff --git

[PATCH 6/8] misc: rtsx: Add CD & WP reverse support for RTS5261

2020-11-03 Thread rui_feng
From: Rui Feng This patch add CD & WP reverse support for RTS5261 Signed-off-by: Rui Feng --- drivers/misc/cardreader/rts5261.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/misc/cardreader/rts5261.c b/drivers/misc/cardreader/rts5261.c index ce65c5703453..0ef6b3e04a8d

[PATCH 7/8] misc: rtsx: Add hardware auto power off for RTS5261

2020-11-03 Thread rui_feng
From: Rui Feng This patch enable hardware auto power off when card is removed. Signed-off-by: Rui Feng --- drivers/misc/cardreader/rts5261.c | 9 + include/linux/rtsx_pci.h | 3 +++ 2 files changed, 12 insertions(+) diff --git a/drivers/misc/cardreader/rts5261.c

[PATCH 4/8] misc: rtsx: Fix PAD driving for RTS5261

2020-11-03 Thread rui_feng
From: Rui Feng This patch fix PAD driving for RTS5261 Signed-off-by: Rui Feng --- drivers/misc/cardreader/rts5261.c | 15 ++- drivers/misc/cardreader/rts5261.h | 6 ++ 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/drivers/misc/cardreader/rts5261.c

[PATCH 2/8] misc: rtsx: Fix OCP function for RTS5261

2020-11-03 Thread rui_feng
From: Rui Feng This patch fix the bug that when there is over current but reader can't enable OCP. Signed-off-by: Rui Feng --- drivers/misc/cardreader/rts5261.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/misc/cardreader/rts5261.c

[PATCH 3/8] misc: rtsx: Fix aspm for RTS5261

2020-11-03 Thread rui_feng
From: Rui Feng This patch fix the bug that LDO is off when aspm is enabled. Signed-off-by: Rui Feng --- drivers/misc/cardreader/rts5261.c | 10 +- drivers/misc/cardreader/rts5261.h | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git

[PATCH 1/8] mmc: rtsx: Add test mode for RTS5261

2020-11-03 Thread rui_feng
From: Rui Feng This patch add test mode for RTS5261. If test mode is set, reader will switch to SD Express mode mandatorily, and this mode is used by factory testing only. Signed-off-by: Rui Feng --- drivers/misc/cardreader/rts5261.h | 5 - drivers/mmc/host/rtsx_pci_sdmmc.c | 19

[PATCH] misc: rtsx: Fix some bugs and add test mode for rts5261

2020-11-02 Thread rui_feng
From: Rui Feng 1.Add force test mode 2.Fix OCP function 3.Use aspm in way of backdoor 4.Fix PAD driving 5.Not support MMC default 6.Support CD reverse 7.Add hardware auto power down when unplug card Signed-off-by: Rui Feng --- drivers/misc/cardreader/rts5261.c | 59

[PATCH v3 3/3] mmc: rtsx: Add SD Express mode support for RTS5261

2020-10-28 Thread rui_feng
From: Rui Feng RTS5261 support SD mode and PCIe/NVMe mode. The workflow is as follows. 1.RTS5261 work in SD mode and set MMC_CAPS2_SD_EXP flag. 2.If card is plugged in, Host send CMD8 to ask card's PCIe availability. 3.If the card has PCIe availability and WP is not set, init_sd_express() will

[PATCH v3 2/3] misc: rtsx: Add SD Express mode support for RTS5261

2020-10-28 Thread rui_feng
From: Rui Feng RTS5261 support SD mode and PCIe/NVMe mode. The workflow is as follows. 1.RTS5261 work in SD mode and set MMC_CAPS2_SD_EXP flag. 2.If card is plugged in, Host send CMD8 to ask card's PCIe availability. 3.If the card has PCIe availability and WP is not set, init_sd_express() will

[PATCH v3 1/3] mmc: core: Initial support for SD express card/host

2020-10-28 Thread rui_feng
From: Ulf Hansson In the SD specification v7.10 the SD express card has been added. This new type of removable SD card, can be managed via a PCIe/NVMe based interface, while also allowing backwards compatibility towards the legacy SD interface. To keep the backwards compatibility, it's required

[PATCH v2 3/3] mmc: rtsx: Add SD Express mode support for RTS5261

2020-10-22 Thread rui_feng
From: Rui Feng RTS5261 support SD mode and PCIe/NVMe mode. The workflow is as follows. 1.RTS5261 work in SD mode and set MMC_CAPS2_SD_EXP flag. 2.If card is plugged in, Host send CMD8 to ask card's PCIe availability. 3.If the card has PCIe availability and WP is not set, init_sd_express() will

[PATCH v2 2/3] misc: rtsx: Add SD Express mode support for RTS5261

2020-10-22 Thread rui_feng
From: Rui Feng RTS5261 support SD mode and PCIe/NVMe mode. The workflow is as follows. 1.RTS5261 work in SD mode and set MMC_CAPS2_SD_EXP flag. 2.If card is plugged in, Host send CMD8 to ask card's PCIe availability. 3.If the card has PCIe availability and WP is not set, init_sd_express() will

[PATCH v2 1/3] mmc: core: Initial support for SD express card/host

2020-10-22 Thread rui_feng
From: Ulf Hansson In the SD specification v7.10 the SD express card has been added. This new type of removable SD card, can be managed via a PCIe/NVMe based interface, while also allowing backwards compatibility towards the legacy SD interface. To keep the backwards compatibility, it's required

[PATCH 3/3] mmc: rtsx: Add SD Express mode support for RTS5261

2020-09-24 Thread rui_feng
From: Rui Feng RTS5261 support legacy SD mode and SD Express mode. In SD7.x, SD association introduce SD Express as a new mode. This patch makes RTS5261 support SD Express mode. Signed-off-by: Rui Feng --- drivers/mmc/host/rtsx_pci_sdmmc.c | 59 +++ 1 file changed,

[PATCH 2/3] misc: rtsx: Add SD Express mode support for RTS5261

2020-09-24 Thread rui_feng
From: Rui Feng RTS5261 support legacy SD mode and SD Express mode. In SD7.x, SD association introduce SD Express as a new mode. This patch makes RTS5261 support SD Express mode. Signed-off-by: Rui Feng --- drivers/misc/cardreader/rts5261.c | 4 drivers/misc/cardreader/rts5261.h | 23

[PATCH 1/3] mmc: core: Initial support for SD express card/host

2020-09-24 Thread rui_feng
From: Ulf Hansson In the SD specification v7.10 the SD express card has been added. This new type of removable SD card, can be managed via a PCIe/NVMe based interface, while also allowing backwards compatibility towards the legacy SD interface. To keep the backwards compatibility, it's required

[PATCH] mmc: rtsx: Add SD Express mode support for RTS5261

2020-09-24 Thread rui_feng
From: Rui Feng RTS5261 support legacy SD mode and SD Express mode. In SD7.x, SD association introduce SD Express as a new mode. This patch makes RTS5261 support SD Express mode, and this patch is based on patch "mmc: core: Initial support for SD express card/host" committed by Ulf Hansson.

[PATCH] [V2] mmc: rtsx: Add SD Express mode support for RTS5261

2020-05-19 Thread rui_feng
From: rui_feng RTS5261 support legacy SD mode and SD Express mode. In SD7.x, SD association introduce SD Express as a new mode. SD Express mode is distinguished by CMD8. Therefore, CMD8 has new bit for SD Express. SD Express is based on PCIe/NVMe. RTS5261 uses CMD8 to switch to SD Express mode

[PATCH] misc: rtsx: Add support for RTS5261

2019-10-21 Thread rui_feng
From: Rui Feng 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 ---

[PATCH v8,2/2] misc: rtsx: Add support for RTS5260

2017-11-29 Thread rui_feng
From: Rui Feng 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

[PATCH v8,2/2] misc: rtsx: Add support for RTS5260

2017-11-29 Thread rui_feng
From: Rui Feng 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.

[PATCH v8,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-11-29 Thread rui_feng
From: 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

[PATCH v8,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-11-29 Thread rui_feng
From: 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

[PATCH v7,2/2] misc: rtsx: Add support for RTS5260

2017-11-26 Thread rui_feng
From: Rui Feng 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

[PATCH v7,2/2] misc: rtsx: Add support for RTS5260

2017-11-26 Thread rui_feng
From: Rui Feng 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.

[PATCH v7,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-11-26 Thread rui_feng
From: 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

[PATCH v7,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-11-26 Thread rui_feng
From: 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

[PATCH v6,2/2] misc: rtsx: Add support for RTS5260

2017-11-23 Thread rui_feng
From: Rui Feng 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

[PATCH v6,2/2] misc: rtsx: Add support for RTS5260

2017-11-23 Thread rui_feng
From: Rui Feng 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.

[PATCH v6,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-11-23 Thread rui_feng
From: 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

[PATCH v6,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-11-23 Thread rui_feng
From: 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

[PATCH v5,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-11-19 Thread rui_feng
From: 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

[PATCH v5,2/2] misc: rtsx: Add support for RTS5260

2017-11-19 Thread rui_feng
From: Rui Feng 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

[PATCH v5,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-11-19 Thread rui_feng
From: 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

[PATCH v5,2/2] misc: rtsx: Add support for RTS5260

2017-11-19 Thread rui_feng
From: Rui Feng 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.

[PATCH v4,2/2] misc: rtsx: Add support for RTS5260

2017-11-17 Thread rui_feng
From: Rui Feng 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

[PATCH v4,2/2] misc: rtsx: Add support for RTS5260

2017-11-17 Thread rui_feng
From: Rui Feng 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.

[PATCH v4,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-11-17 Thread rui_feng
From: 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

[PATCH v4,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-11-17 Thread rui_feng
From: 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

[PATCH v3,2/2] misc: rtsx: Add support for RTS5260

2017-11-08 Thread rui_feng
From: Rui Feng 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

[PATCH v3,2/2] misc: rtsx: Add support for RTS5260

2017-11-08 Thread rui_feng
From: Rui Feng 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.

[PATCH v3,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-11-08 Thread rui_feng
From: 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

[PATCH v3,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-11-08 Thread rui_feng
From: 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

[PATCH v2,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-10-26 Thread rui_feng
From: 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

[PATCH v2,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-10-26 Thread rui_feng
From: 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

[PATCH v2,2/2] misc: rtsx: Add support for RTS5260

2017-10-25 Thread rui_feng
From: Rui Feng 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

[PATCH v2,2/2] misc: rtsx: Add support for RTS5260

2017-10-25 Thread rui_feng
From: Rui Feng 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.

[PATCH v2,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-10-25 Thread rui_feng
From: 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

[PATCH v2,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-10-25 Thread rui_feng
From: 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

[PATCH 1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-10-25 Thread rui_feng
From: Rui Feng Because Realtek PCIE card reader driver is a pcie driver, and it bridges mmc subsystem and memstick subsystem, it's not a mfd driver. Greg and Lee Jones had a discussion about where to put the driver, the result is that misc is a good place for it, so I

[PATCH 1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-10-25 Thread rui_feng
From: Rui Feng Because Realtek PCIE card reader driver is a pcie driver, and it bridges mmc subsystem and memstick subsystem, it's not a mfd driver. Greg and Lee Jones had a discussion about where to put the driver, the result is that misc is a good place for it, so I move all files to misc. If

[PATCH 1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-10-25 Thread rui_feng
From: rui_feng <rui_f...@realsil.com.cn> Because Realtek PCIE card reader driver is a pcie driver, and it bridges mmc subsystem and memstick subsystem, it's not a mfd driver. Greg and Lee Jones had a discussion about where to put the driver, the result is that misc is a good place for it

[PATCH 1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-10-25 Thread rui_feng
From: rui_feng Because Realtek PCIE card reader driver is a pcie driver, and it bridges mmc subsystem and memstick subsystem, it's not a mfd driver. Greg and Lee Jones had a discussion about where to put the driver, the result is that misc is a good place for it, so I move all files to misc

[PATCH 2/2] misc: rtsx: Add support for RTS5260

2017-10-18 Thread rui_feng
From: Rui Feng 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

[PATCH 2/2] misc: rtsx: Add support for RTS5260

2017-10-18 Thread rui_feng
From: Rui Feng 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.

[PATCH 1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-10-18 Thread rui_feng
From: Rui Feng Because Realtek PCIE card reader driver is a pcie driver, and it bridges mmc subsystem and memstick subsystem, it's not a mfd driver. Greg and Lee Jones had a discussion about where to put the driver, the result is that misc is a good place for it, so I

[PATCH 1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-10-18 Thread rui_feng
From: Rui Feng Because Realtek PCIE card reader driver is a pcie driver, and it bridges mmc subsystem and memstick subsystem, it's not a mfd driver. Greg and Lee Jones had a discussion about where to put the driver, the result is that misc is a good place for it, so I move all files to misc. If

[PATCH] misc: rtsx: Add support for RTS5260

2017-10-18 Thread rui_feng
From: rui_feng <rui_f...@realsil.com.cn> 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

[PATCH] misc: rtsx: Add support for RTS5260

2017-10-18 Thread rui_feng
From: rui_feng 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

[PATCH] misc: rtsx: Add support for RTS5260

2017-10-16 Thread rui_feng
From: rui_feng <rui_f...@realsil.com.cn> 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 R

[PATCH] misc: rtsx: Add support for RTS5260

2017-10-16 Thread rui_feng
From: rui_feng 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

[PATCH] staging: rtsx: Add support for RTS5260

2017-10-13 Thread rui_feng
From: rui_feng <rui_f...@realsil.com.cn> 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 R

[PATCH] staging: rtsx: Add support for RTS5260

2017-10-13 Thread rui_feng
From: rui_feng 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

[PATCH] mfd: rtsx: Add support for RTS5260

2017-09-22 Thread rui_feng
From: rui_feng <rui_f...@realsil.com.cn> 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. So we need this patch to ensure RTS5260 can work. Signed-off-by: Ru

[PATCH] mfd: rtsx: Add support for RTS5260

2017-09-22 Thread rui_feng
From: rui_feng 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. So we need this patch to ensure RTS5260 can work. Signed-off-by: Rui Feng --- drivers/mfd/Makefile

[PATCH] mmc: rtsx: fix tuning fail on gen3 PCI-Express

2017-09-22 Thread rui_feng
From: rui_feng <rui_f...@realsil.com.cn> On gen3 PCI-Express we should send command one by one. If sending many commands in one packet will lead to a failure. Signed-off-by: rui_feng <rui_f...@realsil.com.cn> --- drivers/mmc/host/rtsx_pci_

[PATCH] mmc: rtsx: fix tuning fail on gen3 PCI-Express

2017-09-22 Thread rui_feng
From: rui_feng On gen3 PCI-Express we should send command one by one. If sending many commands in one packet will lead to a failure. Signed-off-by: rui_feng --- drivers/mmc/host/rtsx_pci_sdmmc.c | 38 ++ include/linux/mfd/rtsx_pci.h | 1 + 2 files

[PATCH] mfd: rtsx: Add support for RTS5260

2017-09-08 Thread rui_feng
From: rui_feng <rui_f...@realsil.com.cn> Add support for new chip rts5260. Signed-off-by: Rui Feng <rui_f...@realsil.com.cn> --- drivers/mfd/Makefile | 2 +- drivers/mfd/rts5260.c| 543 +++ drivers/mfd/rtsx_pcr.c |

[PATCH] mfd: rtsx: Add support for RTS5260

2017-09-08 Thread rui_feng
From: rui_feng Add support for new chip rts5260. Signed-off-by: Rui Feng --- drivers/mfd/Makefile | 2 +- drivers/mfd/rts5260.c| 543 +++ drivers/mfd/rtsx_pcr.c | 8 + drivers/mfd/rtsx_pcr.h | 1 + include/linux/mfd

[PATCH v6] mfd: Add support for RTS5250S power saving

2017-09-07 Thread rui_feng
From: Rui Feng Enable power saving for RTS5250S as following steps: 1.Set 0xFE58 to enable clock power management. 2.Check cfg space whether support L1SS or not. 3.If support L1SS, set 0xFF03 to free clkreq. 4.When entering idle status, enable aspm and set parameters

[PATCH v6] mfd: Add support for RTS5250S power saving

2017-09-07 Thread rui_feng
From: Rui Feng Enable power saving for RTS5250S as following steps: 1.Set 0xFE58 to enable clock power management. 2.Check cfg space whether support L1SS or not. 3.If support L1SS, set 0xFF03 to free clkreq. 4.When entering idle status, enable aspm and set parameters for L1SS and LTR. 5.Wnen

[PATCH v5] mfd: Add support for RTS5250S power saving

2017-09-05 Thread rui_feng
From: Rui Feng Enable power saving for RTS5250S as following steps: 1.Set 0xFE58 to enable clock power management. 2.Check cfg space whether support L1SS or not. 3.If support L1SS, set 0xFF03 to free clkreq. 4.When entering idle status, enable aspm and set parameters

[PATCH v5] mfd: Add support for RTS5250S power saving

2017-09-05 Thread rui_feng
From: Rui Feng Enable power saving for RTS5250S as following steps: 1.Set 0xFE58 to enable clock power management. 2.Check cfg space whether support L1SS or not. 3.If support L1SS, set 0xFF03 to free clkreq. 4.When entering idle status, enable aspm and set parameters for L1SS and LTR. 5.Wnen

[PATCH v4] mfd: Add support for RTS5250S power saving

2017-08-24 Thread rui_feng
From: rui_feng <rui_f...@realsil.com.cn> Signed-off-by: Rui Feng <rui_f...@realsil.com.cn> --- drivers/mfd/rts5249.c| 154 + drivers/mfd/rtsx_pcr.c | 177 +-- drivers/mfd/rtsx_pcr.h | 12

[PATCH v4] mfd: Add support for RTS5250S power saving

2017-08-24 Thread rui_feng
From: rui_feng Signed-off-by: Rui Feng --- drivers/mfd/rts5249.c| 154 + drivers/mfd/rtsx_pcr.c | 177 +-- drivers/mfd/rtsx_pcr.h | 12 +++ include/linux/mfd/rtsx_pci.h | 85

[PATCH v3] mfd: Add support for RTS5250S power saving

2017-08-22 Thread rui_feng
From: Rui Feng Signed-off-by: Rui Feng --- drivers/mfd/rts5249.c| 195 drivers/mfd/rtsx_pcr.c | 205 +-- drivers/mfd/rtsx_pcr.h | 11 +++

[PATCH v3] mfd: Add support for RTS5250S power saving

2017-08-22 Thread rui_feng
From: Rui Feng Signed-off-by: Rui Feng --- drivers/mfd/rts5249.c| 195 drivers/mfd/rtsx_pcr.c | 205 +-- drivers/mfd/rtsx_pcr.h | 11 +++ include/linux/mfd/rtsx_pci.h | 60 + 4

[PATCH v2] mfd: Add support for RTS5250S power saving

2017-08-21 Thread rui_feng
From: rui_feng <rui_f...@realsil.com.cn> Signed-off-by: rui_feng <rui_f...@realsil.com.cn> --- drivers/mfd/rts5249.c| 183 ++ drivers/mfd/rtsx_pcr.c | 206 +-- drivers/mfd/rtsx_pcr.h |

[PATCH v2] mfd: Add support for RTS5250S power saving

2017-08-21 Thread rui_feng
From: rui_feng Signed-off-by: rui_feng --- drivers/mfd/rts5249.c| 183 ++ drivers/mfd/rtsx_pcr.c | 206 +-- drivers/mfd/rtsx_pcr.h | 2 + include/linux/mfd/rtsx_pci.h | 47 ++ 4 files

[PATCH] mfd: Add support for RTS5250S power saving

2017-08-17 Thread rui_feng
From: rui_feng <rui_f...@realsil.com.cn> Signed-off-by: rui_feng <rui_f...@realsil.com.cn> --- drivers/mfd/rts5249.c| 139 + drivers/mfd/rtsx_pcr.c | 206 +-- drivers/mfd/rtsx_pcr.h | 2 + inclu

[PATCH] mfd: Add support for RTS5250S power saving

2017-08-17 Thread rui_feng
From: rui_feng Signed-off-by: rui_feng --- drivers/mfd/rts5249.c| 139 + drivers/mfd/rtsx_pcr.c | 206 +-- drivers/mfd/rtsx_pcr.h | 2 + include/linux/mfd/rtsx_pci.h | 47 ++ 4 files changed, 389