1. Sep 03, 2021
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/tegra' · db2d64f8
      Bjorn Helgaas authored
      - Remove unused struct tegra_pcie_bus (Krzysztof Wilczyński)
      
      * remotes/lorenzo/pci/tegra:
        PCI: tegra: make const array err_msg static
        PCI: tegra: Use 'seq_puts' instead of 'seq_printf'
        PCI: tegra: Fix OF node reference leak
        PCI: tegra: Remove unused struct tegra_pcie_bus
      db2d64f8
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/rcar' · c2863b21
      Bjorn Helgaas authored
      - Fix runtime PM imbalance in rcar_pcie_ep_probe() (Dinghao Liu)
      
      * remotes/lorenzo/pci/rcar:
        PCI: rcar: Add L1 link state fix into data abort hook
        PCI: rcar: Fix runtime PM imbalance in rcar_pcie_ep_probe()
      c2863b21
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/mediatek' · c501cf9c
      Bjorn Helgaas authored
      - Split DT bindings for PCIe controllers with independent MSI domains into
        separate nodes for MT2712/MT7622 (Chuanjia Liu)
      
      - Locate shared registers from "mediatek,generic-pciecfg" property
        (Chuanjia Liu)
      
      - Get IRQ from "pcie_irq" if "interrupt-names" property is present to fix
        an MSI issue (Chuanjia Liu)
      
      - Get PCI domain from "linux,pci-domain" property if present (Chuanjia Liu)
      
      * remotes/lorenzo/pci/mediatek:
        PCI: mediatek: Use PCI domain to handle ports detection
        PCI: mediatek: Add new method to get irq number
        PCI: mediatek: Add new method to get shared pcie-cfg base address
        dt-bindings: PCI: mediatek: Update the Device tree bindings
      c501cf9c
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/keembay' · af42a0d4
      Bjorn Helgaas authored
      - Add Intel Keem Bay PCIe controller driver and DT binding (Srikanth
        Thokala)
      
      * remotes/lorenzo/pci/keembay:
        PCI: keembay: Add support for Intel Keem Bay
        dt-bindings: PCI: Add Intel Keem Bay PCIe controller
      af42a0d4
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/iproc' · c1bb1449
      Bjorn Helgaas authored
      - Don't fail devm_pci_alloc_host_bridge() on missing 'ranges' (Rob Herring)
      
      - Fix BCMA probe resource handling (Rob Herring)
      
      * remotes/lorenzo/pci/iproc:
        PCI: iproc: Fix BCMA probe resource handling
        PCI: of: Don't fail devm_pci_alloc_host_bridge() on missing 'ranges'
      c1bb1449
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/hyper-v' · a1e4ca8e
      Bjorn Helgaas authored
      - Add domain_nr in struct pci_host_bridge (Boqun Feng)
      
      - Use host bridge MSI domain for root buses if present (Boqun Feng)
      
      - Allow ARM64 virtual host bridge with no ACPI companion (e.g., Hyper-V)
        (Boqun Feng)
      
      - Make Hyper-V enumeration more generic (Arnd Bergmann)
      
      - Set Hyper-V domain_nr at probe-time (Boqun Feng)
      
      - Set up Hyper-V MSI domain at bridge probe-time (Boqun Feng)
      
      - Enable Hyper-V bridge probing on ARM64 (Boqun Feng)
      
      * remotes/lorenzo/pci/hyper-v:
        PCI: hv: Turn on the host bridge probing on ARM64
        PCI: hv: Set up MSI domain at bridge probing time
        PCI: hv: Set ->domain_nr of pci_host_bridge at probing time
        PCI: hv: Generify PCI probing
        arm64: PCI: Support root bridge preparation for Hyper-V
        arm64: PCI: Restructure pcibios_root_bridge_prepare()
        PCI: Support populating MSI domains of root buses via bridges
        PCI: Introduce domain_nr in pci_host_bridge
      a1e4ca8e
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/hv' · 53cb14d2
      Bjorn Helgaas authored
      - Support Hyper-V Create Interrupt v3 message (Sunil Muthuswamy)
      
      * remotes/lorenzo/pci/hv:
        PCI: hv: Support for create interrupt v3
      53cb14d2
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/cadence' · 2b5a949e
      Bjorn Helgaas authored
      - Convert bool in structs to bitfield (Kishon Vijay Abraham I)
      
      - Work around J7200 non-PCIe SERDES lane electrical issue that prevents
        PCIe link training (Nadeem Athani)
      
      - Add J7200 PCIe support to j721e (Kishon Vijay Abraham I)
      
      - Add AM64 PCIe support to j721e (Kishon Vijay Abraham I)
      
      - Add J7200 and AM64 device IDs to endpoint test (Kishon Vijay Abraham I)
      
      * remotes/lorenzo/pci/cadence:
        misc: pci_endpoint_test: Add deviceID for AM64 and J7200
        PCI: j721e: Add PCIe support for AM64
        PCI: j721e: Add PCIe support for J7200
        PCI: cadence: Add quirk flag to set minimum delay in LTSSM Detect.Quiet state
        PCI: cadence: Use bitfield for *quirk_retrain_flag* instead of bool
      2b5a949e
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/aardvark' · 540267e2
      Bjorn Helgaas authored
      - Fix PIO config access status checking (Evan Wang)
      
      - Increase config access polling delay to 1.5s (Pali Rohár)
      
      - Add PCIe Root Capabilities to bridge emulation (Pali Rohár)
      
      - Report Config Request Retry Status when Software Visibility enabled (Pali
        Rohár)
      
      - Add back configuration of PCIe resources from 'ranges' DT property and
        pay attention to DT size and CPU/PCI offset to fix issues with I/O port
        space (Pali Rohár)
      
      - Serialize masking and unmasking legacy INTx interrupts (Pali Rohár)
      
      * remotes/lorenzo/pci/aardvark:
        PCI: aardvark: Fix masking and unmasking legacy INTx interrupts
        PCI: aardvark: Configure PCIe resources from 'ranges' DT property
        PCI: aardvark: Fix reporting CRS value
        PCI: pci-bridge-emul: Add PCIe Root Capabilities Register
        PCI: aardvark: Increase polling delay to 1.5s while waiting for PIO response
        PCI: aardvark: Fix checking for PIO status
      540267e2
    • Bjorn Helgaas's avatar
      Merge branch 'pci/visconti' · a549a33c
      Bjorn Helgaas authored
      - Add Toshiba Visconti PCIe host controller driver (Nobuhiro Iwamatsu)
      
      * pci/visconti:
        MAINTAINERS: Add entries for Toshiba Visconti PCIe controller
        PCI: visconti: Add Toshiba Visconti PCIe host controller driver
      a549a33c
    • Bjorn Helgaas's avatar
      Merge branch 'pci/rockchip-dwc' · 0e52059a
      Bjorn Helgaas authored
      - Add Rockchip RK356X host controller driver (Simon Xue)
      
      * pci/rockchip-dwc:
        PCI: rockchip-dwc: Add Rockchip RK356X host controller driver
      0e52059a
    • Bjorn Helgaas's avatar
      Merge branch 'pci/dwc' · bd8bb4d0
      Bjorn Helgaas authored
      - Remove surplus break statement (Krzysztof Wilczyński)
      
      * pci/dwc:
        PCI: dwc: Remove surplus break statement after return
      bd8bb4d0
    • Bjorn Helgaas's avatar
      Merge branch 'pci/artpec6' · dbf0b9ba
      Bjorn Helgaas authored
      - Remove surplus break statement and local code block (Krzysztof
        Wilczyński)
      
      * pci/artpec6:
        PCI: artpec6: Remove local code block from switch statement
        PCI: artpec6: Remove surplus break statement after return
      dbf0b9ba
    • Bjorn Helgaas's avatar
      Merge branch 'pci/misc' · 739c4747
      Bjorn Helgaas authored
      - Add pci_numachip_init() declaration (Krzysztof Wilczyński)
      
      - Allocate pci_dev_str_match_path() string atomically (Dan Carpenter)
      
      - Drop error message when Precision Time Measurement supported but not
        enabled (Jakub Kicinski)
      
      - Correct the pci_iomap.h header guard #endif comment (Jonathan Cameron)
      
      - Add schedule point in proc_bus_pci_read() (Krzysztof Wilczyński)
      
      - Make saved capability state private to core (Bjorn Helgaas)
      
      - Sync __pci_register_driver() stub for CONFIG_PCI=n (Andy Shevchenko)
      
      - Convert sta2x11 from PCI-DMA-API to generic DMA-API (Christophe JAILLET)
      
      * pci/misc:
        x86/PCI: sta2x11: switch from 'pci_' to 'dma_' API
        PCI: Sync __pci_register_driver() stub for CONFIG_PCI=n
        PCI: Make saved capability state private to core
        PCI: Add schedule point in proc_bus_pci_read()
        PCI: Correct the pci_iomap.h header guard #endif comment
        PCI/PTM: Remove error message at boot
        PCI: Fix pci_dev_str_match_path() alloc while atomic bug
        x86/PCI: Add pci_numachip_init() declaration
      
      # Conflicts:
      #	include/linux/pci.h
      739c4747
    • Bjorn Helgaas's avatar
      Merge branch 'pci/vpd' · 74797618
      Bjorn Helgaas authored
      - Check Resource Item Names against those defined for type (Bjorn Helgaas)
      
      - Treat initial 0xff as missing EEPROM (Heiner Kallweit)
      
      - Reject resource tags with invalid size (Bjorn Helgaas)
      
      - Don't check Large Resource Item Names for validity (Bjorn Helgaas)
      
      - Allow access to valid parts of VPD if some is invalid (Bjorn Helgaas)
      
      - Remove pci_vpd_size() old_size argument (Heiner Kallweit)
      
      - Make pci_vpd_wait() uninterruptible (Heiner Kallweit)
      
      - Remove struct pci_vpd.flag (Heiner Kallweit)
      
      - Remove struct pci_vpd_ops (Heiner Kallweit)
      
      - Remove struct pci_vpd.valid member (Heiner Kallweit)
      
      - Embed struct pci_vpd in struct pci_dev (Heiner Kallweit)
      
      - Determine VPD size in pci_vpd_init() (Heiner Kallweit)
      
      - Treat invalid VPD like missing VPD capability (Heiner Kallweit)
      
      - Add pci_vpd_alloc() to allocate buffer and read VPD into it (Heiner
        Kallweit)
      
      - Add pci_vpd_find_ro_info_keyword() (Heiner Kallweit)
      
      - Add pci_vpd_check_csum() (Heiner Kallweit)
      
      - Add pci_vpd_find_id_string() (Heiner Kallweit)
      
      - Read VPD with pci_vpd_alloc() (bnx2x, bnxt, sfc, sfc falcon, tg3 drivers)
        (Heiner Kallweit)
      
      - Search VPD with pci_vpd_find_ro_info_keyword() (bnx2, bnx2x, bnxt, cxgb4,
        cxlflash SCSI, sfc, sfc falcon, tg3 drivers) (Heiner Kallweit)
      
      - Search VPD with pci_vpd_find_id_string() (cxgb4 driver) (Heiner Kallweit)
      
      - Validate VPD checksum with pci_vpd_check_csum() (cxgb4, tg3 drivers)
        (Heiner Kallweit)
      
      - Replace open-coded byte swapping with swab32s() in bnx2 (Heiner Kallweit)
      
      - Remove unused vpd_param member ec (Heiner Kallweit)
      
      - Stop exporting pci_vpd_find_tag(), pci_vpd_find_info_keyword() (Heiner
        Kallweit)
      
      - Move several VPD defines and inlines to internal PCI core (Heiner
        Kallweit)
      
      * pci/vpd:
        PCI/VPD: Use unaligned access helpers
        PCI/VPD: Clean up public VPD defines and inline functions
        cxgb4: Use pci_vpd_find_id_string() to find VPD ID string
        PCI/VPD: Add pci_vpd_find_id_string()
        PCI/VPD: Include post-processing in pci_vpd_find_tag()
        PCI/VPD: Stop exporting pci_vpd_find_info_keyword()
        PCI/VPD: Stop exporting pci_vpd_find_tag()
        scsi: cxlflash: Search VPD with pci_vpd_find_ro_info_keyword()
        cxgb4: Search VPD with pci_vpd_find_ro_info_keyword()
        cxgb4: Remove unused vpd_param member ec
        cxgb4: Validate VPD checksum with pci_vpd_check_csum()
        bnxt: Search VPD with pci_vpd_find_ro_info_keyword()
        bnxt: Read VPD with pci_vpd_alloc()
        bnx2x: Search VPD with pci_vpd_find_ro_info_keyword()
        bnx2x: Read VPD with pci_vpd_alloc()
        bnx2: Replace open-coded byte swapping with swab32s()
        bnx2: Search VPD with pci_vpd_find_ro_info_keyword()
        sfc: falcon: Search VPD with pci_vpd_find_ro_info_keyword()
        sfc: falcon: Read VPD with pci_vpd_alloc()
        tg3: Search VPD with pci_vpd_find_ro_info_keyword()
        tg3: Validate VPD checksum with pci_vpd_check_csum()
        tg3: Read VPD with pci_vpd_alloc()
        sfc: Search VPD with pci_vpd_find_ro_info_keyword()
        sfc: Read VPD with pci_vpd_alloc()
        PCI/VPD: Add pci_vpd_check_csum()
        PCI/VPD: Add pci_vpd_find_ro_info_keyword()
        PCI/VPD: Add pci_vpd_alloc()
        PCI/VPD: Treat invalid VPD like missing VPD capability
        PCI/VPD: Determine VPD size in pci_vpd_init()
        PCI/VPD: Embed struct pci_vpd in struct pci_dev
        PCI/VPD: Remove struct pci_vpd.valid member
        PCI/VPD: Remove struct pci_vpd_ops
        PCI/VPD: Reorder pci_read_vpd(), pci_write_vpd()
        PCI/VPD: Remove struct pci_vpd.flag
        PCI/VPD: Make pci_vpd_wait() uninterruptible
        PCI/VPD: Remove pci_vpd_size() old_size argument
        PCI/VPD: Allow access to valid parts of VPD if some is invalid
        PCI/VPD: Don't check Large Resource Item Names for validity
        PCI/VPD: Reject resource tags with invalid size
        PCI/VPD: Treat initial 0xff as missing EEPROM
        PCI/VPD: Check Resource Item Names against those valid for type
        PCI/VPD: Correct diagnostic for VPD read failure
      74797618
    • Bjorn Helgaas's avatar
      Merge branch 'pci/virtualization' · 1295d187
      Bjorn Helgaas authored
      - Add ACS quirks for NXP LX2xx0 and LX2xx2 platforms (Wasim Khan)
      
      - Add ACS quirks for Cavium multi-function devices (George Cherian)
      
      - Enforce pci=noats with Transaction Blocking (Alex Williamson)
      
      * pci/virtualization:
        PCI/ACS: Enforce pci=noats with Transaction Blocking
        PCI: Add ACS quirks for Cavium multi-function devices
        PCI: Add ACS quirks for NXP LX2xx0 and LX2xx2 platforms
      1295d187
    • Bjorn Helgaas's avatar
      Merge branch 'pci/resource' · 9045f63e
      Bjorn Helgaas authored
      - Refactor pci_ioremap_bar() and pci_ioremap_wc_bar() (Krzysztof
        Wilczyński)
      
      - Optimize pci_resource_len() to reduce kernel size (Zhen Lei)
      
      * pci/resource:
        PCI: Optimize pci_resource_len() to reduce kernel size
        PCI: Refactor pci_ioremap_bar() and pci_ioremap_wc_bar()
      9045f63e
    • Bjorn Helgaas's avatar
      Merge branch 'pci/reset' · e210d9fc
      Bjorn Helgaas authored
      - Cache PCIe Device Capabilities register (Amey Narkhede)
      
      - Add pcie_reset_flr() with 'probe' argument (Amey Narkhede)
      
      - Add pdev->reset_methods[] array to track reset method ordering (Amey
        Narkhede)
      
      - Remove reset_fn field from pci_dev (Amey Narkhede)
      
      - Add sysfs interface to query and set device reset mechanism (Amey
        Narkhede)
      
      - Add pci_set_acpi_fwnode() to set ACPI_COMPANION (Shanker Donthineni)
      
      - Use acpi_pci_power_manageable() instead of duplicating logic (Shanker
        Donthineni)
      
      - Set ACPI fwnode early and at the same time with OF (Shanker Donthineni)
      
      - Add support for ACPI _RST reset method (Shanker Donthineni)
      
      - Change reset function 'probe' argument to bool (Amey Narkhede)
      
      * pci/reset:
        PCI: Change the type of probe argument in reset functions
        PCI: Add support for ACPI _RST reset method
        PCI: Setup ACPI fwnode early and at the same time with OF
        PCI: Use acpi_pci_power_manageable()
        PCI: Add pci_set_acpi_fwnode() to set ACPI_COMPANION
        PCI: Allow userspace to query and set device reset mechanism
        PCI: Remove reset_fn field from pci_dev
        PCI: Add array to track reset method ordering
        PCI: Add pcie_reset_flr() with 'probe' argument
        PCI: Cache PCIe Device Capabilities register
      e210d9fc
    • Bjorn Helgaas's avatar
      Merge branch 'pci/portdrv' · 34627f4d
      Bjorn Helgaas authored
      - Enable Bandwidth Notification only if port supports it (Stuart Hayes)
      
      * pci/portdrv:
        PCI/portdrv: Enable Bandwidth Notification only if port supports it
      34627f4d
    • Bjorn Helgaas's avatar
      Merge branch 'pci/irq' · 03816e7f
      Bjorn Helgaas authored
      - Convert irq_find_mapping() + generic_handle_irq() to
        generic_handle_domain_irq() (Marc Zyngier)
      
      * pci/irq:
        PCI: Bulk conversion to generic_handle_domain_irq()
      03816e7f
    • Bjorn Helgaas's avatar
      Merge branch 'pci/iommu' · 9d102c74
      Bjorn Helgaas authored
      - Allow PASID on fake PCIe devices, e.g., HiSilicon KunPeng920 and
        KunPeng930 AMBA devices, without TLP prefixes (Zhangfei Gao)
      
      - Allow SVA / dma-can-stall on fake PCIe devices (Zhangfei Gao)
      
      * pci/iommu:
        PCI: Set dma-can-stall for HiSilicon chips
        PCI: Allow PASID on fake PCIe devices without TLP prefixes
      9d102c74
    • Bjorn Helgaas's avatar
      Merge branch 'pci/hotplug' · 4f6f0b86
      Bjorn Helgaas authored
      - Fix ibmphp double unmap of io_mem (Vishal Aslot)
      
      * pci/hotplug:
        PCI: ibmphp: Fix double unmap of io_mem
      4f6f0b86
    • Bjorn Helgaas's avatar
      Merge branch 'pci/enumeration' · 52d44f3c
      Bjorn Helgaas authored
      - Call Max Payload Size-related fixup quirks early, so they're considered
        by pci_configure_mps() (Marek Behún)
      
      - Restrict Max Payload Size Supported to work around ASMedia ASM1062 SATA
        erratum (Marek Behún)
      
      - Return ~0 data on pciconfig_read() CAP_SYS_ADMIN failure (Krzysztof
        Wilczyński)
      
      * pci/enumeration:
        PCI: Return int from pciconfig_read() syscall
        PCI: Return ~0 data on pciconfig_read() CAP_SYS_ADMIN failure
        PCI: Restrict ASMedia ASM1062 SATA Max Payload Size Supported
        PCI: Call Max Payload Size-related fixup quirks early
      52d44f3c
    • Vishal Aslot's avatar
      PCI: ibmphp: Fix double unmap of io_mem · faa2e05a
      Vishal Aslot authored
      ebda_rsrc_controller() calls iounmap(io_mem) on the error path. Its caller,
      ibmphp_access_ebda(), also calls iounmap(io_mem) on good and error paths.
      
      Remove the iounmap(io_mem) invocation from ebda_rsrc_controller().
      
      [bhelgaas: remove item from TODO]
      Link: https://lore.kernel.org/r/20210818165751.591185-1-os.vaslot@gmail.com
      
      
      Signed-off-by: default avatarVishal Aslot <os.vaslot@gmail.com>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      faa2e05a
    • Christophe JAILLET's avatar
      x86/PCI: sta2x11: switch from 'pci_' to 'dma_' API · 0da14a19
      Christophe JAILLET authored
      The wrappers in include/linux/pci-dma-compat.h should go away.
      
      The patch has been generated with the coccinelle script below.
      
      It has been hand modified to use 'dma_set_mask_and_coherent()' instead of
      'pci_set_dma_mask()/pci_set_consistent_dma_mask()' when applicable.
      This is less verbose.
      
      It has been compile tested.
      
      @@
      @@
      -    PCI_DMA_BIDIRECTIONAL
      +    DMA_BIDIRECTIONAL
      
      @@
      @@
      -    PCI_DMA_TODEVICE
      +    DMA_TO_DEVICE
      
      @@
      @@
      -    PCI_DMA_FROMDEVICE
      +    DMA_FROM_DEVICE
      
      @@
      @@
      -    PCI_DMA_NONE
      +    DMA_NONE
      
      @@
      expression e1, e2, e3;
      @@
      -    pci_alloc_consistent(e1, e2, e3)
      +    dma_alloc_coherent(&e1->dev, e2, e3, GFP_)
      
      @@
      expression e1, e2, e3;
      @@
      -    pci_zalloc_consistent(e1, e2, e3)
      +    dma_alloc_coherent(&e1->dev, e2, e3, GFP_)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_free_consistent(e1, e2, e3, e4)
      +    dma_free_coherent(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_map_single(e1, e2, e3, e4)
      +    dma_map_single(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_unmap_single(e1, e2, e3, e4)
      +    dma_unmap_single(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2, e3, e4, e5;
      @@
      -    pci_map_page(e1, e2, e3, e4, e5)
      +    dma_map_page(&e1->dev, e2, e3, e4, e5)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_unmap_page(e1, e2, e3, e4)
      +    dma_unmap_page(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_map_sg(e1, e2, e3, e4)
      +    dma_map_sg(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_unmap_sg(e1, e2, e3, e4)
      +    dma_unmap_sg(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_dma_sync_single_for_cpu(e1, e2, e3, e4)
      +    dma_sync_single_for_cpu(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_dma_sync_single_for_device(e1, e2, e3, e4)
      +    dma_sync_single_for_device(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_dma_sync_sg_for_cpu(e1, e2, e3, e4)
      +    dma_sync_sg_for_cpu(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_dma_sync_sg_for_device(e1, e2, e3, e4)
      +    dma_sync_sg_for_device(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2;
      @@
      -    pci_dma_mapping_error(e1, e2)
      +    dma_mapping_error(&e1->dev, e2)
      
      @@
      expression e1, e2;
      @@
      -    pci_set_dma_mask(e1, e2)
      +    dma_set_mask(&e1->dev, e2)
      
      @@
      expression e1, e2;
      @@
      -    pci_set_consistent_dma_mask(e1, e2)
      +    dma_set_coherent_mask(&e1->dev, e2)
      
      Link: https://lore.kernel.org/r/99656452963ba3c63a6cb12e151279d81da365eb.1629658069.git.christophe.jaillet@wanadoo.fr
      Link: https://lore.kernel.org/kernel-janitors/20200421081257.GA131897@infradead.org/
      
      
      Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      0da14a19
  2. Sep 01, 2021