On 19-10-20, 11:54, Peter Ujfalusi wrote: > On 15/10/2020 10.31, Vinod Koul wrote: > > dmaengine history has a non inclusive terminology of dmaengine slave, I > > feel it is time to replace that. Start with moving enums in dmaengine > > interface with replacement of slave to peripheral which is an > > appropriate term for dmaengine peripheral devices > > > > Since the change of name can break users, the new names have been added > > with old enums kept as macro define for new names. Once the users have > > been migrated, these macros will be dropped. > > > > Signed-off-by: Vinod Koul <vkoul@xxxxxxxxxx> > > --- > > include/linux/dmaengine.h | 44 ++++++++++++++++++++++++++------------- > > 1 file changed, 29 insertions(+), 15 deletions(-) > > > > diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h > > index dd357a747780..f7f420876d21 100644 > > --- a/include/linux/dmaengine.h > > +++ b/include/linux/dmaengine.h > > @@ -59,7 +59,7 @@ enum dma_transaction_type { > > DMA_INTERRUPT, > > DMA_PRIVATE, > > DMA_ASYNC_TX, > > - DMA_SLAVE, > > + DMA_PERIPHERAL, > > DMA_CYCLIC, > > DMA_INTERLEAVE, > > DMA_COMPLETION_NO_ORDER, > > @@ -69,12 +69,14 @@ enum dma_transaction_type { > > DMA_TX_TYPE_END, > > }; > > > > +#define DMA_SLAVE DMA_PERIPHERAL > > + > > /** > > * enum dma_transfer_direction - dma transfer mode and direction indicator > > * @DMA_MEM_TO_MEM: Async/Memcpy mode > > - * @DMA_MEM_TO_DEV: Slave mode & From Memory to Device > > - * @DMA_DEV_TO_MEM: Slave mode & From Device to Memory > > - * @DMA_DEV_TO_DEV: Slave mode & From Device to Device > > + * @DMA_MEM_TO_DEV: Peripheral mode & From Memory to Device > > + * @DMA_DEV_TO_MEM: Peripheral mode & From Device to Memory > > + * @DMA_DEV_TO_DEV: Peripheral mode & From Device to Device > > */ > > enum dma_transfer_direction { > > DMA_MEM_TO_MEM, > > @@ -364,22 +366,34 @@ struct dma_chan_dev { > > int dev_id; > > }; > > > > +#define DMA_SLAVE_BUSWIDTH_UNDEFINED DMA_PERIPHERAL_BUSWIDTH_UNDEFINED > > +#define DMA_SLAVE_BUSWIDTH_1_BYTE DMA_PERIPHERAL_BUSWIDTH_1_BYTE > > +#define DMA_SLAVE_BUSWIDTH_2_BYTES DMA_PERIPHERAL_BUSWIDTH_2_BYTES > > +#define DMA_SLAVE_BUSWIDTH_3_BYTES DMA_PERIPHERAL_BUSWIDTH_3_BYTES > > +#define DMA_SLAVE_BUSWIDTH_4_BYTES DMA_PERIPHERAL_BUSWIDTH_4_BYTES > > +#define DMA_SLAVE_BUSWIDTH_8_BYTES DMA_PERIPHERAL_BUSWIDTH_8_BYTES > > +#define DMA_SLAVE_BUSWIDTH_16_BYTES DMA_PERIPHERAL_BUSWIDTH_16_BYTES > > +#define DMA_SLAVE_BUSWIDTH_32_BYTES DMA_PERIPHERAL_BUSWIDTH_32_BYTES > > +#define DMA_SLAVE_BUSWIDTH_64_BYTES DMA_PERIPHERAL_BUSWIDTH_64_BYTES > > Probably move the defines after the enum dma_peripheral_buswidth block > as well? Yes missed that, thanks for pointing -- ~Vinod