From aee8e0553adf0cfc08dd254fdb473d3dcd12dd14 Mon Sep 17 00:00:00 2001 From: Paul Olaru Date: Mon, 18 Nov 2019 14:09:07 +0200 Subject: [PATCH] drivers: imx: edma: Make soff and doff signed This allows the SGN macro to no longer generate a warning on the "-1" case and thus allows building with XCC. GCC doesn't seem to care about this one. No actual change in the logic itself. Signed-off-by: Paul Olaru --- src/drivers/imx/edma.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/drivers/imx/edma.c b/src/drivers/imx/edma.c index 9a4b9ac39..9155ad447 100644 --- a/src/drivers/imx/edma.c +++ b/src/drivers/imx/edma.c @@ -258,8 +258,8 @@ static int edma_validate_nonsg_config(struct dma_sg_elem_array *sgelems, * scatter-gather situation, it also allocates and computes the * additional TCDs, one for each of the input elems. */ -static int edma_setup_tcd(struct dma_chan_data *channel, uint16_t soff, - uint16_t doff, bool cyclic, bool sg, bool irqoff, +static int edma_setup_tcd(struct dma_chan_data *channel, int16_t soff, + int16_t doff, bool cyclic, bool sg, bool irqoff, struct dma_sg_elem_array *sgelems, int src_width, int dest_width, uint32_t burst_elems) { @@ -333,8 +333,8 @@ static int edma_set_config(struct dma_chan_data *channel, struct dma_sg_config *config) { int handshake, irq; - uint16_t soff = 0; - uint16_t doff = 0; + int16_t soff = 0; + int16_t doff = 0; /* We may need to pass some data through the handshake in the * future, so we just have them here, even if unused for now