Commit 01276ed2 authored by Jongsung Kim's avatar Jongsung Kim Committed by David S. Miller

net/cadence/macb: fix bug/typo in extracting gem_irq_read_clear bit

Signed-off-by: default avatarJongsung Kim <neidhard.kim@lge.com>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b78ba72c
...@@ -1292,7 +1292,7 @@ static void macb_configure_dma(struct macb *bp) ...@@ -1292,7 +1292,7 @@ static void macb_configure_dma(struct macb *bp)
static void macb_configure_caps(struct macb *bp) static void macb_configure_caps(struct macb *bp)
{ {
if (macb_is_gem(bp)) { if (macb_is_gem(bp)) {
if (GEM_BF(IRQCOR, gem_readl(bp, DCFG1)) == 0) if (GEM_BFEXT(IRQCOR, gem_readl(bp, DCFG1)) == 0)
bp->caps |= MACB_CAPS_ISR_CLEAR_ON_WRITE; bp->caps |= MACB_CAPS_ISR_CLEAR_ON_WRITE;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment