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>
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user