diff options
-rw-r--r-- | drivers/dma/ste_dma40.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index b8c031b7de4e..00a2de957b23 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c | |||
@@ -2409,6 +2409,7 @@ static void d40_set_prio_realtime(struct d40_chan *d40c) | |||
2409 | #define D40_DT_FLAGS_DIR(flags) ((flags >> 1) & 0x1) | 2409 | #define D40_DT_FLAGS_DIR(flags) ((flags >> 1) & 0x1) |
2410 | #define D40_DT_FLAGS_BIG_ENDIAN(flags) ((flags >> 2) & 0x1) | 2410 | #define D40_DT_FLAGS_BIG_ENDIAN(flags) ((flags >> 2) & 0x1) |
2411 | #define D40_DT_FLAGS_FIXED_CHAN(flags) ((flags >> 3) & 0x1) | 2411 | #define D40_DT_FLAGS_FIXED_CHAN(flags) ((flags >> 3) & 0x1) |
2412 | #define D40_DT_FLAGS_HIGH_PRIO(flags) ((flags >> 4) & 0x1) | ||
2412 | 2413 | ||
2413 | static struct dma_chan *d40_xlate(struct of_phandle_args *dma_spec, | 2414 | static struct dma_chan *d40_xlate(struct of_phandle_args *dma_spec, |
2414 | struct of_dma *ofdma) | 2415 | struct of_dma *ofdma) |
@@ -2446,6 +2447,9 @@ static struct dma_chan *d40_xlate(struct of_phandle_args *dma_spec, | |||
2446 | cfg.use_fixed_channel = true; | 2447 | cfg.use_fixed_channel = true; |
2447 | } | 2448 | } |
2448 | 2449 | ||
2450 | if (D40_DT_FLAGS_HIGH_PRIO(flags)) | ||
2451 | cfg.high_priority = true; | ||
2452 | |||
2449 | return dma_request_channel(cap, stedma40_filter, &cfg); | 2453 | return dma_request_channel(cap, stedma40_filter, &cfg); |
2450 | } | 2454 | } |
2451 | 2455 | ||