PERFORCE change 115376 for review
Paolo Pisati
piso at FreeBSD.org
Mon Mar 5 22:31:24 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=115376
Change 115376 by piso at piso_newluxor on 2007/03/05 22:30:51
o Axe a bogus and redundant check.
o Add a proper check for filter only handlers.
Affected files ...
.. //depot/projects/soc2006/intr_filter/dev/puc/puc.c#12 edit
Differences ...
==== //depot/projects/soc2006/intr_filter/dev/puc/puc.c#12 (text+ko) ====
@@ -605,8 +605,11 @@
port = device_get_ivars(child);
KASSERT(port != NULL, ("%s %d", __func__, __LINE__));
- if (filt == NULL || cookiep == NULL || res != port->p_ires)
+ if (cookiep == NULL || res != port->p_ires)
return (EINVAL);
+ /* We demand that serdev devices use filter_only interrupts. */
+ if (ihand != NULL)
+ return (ENXIO);
if (rman_get_device(port->p_ires) != originator)
return (ENXIO);
@@ -629,10 +632,6 @@
return (BUS_SETUP_INTR(device_get_parent(dev), originator,
sc->sc_ires, flags, filt, ihand, arg, cookiep));
- /* We demand that serdev devices use filter_only interrupts. */
- if (filt != NULL)
- return (ENXIO);
-
sc->sc_serdevs |= 1UL << (port->p_nr - 1);
port->p_hasintr = 1;
More information about the p4-projects
mailing list