svn commit: r304071 - head/sys/dev/ofw

Michal Meloun mmel at FreeBSD.org
Sun Aug 14 05:10:27 UTC 2016


Author: mmel
Date: Sun Aug 14 05:10:26 2016
New Revision: 304071
URL: https://svnweb.freebsd.org/changeset/base/304071

Log:
  OFWPCI: Don't strip RF_ACTIVE from flags when parent bus method is called.
  
  Reviewed by:	nwhitehorn
  MFC after:	3 weeks

Modified:
  head/sys/dev/ofw/ofwpci.c

Modified: head/sys/dev/ofw/ofwpci.c
==============================================================================
--- head/sys/dev/ofw/ofwpci.c	Sun Aug 14 04:35:04 2016	(r304070)
+++ head/sys/dev/ofw/ofwpci.c	Sun Aug 14 05:10:26 2016	(r304071)
@@ -414,14 +414,14 @@
 #if defined(NEW_PCIB) && defined(PCI_RES_BUS)
 	if (type ==  PCI_RES_BUS) {
 		  return (pci_domain_alloc_bus(sc->sc_pci_domain, child, rid,
-		      start, end, count, flags));
+		      start, end, count, flags | needactivate));
 	}
 #endif
 
 	rm = ofw_pci_get_rman(sc, type, flags);
 	if (rm == NULL)  {
 		return (bus_generic_alloc_resource(bus, child, type, rid,
-		    start, end, count, flags));
+		    start, end, count, flags | needactivate));
 	}
 
 	rv = rman_reserve_resource(rm, start, end, count, flags, child);


More information about the svn-src-all mailing list