svn commit: r306068 - head/sys/arm64/arm64

Wojciech Macek wma at FreeBSD.org
Wed Sep 21 05:15:51 UTC 2016


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 <mst at 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;


More information about the svn-src-all mailing list