UPSTREAM: MMCONF_SUPPORT: Drop redundant logging
Resource is actually stored even before read_resources, but that's where we currently log this resource. For Intel, use PCI config register offset as the resource index, while AMD side uses MSR address. BUG=None BRANCH=None TEST=None Signed-off-by: Kysti Mlkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/17696 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org> Change-Id: I6eeef1883c5d1ee5bbcebd1731c0e356af3fd781 Reviewed-on: https://chromium-review.googlesource.com/417956 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
551e3ef5f5
commit
6b899221d7
17 changed files with 10 additions and 140 deletions
|
|
@ -201,19 +201,6 @@ static void mc_read_resources(device_t dev)
|
|||
}
|
||||
}
|
||||
|
||||
static void mc_set_resources(device_t dev)
|
||||
{
|
||||
struct resource *resource;
|
||||
|
||||
/* Report the PCIe BAR. */
|
||||
resource = find_resource(dev, 0xcf);
|
||||
if (resource)
|
||||
report_resource_stored(dev, resource, "<mmconfig>");
|
||||
|
||||
/* And call the normal set_resources. */
|
||||
pci_dev_set_resources(dev);
|
||||
}
|
||||
|
||||
static void intel_set_subsystem(device_t dev, unsigned vendor, unsigned device)
|
||||
{
|
||||
if (!vendor || !device) {
|
||||
|
|
@ -231,7 +218,7 @@ static struct pci_operations intel_pci_ops = {
|
|||
|
||||
static struct device_operations mc_ops = {
|
||||
.read_resources = mc_read_resources,
|
||||
.set_resources = mc_set_resources,
|
||||
.set_resources = pci_dev_set_resources,
|
||||
.enable_resources = pci_dev_enable_resources,
|
||||
.acpi_fill_ssdt_generator = generate_cpu_entries,
|
||||
.scan_bus = 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue