Kill bogus #if 0'd stuff for interrupts. They don't happen, and this
driver will need more serious help to work with an interrupt driven path. There's many subtleties in driving the DMA engine with interrupts in many configurations. Best to not "guess" what the right way would be and mislead people.
This commit is contained in:
parent
4f189f7cd1
commit
1ab0349341
@ -209,16 +209,6 @@ static void
|
||||
at91_ssc_intr(void *xsc)
|
||||
{
|
||||
struct at91_ssc_softc *sc = xsc;
|
||||
#if 0
|
||||
uint32_t status;
|
||||
|
||||
/* Reading the status also clears the interrupt */
|
||||
status = RD4(sc, SSC_SR);
|
||||
if (status == 0)
|
||||
return;
|
||||
AT91_SSC_LOCK(sc);
|
||||
AT91_SSC_UNLOCK(sc);
|
||||
#endif
|
||||
wakeup(sc);
|
||||
return;
|
||||
}
|
||||
@ -232,9 +222,6 @@ at91_ssc_open(struct cdev *dev, int oflags, int devtype, struct thread *td)
|
||||
AT91_SSC_LOCK(sc);
|
||||
if (!(sc->flags & OPENED)) {
|
||||
sc->flags |= OPENED;
|
||||
#if 0
|
||||
// Enable interrupts
|
||||
#endif
|
||||
}
|
||||
AT91_SSC_UNLOCK(sc);
|
||||
return (0);
|
||||
@ -248,9 +235,6 @@ at91_ssc_close(struct cdev *dev, int fflag, int devtype, struct thread *td)
|
||||
sc = CDEV2SOFTC(dev);
|
||||
AT91_SSC_LOCK(sc);
|
||||
sc->flags &= ~OPENED;
|
||||
#if 0
|
||||
// Disable interrupts
|
||||
#endif
|
||||
AT91_SSC_UNLOCK(sc);
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user