diff options
author | imp <imp@FreeBSD.org> | 2008-09-05 22:29:50 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2008-09-05 22:29:50 +0000 |
commit | 1ab0349341aa051a351f77bcb1e47551fff3d273 (patch) | |
tree | 54d0eafc047c78434e133ddcdbe03a8dac16bcb3 /sys/arm | |
parent | 4f189f7cd19c1d6ad4e2fb0441a5b92a8b281fdb (diff) | |
download | FreeBSD-src-1ab0349341aa051a351f77bcb1e47551fff3d273.zip FreeBSD-src-1ab0349341aa051a351f77bcb1e47551fff3d273.tar.gz |
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.
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/at91/at91_ssc.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/sys/arm/at91/at91_ssc.c b/sys/arm/at91/at91_ssc.c index 3e08431..d0e2616 100644 --- a/sys/arm/at91/at91_ssc.c +++ b/sys/arm/at91/at91_ssc.c @@ -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); } |