smc91c92_cs: fix the problem that lan & modem does not work simultaneously
smc91c92_cs: Fix the problem that lan & modem does not work simultaneously in the Megahertz multi-function card. We need to write MEGAHERTZ_ISR to retrigger interrupt. Signed-off-by: Ken Kawasaki <ken_kawasaki@spring.nifty.jp> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9f888160bd
commit
9735b7ef00
1 changed files with 13 additions and 5 deletions
|
@ -1505,12 +1505,20 @@ static irqreturn_t smc_interrupt(int irq, void *dev_id)
|
||||||
writeb(cor & ~COR_IREQ_ENA, smc->base + MOT_LAN + CISREG_COR);
|
writeb(cor & ~COR_IREQ_ENA, smc->base + MOT_LAN + CISREG_COR);
|
||||||
writeb(cor, smc->base + MOT_LAN + CISREG_COR);
|
writeb(cor, smc->base + MOT_LAN + CISREG_COR);
|
||||||
}
|
}
|
||||||
#ifdef DOES_NOT_WORK
|
|
||||||
if (smc->base != NULL) { /* Megahertz MFC's */
|
if ((smc->base != NULL) && /* Megahertz MFC's */
|
||||||
readb(smc->base+MEGAHERTZ_ISR);
|
(smc->manfid == MANFID_MEGAHERTZ) &&
|
||||||
readb(smc->base+MEGAHERTZ_ISR);
|
(smc->cardid == PRODID_MEGAHERTZ_EM3288)) {
|
||||||
|
|
||||||
|
u_char tmp;
|
||||||
|
tmp = readb(smc->base+MEGAHERTZ_ISR);
|
||||||
|
tmp = readb(smc->base+MEGAHERTZ_ISR);
|
||||||
|
|
||||||
|
/* Retrigger interrupt if needed */
|
||||||
|
writeb(tmp, smc->base + MEGAHERTZ_ISR);
|
||||||
|
writeb(tmp, smc->base + MEGAHERTZ_ISR);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
spin_unlock(&smc->lock);
|
spin_unlock(&smc->lock);
|
||||||
return IRQ_RETVAL(handled);
|
return IRQ_RETVAL(handled);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue