Skip to content

Commit 6d307f6

Browse files
grygoriySdavem330
authored andcommitted
net: ethernet: ti: cpdma: do not enable host error misc irq
CPSW driver does not handle this interrupt, so there are no reasons to enable it in hardware. Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent e9523a5 commit 6d307f6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/net/ethernet/ti/davinci_cpdma.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -645,17 +645,14 @@ EXPORT_SYMBOL_GPL(cpdma_ctlr_destroy);
645645
int cpdma_ctlr_int_ctrl(struct cpdma_ctlr *ctlr, bool enable)
646646
{
647647
unsigned long flags;
648-
int i, reg;
648+
int i;
649649

650650
spin_lock_irqsave(&ctlr->lock, flags);
651651
if (ctlr->state != CPDMA_STATE_ACTIVE) {
652652
spin_unlock_irqrestore(&ctlr->lock, flags);
653653
return -EINVAL;
654654
}
655655

656-
reg = enable ? CPDMA_DMAINTMASKSET : CPDMA_DMAINTMASKCLEAR;
657-
dma_reg_write(ctlr, reg, CPDMA_DMAINT_HOSTERR);
658-
659656
for (i = 0; i < ARRAY_SIZE(ctlr->channels); i++) {
660657
if (ctlr->channels[i])
661658
cpdma_chan_int_ctrl(ctlr->channels[i], enable);

0 commit comments

Comments
 (0)