Commit Graph

5 Commits

Author SHA1 Message Date
Myron Stowe 936432c68b PCI: Add defines for normal and subtractive PCI bridges
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2068174
Upstream Status: 904b10fb189cc15376e9bfce1ef0282e68b0b004

commit 904b10fb189cc15376e9bfce1ef0282e68b0b004
Author: Pali Rohár <pali@kernel.org>
Date:   Mon Feb 14 12:41:08 2022 +0100

    PCI: Add defines for normal and subtractive PCI bridges

    Add these PCI class codes to pci_ids.h:

      PCI_CLASS_BRIDGE_PCI_NORMAL
      PCI_CLASS_BRIDGE_PCI_SUBTRACTIVE

    Use these defines in all kernel code for describing PCI class codes for
    normal and subtractive PCI bridges.

    [bhelgaas: similar change in pci-mvebu.c]
    Link: https://lore.kernel.org/r/20220214114109.26809-1-pali@kernel.org
    Signed-off-by: Pali Rohár <pali@kernel.org>
    Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

Signed-off-by: Myron Stowe <mstowe@redhat.com>
2022-06-16 10:07:27 -06:00
Myron Stowe 6ee88ca205 PCI: iproc: Rename iproc_pcie_bcma_ to iproc_bcma_pcie_
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2066898
Upstream Status: 8fa96635202800947382df155ff161ac2d5bbbd3

commit 8fa96635202800947382df155ff161ac2d5bbbd3
Author: Bjorn Helgaas <bhelgaas@google.com>
Date:   Wed Dec 22 19:10:42 2021 -0600

    PCI: iproc: Rename iproc_pcie_bcma_ to iproc_bcma_pcie_

    Rename iproc_pcie_bcma_* to iproc_bcma_pcie_* for consistency with other
    drivers.  No functional change intended.

    Link: https://lore.kernel.org/r/20211223011054.1227810-12-helgaas@kernel.org
    Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
    Cc: Ray Jui <rjui@broadcom.com>
    Cc: Scott Branden <sbranden@broadcom.com>

Signed-off-by: Myron Stowe <mstowe@redhat.com>
2022-04-20 10:14:09 -06:00
Myron Stowe b13bd9359f PCI: iproc: Fix BCMA probe resource handling
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2045254
Upstream Status: aeaea8969b402e0081210cc9144404d13996efed

commit aeaea8969b402e0081210cc9144404d13996efed
Author: Rob Herring <robh@kernel.org>
Date:   Tue Aug 3 15:56:56 2021 -0600

    PCI: iproc: Fix BCMA probe resource handling

    In commit 7ef1c871da ("PCI: iproc: Use
    pci_parse_request_of_pci_ranges()"), calling
    devm_request_pci_bus_resources() was dropped from the common iProc
    probe code, but is still needed for BCMA bus probing. Without it, there
    will be lots of warnings like this:

    pci 0000:00:00.0: BAR 8: no space for [mem size 0x00c00000]
    pci 0000:00:00.0: BAR 8: failed to assign [mem size 0x00c00000]

    Add back calling devm_request_pci_bus_resources() and adding the
    resources to pci_host_bridge.windows for BCMA bus probe.

    Link: https://lore.kernel.org/r/20210803215656.3803204-2-robh@kernel.org
    Fixes: 7ef1c871da ("PCI: iproc: Use pci_parse_request_of_pci_ranges()")
    Reported-by: Rafał Miłecki <zajec5@gmail.com>
    Tested-by: Rafał Miłecki <rafal@milecki.pl>
    Signed-off-by: Rob Herring <robh@kernel.org>
    Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
    Cc: Srinath Mannam <srinath.mannam@broadcom.com>
    Cc: Roman Bacik <roman.bacik@broadcom.com>
    Cc: Bharat Gooty <bharat.gooty@broadcom.com>
    Cc: Abhishek Shah <abhishek.shah@broadcom.com>
    Cc: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
    Cc: Ray Jui <ray.jui@broadcom.com>
    Cc: Florian Fainelli <f.fainelli@gmail.com>
    Cc: BCM Kernel Feedback <bcm-kernel-feedback-list@broadcom.com>
    Cc: Scott Branden <sbranden@broadcom.com>
    Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
    Cc: "Krzysztof Wilczyński" <kw@linux.com>
    Cc: Bjorn Helgaas <bhelgaas@google.com>

Signed-off-by: Myron Stowe <mstowe@redhat.com>
2022-03-03 20:43:38 -07:00
Liu Shixin 0c3c87d2b2 PCI: iproc: Use module_bcma_driver to simplify the code
module_bcma_driver() makes the code simpler by eliminating
boilerplate code.

Link: https://lore.kernel.org/r/20200918030829.3946025-1-liushixin2@huawei.com
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Ray Jui <ray.jui@broadcom.com>
2020-10-02 12:45:26 +01:00
Shawn Lin 6e0832fa43 PCI: Collect all native drivers under drivers/pci/controller/
Native PCI drivers for root complex devices were originally all in
drivers/pci/host/.  Some of these devices can also be operated in endpoint
mode.  Drivers for endpoint mode didn't seem to fit in the "host"
directory, so we put both the root complex and endpoint drivers in
per-device directories, e.g., drivers/pci/dwc/, drivers/pci/cadence/, etc.

These per-device directories contain trivial Kconfig and Makefiles and
clutter drivers/pci/.  Make a new drivers/pci/controllers/ directory and
collect all the device-specific drivers there.

No functional change intended.

Link: https://lkml.kernel.org/r/1520304202-232891-1-git-send-email-shawn.lin@rock-chips.com
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
[bhelgaas: changelog]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2018-06-08 07:50:11 -05:00