Author: wma
Date: Wed Sep 21 05:15:50 2016
New Revision: 306068
URL: https://svnweb.freebsd.org/changeset/base/306068

Log:
  Register GICv3 xref.
  
  This allows other drivers to retrieve interrupt parent node.
  
  Obtained from:         Semihalf
  Submitted by:          Michal Stanek <m...@semihalf.com>
  Sponsored by:          Annapurna Labs
  Reviewed by:           wma, zbb
  Differential Revision: https://reviews.freebsd.org/D7568

Modified:
  head/sys/arm64/arm64/gic_v3_fdt.c

Modified: head/sys/arm64/arm64/gic_v3_fdt.c
==============================================================================
--- head/sys/arm64/arm64/gic_v3_fdt.c   Wed Sep 21 03:10:41 2016        
(r306067)
+++ head/sys/arm64/arm64/gic_v3_fdt.c   Wed Sep 21 05:15:50 2016        
(r306068)
@@ -145,6 +145,9 @@ gic_v3_fdt_attach(device_t dev)
                goto error;
        }
 
+       /* Register xref */
+       OF_device_register_xref(xref, dev);
+
        if (intr_pic_claim_root(dev, xref, arm_gic_v3_intr, sc,
            GIC_LAST_SGI - GIC_FIRST_SGI + 1) != 0) {
                err = ENXIO;
_______________________________________________
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