Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Nov 2018 03:34:15 +0000 (UTC)
From:      "Jayachandran C." <jchandra@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r340600 - in head/sys/dev: acpica pci
Message-ID:  <201811190334.wAJ3YFMY033919@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jchandra
Date: Mon Nov 19 03:34:15 2018
New Revision: 340600
URL: https://svnweb.freebsd.org/changeset/base/340600

Log:
  pci_host_generic, acpi_resource: drop unneeded code
  
  Now that we are handling PCI resources in pci_host_generic_acpi.c, we
  don't need these change (made by r336129)
  
  Reviewed by:	andrew
  Differential Revision:	https://reviews.freebsd.org/D17792

Modified:
  head/sys/dev/acpica/acpi_resource.c
  head/sys/dev/pci/pci_host_generic.c

Modified: head/sys/dev/acpica/acpi_resource.c
==============================================================================
--- head/sys/dev/acpica/acpi_resource.c	Mon Nov 19 03:16:16 2018	(r340599)
+++ head/sys/dev/acpica/acpi_resource.c	Mon Nov 19 03:34:15 2018	(r340600)
@@ -602,10 +602,6 @@ acpi_res_set_memory(device_t dev, void *context, uint6
 
     if (cp == NULL)
 	return;
-
-    while (bus_get_resource_start(dev, SYS_RES_MEMORY, cp->ar_nmem))
-	cp->ar_nmem++;
-
     bus_set_resource(dev, SYS_RES_MEMORY, cp->ar_nmem++, base, length);
 }
 

Modified: head/sys/dev/pci/pci_host_generic.c
==============================================================================
--- head/sys/dev/pci/pci_host_generic.c	Mon Nov 19 03:16:16 2018	(r340599)
+++ head/sys/dev/pci/pci_host_generic.c	Mon Nov 19 03:34:15 2018	(r340600)
@@ -107,7 +107,7 @@ pci_host_generic_core_attach(device_t dev)
 		return (error);
 
 	rid = 0;
-	sc->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE | RF_SHAREABLE);
+	sc->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE);
 	if (sc->res == NULL) {
 		device_printf(dev, "could not map memory.\n");
 		return (ENXIO);



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