[PATCH 3/3] dma: at_hdmac: Always use atdma_sg->len for at91 sama5d3
Henry Nestler
henrynmail-at91 at yahoo.com
Thu Aug 10 08:28:06 PDT 2023
Sometime was used "atdma_sg->len", other cases used "desc->sg[i].len".
Use same coding style for all settings of descriptor length.
Signed-off-by: Henry Nestler <henrynmail-at91 at yahoo.com>
---
--- linux-6.1.38.orig/drivers/dma/at_hdmac.c
+++ linux-6.1.38/drivers/dma/at_hdmac.c
@@ -1017,7 +1017,7 @@
lli->ctrla = ctrla | xfer_count;
lli->ctrlb = ctrlb;
- desc->sg[i].len = xfer_count << src_width;
+ atdma_sg->len = xfer_count << src_width;
atdma_lli_chain(desc, i);
}
@@ -1360,7 +1360,7 @@
len >> reg_width;
lli->ctrlb = ctrlb;
- desc->sg[i].len = len;
+ atdma_sg->len = len;
total_len += len;
atdma_lli_chain(desc, i);
@@ -1461,7 +1461,7 @@
FIELD_PREP(ATC_DST_WIDTH, reg_width) |
FIELD_PREP(ATC_SRC_WIDTH, reg_width) |
period_len >> reg_width;
- desc->sg[i].len = period_len;
+ atdma_sg->len = period_len;
return 0;
}
More information about the linux-arm-kernel
mailing list