Author: jhb
Date: Tue Jan 15 20:13:25 2013
New Revision: 245471
URL: http://svnweb.freebsd.org/changeset/base/245471

Log:
  Do not require a filter-only interrupt handler for puc ports that are not
  serial devices (such as printer ports).  This allows ppc devices attached
  to puc to correctly setup an interrupt handler and work.
  
  Tested by:    Andre Albsmeier  andre.albsme...@siemens.com
  MFC after:    1 week

Modified:
  head/sys/dev/puc/puc.c

Modified: head/sys/dev/puc/puc.c
==============================================================================
--- head/sys/dev/puc/puc.c      Tue Jan 15 20:10:49 2013        (r245470)
+++ head/sys/dev/puc/puc.c      Tue Jan 15 20:13:25 2013        (r245471)
@@ -622,7 +622,7 @@ puc_bus_setup_intr(device_t dev, device_
        if (cookiep == NULL || res != port->p_ires)
                return (EINVAL);
        /* We demand that serdev devices use filter_only interrupts. */
-       if (ihand != NULL)
+       if (port->p_type == PUC_TYPE_SERIAL && ihand != NULL)
                return (ENXIO);
        if (rman_get_device(port->p_ires) != originator)
                return (ENXIO);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to