Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jan 2017 10:29:47 +0000 (UTC)
From:      Wojciech Macek <wma@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r312746 - head/sys/arm/mv
Message-ID:  <201701251029.v0PATleq047235@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wma
Date: Wed Jan 25 10:29:46 2017
New Revision: 312746
URL: https://svnweb.freebsd.org/changeset/base/312746

Log:
  Fix node detection for MBUS windows configuration
  
  Configure decoding windows only for devices with
  enabled nodes in FDT.
  
  Submitted by:          Konrad Adamczyk <ka@semihalf.com>
  Obtained from:         Semihalf
  Sponsored by:          Stormshield
  Reviewed by:           zbb
  Differential revision: https://reviews.freebsd.org/D9219

Modified:
  head/sys/arm/mv/mv_common.c

Modified: head/sys/arm/mv/mv_common.c
==============================================================================
--- head/sys/arm/mv/mv_common.c	Wed Jan 25 10:28:21 2017	(r312745)
+++ head/sys/arm/mv/mv_common.c	Wed Jan 25 10:29:46 2017	(r312746)
@@ -2172,6 +2172,10 @@ fdt_win_setup(void)
 
 			soc_node = &soc_nodes[i];
 
+			/* Setup only for enabled devices */
+			if (ofw_bus_node_status_okay(child) == 0)
+				continue;
+
 			if (!ofw_bus_node_is_compatible(child,soc_node->compat))
 				continue;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701251029.v0PATleq047235>