summaryrefslogtreecommitdiff
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorSteven Feng <steven_feng@realsil.com.cn>2017-05-23 10:13:24 +0300
committerLee Jones <lee.jones@linaro.org>2017-07-06 10:29:11 +0300
commit87d284443d071dc70344dda4b2fb43723686acdb (patch)
tree4dad341884d0ab06c71f17a83976e9b04e04b76f /include/linux/mfd
parent9b79ff104f73de63efc958cc0dec3c826aee3ffd (diff)
downloadlinux-87d284443d071dc70344dda4b2fb43723686acdb.tar.xz
mfd: rtsx: Do retry when DMA transfer error
The request should be resent when DMA transfer error occurred. For rts5227, the clock rate needs to be reduced when error occurred. Signed-off-by: Steven Feng <steven_feng@realsil.com.cn> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/rtsx_pci.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mfd/rtsx_pci.h b/include/linux/mfd/rtsx_pci.h
index 7eb7cbac0a9a..116816fb9110 100644
--- a/include/linux/mfd/rtsx_pci.h
+++ b/include/linux/mfd/rtsx_pci.h
@@ -850,6 +850,9 @@
#define rtsx_pci_init_cmd(pcr) ((pcr)->ci = 0)
+#define RTS5227_DEVICE_ID 0x5227
+#define RTS_MAX_TIMES_FREQ_REDUCTION 8
+
struct rtsx_pcr;
struct pcr_handle {
@@ -957,6 +960,8 @@ struct rtsx_pcr {
int num_slots;
struct rtsx_slot *slots;
+
+ u8 dma_error_count;
};
#define CHK_PCI_PID(pcr, pid) ((pcr)->pci->device == (pid))