diff options
| -rw-r--r-- | drivers/dma/hsu/hsu.c | 2 | ||||
| -rw-r--r-- | drivers/dma/hsu/hsu.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/dma/hsu/hsu.c b/drivers/dma/hsu/hsu.c index 1817b7bc9576..59d1e7c6fd0f 100644 --- a/drivers/dma/hsu/hsu.c +++ b/drivers/dma/hsu/hsu.c | |||
| @@ -417,6 +417,8 @@ int hsu_dma_probe(struct hsu_dma_chip *chip) | |||
| 417 | 417 | ||
| 418 | hsu->dma.dev = chip->dev; | 418 | hsu->dma.dev = chip->dev; |
| 419 | 419 | ||
| 420 | dma_set_max_seg_size(hsu->dma.dev, HSU_CH_DxTSR_MASK); | ||
| 421 | |||
| 420 | ret = dma_async_device_register(&hsu->dma); | 422 | ret = dma_async_device_register(&hsu->dma); |
| 421 | if (ret) | 423 | if (ret) |
| 422 | return ret; | 424 | return ret; |
diff --git a/drivers/dma/hsu/hsu.h b/drivers/dma/hsu/hsu.h index 578a8ee8cd05..50a9d1bda253 100644 --- a/drivers/dma/hsu/hsu.h +++ b/drivers/dma/hsu/hsu.h | |||
| @@ -55,6 +55,10 @@ | |||
| 55 | #define HSU_CH_DCR_CHEI BIT(23) | 55 | #define HSU_CH_DCR_CHEI BIT(23) |
| 56 | #define HSU_CH_DCR_CHTOI(x) BIT(24 + (x)) | 56 | #define HSU_CH_DCR_CHTOI(x) BIT(24 + (x)) |
| 57 | 57 | ||
| 58 | /* Bits in HSU_CH_DxTSR */ | ||
| 59 | #define HSU_CH_DxTSR_MASK GENMASK(15, 0) | ||
| 60 | #define HSU_CH_DxTSR_TSR(x) ((x) & HSU_CH_DxTSR_MASK) | ||
| 61 | |||
| 58 | struct hsu_dma_sg { | 62 | struct hsu_dma_sg { |
| 59 | dma_addr_t addr; | 63 | dma_addr_t addr; |
| 60 | unsigned int len; | 64 | unsigned int len; |
