1. 05 8月, 2021 3 次提交
  2. 25 6月, 2021 2 次提交
  3. 18 6月, 2021 1 次提交
  4. 11 12月, 2020 1 次提交
  5. 08 12月, 2020 1 次提交
  6. 02 10月, 2020 1 次提交
  7. 07 9月, 2020 4 次提交
  8. 04 8月, 2020 2 次提交
  9. 24 7月, 2020 1 次提交
    • R
      PCI: Move setting pci_host_bridge.busnr out of host drivers · 4f5c883d
      Rob Herring 提交于
      Most host drivers only parse the DT bus range to set the root bus number
      in pci_host_bridge.busnr. The ones that don't set busnr are buggy in
      that they ignore what's in DT. Let's set busnr in pci_scan_root_bus_bridge()
      where we already check for the bus resource and remove setting it in
      host drivers.
      
      Link: https://lore.kernel.org/r/20200722022514.1283916-12-robh@kernel.orgSigned-off-by: NRob Herring <robh@kernel.org>
      Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Acked-by: NBjorn Helgaas <bhelgaas@google.com>
      Cc: Jingoo Han <jingoohan1@gmail.com>
      Cc: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
      Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Cc: Bjorn Helgaas <bhelgaas@google.com>
      Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Jonathan Hunter <jonathanh@nvidia.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Ryder Lee <ryder.lee@mediatek.com>
      Cc: Marek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
      Cc: linux-tegra@vger.kernel.org
      Cc: linux-mediatek@lists.infradead.org
      Cc: linux-renesas-soc@vger.kernel.org
      4f5c883d
  10. 23 7月, 2020 3 次提交
  11. 21 7月, 2020 1 次提交
    • P
      PCI: aardvark: Don't touch PCIe registers if no card connected · 70e38025
      Pali Rohár 提交于
      When there is no PCIe card connected and advk_pcie_rd_conf() or
      advk_pcie_wr_conf() is called for PCI bus which doesn't belong to emulated
      root bridge, the aardvark driver throws the following error message:
      
        advk-pcie d0070000.pcie: config read/write timed out
      
      Obviously accessing PCIe registers of disconnected card is not possible.
      
      Extend check in advk_pcie_valid_device() function for validating
      availability of PCIe bus. If PCIe link is down, then the device is marked
      as Not Found and the driver does not try to access these registers.
      
      This is just an optimization to prevent accessing PCIe registers when card
      is disconnected. Trying to access PCIe registers of disconnected card does
      not cause any crash, kernel just needs to wait for a timeout. So if card
      disappear immediately after checking for PCIe link (before accessing PCIe
      registers), it does not cause any problems.
      
      Link: https://lore.kernel.org/r/20200702083036.12230-1-pali@kernel.orgSigned-off-by: NPali Rohár <pali@kernel.org>
      Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      70e38025
  12. 10 7月, 2020 1 次提交
  13. 07 7月, 2020 1 次提交
  14. 18 5月, 2020 7 次提交
  15. 12 5月, 2020 1 次提交
  16. 21 11月, 2019 2 次提交
  17. 29 10月, 2019 1 次提交
  18. 17 10月, 2019 1 次提交
  19. 15 10月, 2019 4 次提交
  20. 09 7月, 2019 1 次提交
  21. 01 4月, 2019 1 次提交
    • W
      PCI: aardvark: Fix a leaked reference by adding missing of_node_put() · 3842f516
      Wen Yang 提交于
      The call to of_get_next_child() returns a node pointer with refcount
      incremented thus it must be explicitly decremented after the last
      usage.
      
      irq_domain_add_linear() also calls of_node_get() to increase refcount,
      so irq_domain will not be affected when it is released.
      
      Detected by coccinelle with the following warnings:
        ./drivers/pci/controller/pci-aardvark.c:826:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 798, but without a corresponding object release within this function.
      Signed-off-by: NWen Yang <wen.yang99@zte.com.cn>
      Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
      Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Cc: Bjorn Helgaas <bhelgaas@google.com>
      Cc: linux-pci@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      3842f516