mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
DMAENGINE: ste_dma40: No need reading, masking and setting a set register
Removes an unnecessary register read and a few lines of code. Signed-off-by: Jonas Aaberg <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Dan Williams <[email protected]>
This commit is contained in:
parent
be8cb7dfd9
commit
1b00348d5d
1 changed files with 1 additions and 4 deletions
|
|
@ -915,7 +915,6 @@ static irqreturn_t d40_handle_interrupt(int irq, void *data)
|
|||
|
||||
int i;
|
||||
u32 regs[ARRAY_SIZE(il)];
|
||||
u32 tmp;
|
||||
u32 idx;
|
||||
u32 row;
|
||||
long chan = -1;
|
||||
|
|
@ -942,9 +941,7 @@ static irqreturn_t d40_handle_interrupt(int irq, void *data)
|
|||
idx = chan & (BITS_PER_LONG - 1);
|
||||
|
||||
/* ACK interrupt */
|
||||
tmp = readl(base->virtbase + il[row].clr);
|
||||
tmp |= 1 << idx;
|
||||
writel(tmp, base->virtbase + il[row].clr);
|
||||
writel(1 << idx, base->virtbase + il[row].clr);
|
||||
|
||||
if (il[row].offset == D40_PHY_CHAN)
|
||||
d40c = base->lookup_phy_chans[idx];
|
||||
|
|
|
|||
Loading…
Reference in a new issue