20 Mar, 2018

1 commit

  • Remove pointless comments that tell us the file name, remove blank line
    comments, follow multi-line comment conventions. No functional change
    intended.

    Signed-off-by: Bjorn Helgaas

    Bjorn Helgaas
     

27 Jan, 2018

1 commit

  • b24413180f56 ("License cleanup: add SPDX GPL-2.0 license identifier to
    files with no license") added SPDX GPL-2.0 to several PCI files that
    previously contained no license information.

    Add SPDX GPL-2.0 to all other PCI files that did not contain any license
    information and hence were under the default GPL version 2 license of the
    kernel.

    Signed-off-by: Bjorn Helgaas
    Reviewed-by: Greg Kroah-Hartman

    Bjorn Helgaas
     

22 Aug, 2016

1 commit

  • When cxl removes a vPHB, it's possible that the pci_controller may be freed
    before all references to the devices on the vPHB have been released. This
    in turn causes an invalid memory access when the devices are eventually
    released, as pcibios_release_device() attempts to call the phb's
    release_device hook.

    In cxl_pci_vphb_remove(), remove the existing call to
    pcibios_free_controller(). Instead, use
    pcibios_free_controller_deferred() to free the pci_controller after all
    devices have been released. Export pci_set_host_bridge_release() so we can
    do this.

    Cc: stable@vger.kernel.org
    Signed-off-by: Andrew Donnellan
    Reviewed-by: Matthew R. Ochs
    Acked-by: Ian Munsie
    Signed-off-by: Benjamin Herrenschmidt

    Andrew Donnellan
     

10 Apr, 2015

1 commit

  • * pci/misc:
    PCI: Read capability list as dwords, not bytes
    PCI: Don't clear ASPM bits when the FADT declares it's unsupported
    PCI: Clarify policy for vendor IDs in pci.txt
    PCI/ACPI: Optimize device state transition delays
    PCI: Export pci_find_host_bridge() for use inside PCI core
    PCI: Make a shareable UUID for PCI firmware ACPI _DSM
    PCI: Fix typo in Thunderbolt kernel message

    Bjorn Helgaas
     

09 Apr, 2015

1 commit


04 Mar, 2015

1 commit


05 Feb, 2015

1 commit


15 Apr, 2014

1 commit


27 Feb, 2014

1 commit

  • We have two identical copies of resource_contains() already, and more
    places that could use it. This moves it to ioport.h where it can be
    shared.

    resource_contains(struct resource *r1, struct resource *r2) returns true
    iff r1 and r2 are the same type (most callers already checked this
    separately) and the r1 address range completely contains r2.

    In addition, the new resource_contains() checks that both r1 and r2 have
    addresses assigned to them. If a resource is IORESOURCE_UNSET, it doesn't
    have a valid address and can't contain or be contained by another resource.
    Some callers already check this or for res->start.

    No functional change.

    Signed-off-by: Bjorn Helgaas

    Bjorn Helgaas
     

22 Dec, 2013

1 commit

  • These interfaces:

    pcibios_resource_to_bus(struct pci_dev *dev, *bus_region, *resource)
    pcibios_bus_to_resource(struct pci_dev *dev, *resource, *bus_region)

    took a pci_dev, but they really depend only on the pci_bus. And we want to
    use them in resource allocation paths where we have the bus but not a
    device, so this patch converts them to take the pci_bus instead of the
    pci_dev:

    pcibios_resource_to_bus(struct pci_bus *bus, *bus_region, *resource)
    pcibios_bus_to_resource(struct pci_bus *bus, *resource, *bus_region)

    In fact, with standard PCI-PCI bridges, they only depend on the host
    bridge, because that's the only place address translation occurs, but
    we aren't going that far yet.

    [bhelgaas: changelog]
    Signed-off-by: Yinghai Lu
    Signed-off-by: Bjorn Helgaas

    Yinghai Lu
     

01 May, 2012

4 commits