Skip to content

Commit 6e23871

Browse files
Jan Kuligavinodkoul
authored andcommitted
dmaengine: xilinx: xdma: Get rid of unused code
Get rid of duplicated macro definitions, as these macros are defined earlier in the file. Also, get rid of unused member of 'struct xdma_desc'. Signed-off-by: Jan Kuliga <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent f5c392d commit 6e23871

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

drivers/dma/xilinx/xdma-regs.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,6 @@ struct xdma_hw_desc {
134134
#define XDMA_SGDMA_DESC_ADJ 0x4088
135135
#define XDMA_SGDMA_DESC_CREDIT 0x408c
136136

137-
/* bits of the SG DMA control register */
138-
#define XDMA_CTRL_RUN_STOP BIT(0)
139-
#define XDMA_CTRL_IE_DESC_STOPPED BIT(1)
140-
#define XDMA_CTRL_IE_DESC_COMPLETED BIT(2)
141-
#define XDMA_CTRL_IE_DESC_ALIGN_MISMATCH BIT(3)
142-
#define XDMA_CTRL_IE_MAGIC_STOPPED BIT(4)
143-
#define XDMA_CTRL_IE_IDLE_STOPPED BIT(6)
144-
#define XDMA_CTRL_IE_READ_ERROR GENMASK(13, 9)
145-
#define XDMA_CTRL_IE_DESC_ERROR GENMASK(23, 19)
146-
#define XDMA_CTRL_NON_INCR_ADDR BIT(25)
147-
#define XDMA_CTRL_POLL_MODE_WB BIT(26)
148-
149137
/*
150138
* interrupt registers
151139
*/

drivers/dma/xilinx/xdma.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ struct xdma_chan {
7878
* @vdesc: Virtual DMA descriptor
7979
* @chan: DMA channel pointer
8080
* @dir: Transferring direction of the request
81-
* @dev_addr: Physical address on DMA device side
8281
* @desc_blocks: Hardware descriptor blocks
8382
* @dblk_num: Number of hardware descriptor blocks
8483
* @desc_num: Number of hardware descriptors
@@ -91,7 +90,6 @@ struct xdma_desc {
9190
struct virt_dma_desc vdesc;
9291
struct xdma_chan *chan;
9392
enum dma_transfer_direction dir;
94-
u64 dev_addr;
9593
struct xdma_desc_block *desc_blocks;
9694
u32 dblk_num;
9795
u32 desc_num;

0 commit comments

Comments
 (0)