From: Wei WANG wei_w...@realsil.com.cn
Wei WANG (3):
mfd:mmc:rtsx: Change default tx phase
mmc:rtsx:Clear SD_CLK toggle enable bit if switching voltage fail
mmc:memstick:rtsx: Modify copyright comments
drivers/memstick/host/rtsx_pci_ms.c |3 +-
drivers/mfd/rtl8411.c |
From: Wei WANG wei_w...@realsil.com.cn
If switching voltage fails, SD_CLK toggle enable bit should been cleared
so that SD host can control SD clock automatically.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mmc/host/rtsx_pci_sdmmc.c |9 -
1 file changed, 8
From: Wei WANG wei_w...@realsil.com.cn
The default phase can meet most cards' requirement, but it is not the
optimal one. In some extreme situation, the rx phase point produced by
the following tuning process will drift quite a distance.
Before tuning UHS card, this patch will set a more proper
From: Wei WANG wei_w...@realsil.com.cn
Update copyright date, and remove author address.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/memstick/host/rtsx_pci_ms.c |3 +--
drivers/mmc/host/rtsx_pci_sdmmc.c |3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff
From: Wei WANG wei_w...@realsil.com.cn
Support new model: RTS5249
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mfd/Makefile |2 +-
drivers/mfd/rts5249.c| 241 ++
drivers/mfd/rtsx_pcr.c |5 +
From: Wei WANG wei_w...@realsil.com.cn
v2:
1. Modify copyright notice
2. Add macro definitions for phy registers
3. Replace mdelay with msleep
Wei WANG (1):
mfd:rtsx: Support RTS5249
drivers/mfd/Makefile |2 +-
drivers/mfd/rts5249.c| 241
From: Wei WANG wei_w...@realsil.com.cn
For some Realtek's card reader, power up sequence can only be executed
when power has been turned off fully.
So rtsx host should not start power up sequence again when set_ios been
called if the power has been turned on.
Signed-off-by: Wei WANG
From: Wei WANG wei_w...@realsil.com.cn
Realtek card reader supports both SD and MS card. According to the
settings of rtsx MFD driver, SD host will be probed before MS host.
If we boot/reboot Linux with SD card inserted, the resetting flow of SD
card will succeed, and the following resetting flow
From: Wei WANG wei_w...@realsil.com.cn
1. The method to switch output voltage is different in rtl8411
2. Fix the formula to calculate N from SD clock if clock divider is more than 1
Wei WANG (3):
MFD:rtsx: Add callback function switch_output_voltage
MMC:rtsx: Using callback function to
From: Wei WANG wei_w...@realsil.com.cn
Different card reader has different method to switch output voltage,
add this callback to let the card reader implement its individual switch
function.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mfd/rtl8411.c| 16
From: Wei WANG wei_w...@realsil.com.cn
Different card reader has different method to switch output voltage, so
we have to use the callback function provided by MFD driver to switch
output pad voltage.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mmc/host/rtsx_pci_sdmmc.c | 30
From: Wei WANG wei_w...@realsil.com.cn
Add callback function conv_clk_and_div_n to convert between SSC clock
and its divider N.
For rtl8411, the formula to calculate SSC clock divider N is different
with the other card reader models.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
From: Wei WANG wei_w...@realsil.com.cn
Fix a misspelling word in comment
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
include/linux/mfd/rtsx_pci.h |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/mfd/rtsx_pci.h b/include/linux/mfd/rtsx_pci.h
index
From: Wei WANG wei_w...@realsil.com.cn
v2:
1. Add commit message for patch 2
2. Move pci_set_dma_mask before the pci_enable_device(pcidev) call
v3:
1. Add commit message for patch 3
2. Add patch 8: Use macro defines to replace some variables
v4:
1. Describe why patch 3 is needed
2. Modify a
From: Wei WANG wei_w...@realsil.com.cn
Different card reader has different method to switch output voltage, so
we have to use the callback function provided by MFD driver to switch
output pad voltage.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mmc/host/rtsx_pci_sdmmc.c | 30
From: Wei WANG wei_w...@realsil.com.cn
WARNING: Avoid CamelCase: min_N
+ u8 N, min_N, max_N, clk_divider;
WARNING: Avoid CamelCase: max_N
+ u8 N, min_N, max_N, clk_divider;
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mfd/rtsx_pcr.c | 26 +-
From: Wei WANG wei_w...@realsil.com.cn
Realtek PCIe card reader only supports 32bit DMA.
This declaration can improve the readability
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mfd/rtsx_pcr.c |4
1 file changed, 4 insertions(+)
diff --git a/drivers/mfd/rtsx_pcr.c
From: Wei WANG wei_w...@realsil.com.cn
In function rtsx_pci_switch_clock, some variables, such as min_n, max_n,
and max_div, are not necessary. And those assigned values look very
obscure for others. It's more proper to use macro definitions here to
replace these variables.
Signed-off-by: Wei
From: Wei WANG wei_w...@realsil.com.cn
Add callback function conv_clk_and_div_n to convert between SSC clock
and its divider N.
For rtl8411, the formula to calculate SSC clock divider N is different
with the other card reader models.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
From: Wei WANG wei_w...@realsil.com.cn
In function rtsx_pci_add_sg_tbl, the statement ptr++ is useless.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
Acked-by: Borislav Petkov b...@alien8.de
---
drivers/mfd/rtsx_pcr.c |1 -
1 file changed, 1 deletion(-)
diff --git
From: Wei WANG wei_w...@realsil.com.cn
Different card reader has different method to switch output voltage,
add this callback to let the card reader implement its individual switch
function.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mfd/rtl8411.c| 16
From: Wei WANG wei_w...@realsil.com.cn
Wei WANG (8):
MFD:rtsx: Fix typo in comment
MFD:rtsx: Remove redundant code
MFD:rtsx: Declare that the DMA address limitation is 32bit explicitly
MFD:rtsx: Add callback function switch_output_voltage
MMC:rtsx: Using callback function to switch
From: Wei WANG wei_w...@realsil.com.cn
Different card reader has different method to switch output voltage, so
we have to use the callback function provided by MFD driver to switch
output pad voltage.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mmc/host/rtsx_pci_sdmmc.c | 30
From: Wei WANG wei_w...@realsil.com.cn
WARNING: Avoid CamelCase: min_N
+ u8 N, min_N, max_N, clk_divider;
WARNING: Avoid CamelCase: max_N
+ u8 N, min_N, max_N, clk_divider;
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mfd/rtsx_pcr.c | 26 +-
From: Wei WANG wei_w...@realsil.com.cn
Add callback function conv_clk_and_div_n to convert between SSC clock
and its divider N.
For rtl8411, the formula to calculate SSC clock divider N is different
with the other card reader models.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
From: Wei WANG wei_w...@realsil.com.cn
Realtek PCIe card reader only supports 32bit DMA
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mfd/rtsx_pcr.c |4
1 file changed, 4 insertions(+)
diff --git a/drivers/mfd/rtsx_pcr.c b/drivers/mfd/rtsx_pcr.c
index fa2c2bc..1dc64bb
From: Wei WANG wei_w...@realsil.com.cn
Different card reader has different method to switch output voltage,
add this callback to let the card reader implement its individual switch
function.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mfd/rtl8411.c| 16
From: Wei WANG wei_w...@realsil.com.cn
Fix a misspelling word in comment
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
include/linux/mfd/rtsx_pci.h |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/mfd/rtsx_pci.h b/include/linux/mfd/rtsx_pci.h
index
From: Wei WANG wei_w...@realsil.com.cn
Fix a misspelling word in comment
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
include/linux/mfd/rtsx_pci.h |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/mfd/rtsx_pci.h b/include/linux/mfd/rtsx_pci.h
index
From: Wei WANG wei_w...@realsil.com.cn
Different card reader has different method to switch output voltage, so
we have to use the callback function provided by MFD driver to switch
output pad voltage.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mmc/host/rtsx_pci_sdmmc.c | 30
From: Wei WANG wei_w...@realsil.com.cn
In function rtsx_pci_switch_clock, some variables, such as min_n, max_n,
and max_div, are not necessary. And those assigned values look very
obscure for others. It's more proper to use macro definitions here to
replace these variables.
Signed-off-by: Wei
From: Wei WANG wei_w...@realsil.com.cn
In function rtsx_pci_add_sg_tbl, the statement ptr++ is useless.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mfd/rtsx_pcr.c |1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/mfd/rtsx_pcr.c b/drivers/mfd/rtsx_pcr.c
index
From: Wei WANG wei_w...@realsil.com.cn
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mfd/rtsx_pcr.c |4
1 file changed, 4 insertions(+)
diff --git a/drivers/mfd/rtsx_pcr.c b/drivers/mfd/rtsx_pcr.c
index fa2c2bc..1dc64bb 100644
--- a/drivers/mfd/rtsx_pcr.c
+++
From: Wei WANG wei_w...@realsil.com.cn
Fix a misspelling word in comment
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
include/linux/mfd/rtsx_pci.h |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/mfd/rtsx_pci.h b/include/linux/mfd/rtsx_pci.h
index
From: Wei WANG wei_w...@realsil.com.cn
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mfd/rtsx_pcr.c |4
1 file changed, 4 insertions(+)
diff --git a/drivers/mfd/rtsx_pcr.c b/drivers/mfd/rtsx_pcr.c
index fa2c2bc..2ee6be5 100644
--- a/drivers/mfd/rtsx_pcr.c
+++
From: Wei WANG wei_w...@realsil.com.cn
Different card reader has different method to switch output voltage,
add this callback to let the card reader implement its individual switch
function.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mfd/rtl8411.c| 16
From: Wei WANG wei_w...@realsil.com.cn
WARNING: Avoid CamelCase: min_N
+ u8 N, min_N, max_N, clk_divider;
WARNING: Avoid CamelCase: max_N
+ u8 N, min_N, max_N, clk_divider;
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mfd/rtsx_pcr.c | 26 +-
From: Wei WANG wei_w...@realsil.com.cn
Different card reader has different method to switch output voltage, so
we have to use the callback function provided by MFD driver to switch
output pad voltage.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mmc/host/rtsx_pci_sdmmc.c | 30
From: Wei WANG wei_w...@realsil.com.cn
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mmc/host/rtsx_pci_sdmmc.c |1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mmc/host/rtsx_pci_sdmmc.c
b/drivers/mmc/host/rtsx_pci_sdmmc.c
index 0e934bf..067dd46 100644
---
From: Wei WANG wei_w...@realsil.com.cn
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mmc/host/rtsx_pci_sdmmc.c |1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mmc/host/rtsx_pci_sdmmc.c
b/drivers/mmc/host/rtsx_pci_sdmmc.c
index 067dd46..571915d 100644
---
From: Wei WANG wei_w...@realsil.com.cn
Wei WANG (2):
mmc/host/rtsx: Configure SD_CFG2 register in sd_rw_multi
mmc/host/rtsx: Explicitely include slab.h in rtsx_pci_sdmmc.c
drivers/mmc/host/rtsx_pci_sdmmc.c |2 ++
1 file changed, 2 insertions(+)
--
1.7.9.5
--
To unsubscribe from this
From: Wei WANG wei_w...@realsil.com.cn
For Realtek card reader, internal regsiter SD_CFG2 should be configured
before transferring data. In the prior version, the value of this register
has been calculated, but forgotten to write back to the internal register.
Signed-off-by: Wei WANG
From: Wei WANG wei_w...@realsil.com.cn
This fixes the following build error on some architectures (parisc at least):
drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sd_normal_rw':
drivers/mmc/host/rtsx_pci_sdmmc.c:448:2: error: implicit
declaration of function 'kzalloc'
From: Wei WANG wei_w...@realsil.com.cn
For Realtek card reader, internal regsiter SD_CFG2 should be configured
before transferring data.
The default value of SD_CFG2 is proper for writing data. But for reading
sequence, the timing is not good enough. So in some extreme circumstance,
card reader
From: Wei WANG wei_w...@realsil.com.cn
Wei WANG (2):
mmc/host/rtsx: Configure SD_CFG2 register in sd_rw_multi
mmc/host/rtsx: Explicitely include slab.h in rtsx_pci_sdmmc.c
drivers/mmc/host/rtsx_pci_sdmmc.c |2 ++
1 file changed, 2 insertions(+)
--
1.7.9.5
--
To unsubscribe from this
From: Wei WANG wei_w...@realsil.com.cn
Support for Realtek PCI-Express driver-based card readers including rts5209,
rts5229 and rtl8411.
v2:
1. Using platform device to replace realtek slot bus
v3:
1. Fix a bug that DMA out of SW-IOMMU space in Lenovo Thinkpad x121e
2. Tested by Borislav Petkov
From: Wei WANG wei_w...@realsil.com.cn
Realtek PCI-E Memstick card host driver is used to access Memstick
card, with the help of Realtek PCI-E card reader MFD driver.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
Acked-by: Alex Dubov oa...@yahoo.com
---
drivers/memstick/host/Kconfig |
From: Wei WANG wei_w...@realsil.com.cn
Realtek PCI-E SD/MMC card host driver is used to access SD/MMC card,
with the help of Realtek PCI-E card reader MFD driver.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
Reviewed-by: Arnd Bergmann a...@arndb.de
Tested-by: Borislav Petkov b...@alien8.de
From: Wei WANG wei_w...@realsil.com.cn
Support for Realtek PCI-Express driver-based card readers including rts5209 and
rts5229.
v2:
1. Using platform device to replace realtek slot bus
v3:
1. Fix a bug that DMA out of SW-IOMMU space in Lenovo Thinkpad x121e
2. Tested by Borislav Petkov
From: Wei WANG wei_w...@realsil.com.cn
Realtek PCI-E Memstick card host driver is used to access Memstick
card, with the help of Realtek PCI-E card reader MFD driver.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/memstick/host/Kconfig | 10 +
drivers/memstick/host/Makefile
From: Wei WANG wei_w...@realsil.com.cn
Realtek PCI-E SD/MMC card host driver is used to access SD/MMC card,
with the help of Realtek PCI-E card reader MFD driver.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
Reviewed-by: Arnd Bergmann a...@arndb.de
Tested-by: Borislav Petkov b...@alien8.de
From: Wei WANG wei_w...@realsil.com.cn
Support for Realtek PCI-Express driver-based card readers including rts5209 and
rts5229.
v2:
1. Using platform device to replace realtek slot bus
v3:
1. Fix a bug that DMA out of SW-IOMMU space in Lenovo Thinkpad x121e
2. Tested by Borislav Petkov
From: Wei WANG wei_w...@realsil.com.cn
Realtek PCI-E Memstick card host driver is used to access Memstick
card, with the help of Realtek PCI-E card reader MFD driver.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/memstick/host/Kconfig | 10 +
drivers/memstick/host/Makefile
From: Wei WANG wei_w...@realsil.com.cn
Realtek PCI-E SD/MMC card host driver is used to access SD/MMC card,
with the help of Realtek PCI-E card reader MFD driver.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
Reviewed-by: Arnd Bergmann a...@arndb.de
Tested-by: Borislav Petkov b...@alien8.de
From: Wei WANG wei_w...@realsil.com.cn
Support for Realtek PCI-Express driver-based card readers including rts5209 and
rts5229.
v2:
1. Using platform device to replace realtek slot bus
v3:
1. Fix a bug that DMA out of SW-IOMMU space in Lenovo Thinkpad x121e
2. Tested by Borislav Petkov
From: Wei WANG wei_w...@realsil.com.cn
Realtek PCI-E SD/MMC card host driver is used to access SD/MMC card,
with the help of Realtek PCI-E card reader MFD driver.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
Reviewed-by: Arnd Bergmann a...@arndb.de
Tested-by: Borislav Petkov b...@alien8.de
From: Wei WANG wei_w...@realsil.com.cn
Support for Realtek PCI-Express driver-based card readers including rts5209 and
rts5229.
v2:
1. Using platform device to replace realtek slot bus
v3:
1. Fix a bug that DMA out of SW-IOMMU space in Lenovo Thinkpad x121e
2. Tested by Borislav Petkov
From: Wei WANG wei_w...@realsil.com.cn
Realtek PCI-E SD/MMC card host driver is used to access SD/MMC card,
with the help of Realtek PCI-E card reader MFD driver.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
Reviewed-by: Arnd Bergmann a...@arndb.de
Tested-by: Borislav Petkov b...@alien8.de
From: Wei WANG wei_w...@realsil.com.cn
1. Fix a bug that DMA out of SW-IOMMU space in Lenovo Thinkpad x121e
2. Tested by Borislav Petkov b...@alien8.de
Wei WANG (2):
drivers/mfd: Add realtek pcie card reader driver
drivers/mmc: Add realtek pcie sdmmc host driver
drivers/mfd/Kconfig
From: Wei WANG wei_w...@realsil.com.cn
Realtek PCI-E SD/MMC card host driver is used to access SD/MMC card,
with the help of Realtek PCI-E card reader MFD driver.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
Reviewed-by: Arnd Bergmann a...@arndb.de
Tested-by: Borislav Petkov b...@alien8.de
From: Wei WANG wei_w...@realsil.com.cn
Support for Realtek PCI-Express driver-based card readers including rts5209 and
rts5229.
Wei WANG (2):
drivers/mfd: Add realtek pcie card reader driver
drivers/mmc: Add realtek pcie sdmmc host driver
drivers/mfd/Kconfig |9 +
From: Wei WANG wei_w...@realsil.com.cn
Realtek PCI-E SD/MMC card host driver is used to access SD/MMC card,
with the help of Realtek PCI-E card reader MFD driver.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
Reviewed-by: Arnd Bergmann a...@arndb.de
---
drivers/mmc/host/Kconfig |
From: Wei WANG wei_w...@realsil.com.cn
Realtek PCI-E SD/MMC card host driver is used to access SD/MMC card,
with the help of Realtek PCI-E card reader MFD driver.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mmc/host/Kconfig |7 +
drivers/mmc/host/Makefile |
From: Wei WANG wei_w...@realsil.com.cn
Realtek PCI-E SD/MMC card host driver is used to access SD/MMC card,
with the help of Realtek PCI-E card reader MFD driver.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mmc/host/Kconfig |7 +
drivers/mmc/host/Makefile |
From: Wei WANG wei_w...@realsil.com.cn
Realtek card reader core driver is the bus driver for Realtek
driver-based card reader, which supplies adapter layer to
be used by lower-level pci/usb card reader and upper-level
sdmmc/memstick host driver.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
From: Wei WANG wei_w...@realsil.com.cn
Realtek SD/MMC card interface driver is used to access
SD/MMC card, with the help of Realtek card reader adapter driver.
Signed-off-by: Wei WANG wei_w...@realsil.com.cn
---
drivers/mmc/host/Kconfig |7 +
drivers/mmc/host/Makefile |2 +
66 matches
Mail list logo