Author: mmel
Date: Sun May 29 07:39:56 2016
New Revision: 300951
URL: https://svnweb.freebsd.org/changeset/base/300951

Log:
  ARM GIC: Allow to setup interrupt without configuration data.
  In some cases, like for PCI devices, only interrupt numbers are enumerated
  from HW. In this case, use INTR_foo_CONFORM as level and trigger values.

Modified:
  head/sys/arm/arm/gic.c

Modified: head/sys/arm/arm/gic.c
==============================================================================
--- head/sys/arm/arm/gic.c      Sun May 29 07:29:35 2016        (r300950)
+++ head/sys/arm/arm/gic.c      Sun May 29 07:39:56 2016        (r300951)
@@ -1128,8 +1128,11 @@ arm_gic_setup_intr(device_t dev, struct 
 
                if (gi->gi_irq != irq)
                        return (EINVAL);
-       } else
-               return (ENOTSUP);
+       } else {
+               irq = gi->gi_irq;
+               pol = INTR_POLARITY_CONFORM;
+               trig = INTR_TRIGGER_CONFORM;
+       }
 
        /* Compare config if this is not first setup. */
        if (isrc->isrc_handlers != 0) {
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to