• Andrey Smirnov's avatar
    PCI: dwc: Share code for dw_pcie_rd/wr_other_conf() · 689e349a
    Andrey Smirnov authored
    Default implementation of pcie_rd_other_conf() and
    dw_pcie_wd_other_conf() share more than 80% of their code. Move shared
    code into a dedicated subroutine and convert pcie_rd_other_conf() and
    dw_pcie_wd_other_conf() to use it. No functional change intended.
    Signed-off-by: default avatarAndrey Smirnov <andrew.smirnov@gmail.com>
    Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
    Acked-by: default avatarGustavo Pimentel <gustavo.pimentel@synopsys.com>
    Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
    Cc: Bjorn Helgaas <bhelgaas@google.com>
    Cc: Fabio Estevam <fabio.estevam@nxp.com>
    Cc: Chris Healy <cphealy@gmail.com>
    Cc: Lucas Stach <l.stach@pengutronix.de>
    Cc: Leonard Crestez <leonard.crestez@nxp.com>
    Cc: "A.s. Dong" <aisheng.dong@nxp.com>
    Cc: Richard Zhu <hongxing.zhu@nxp.com>
    Cc: linux-imx@nxp.com
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux-kernel@vger.kernel.org
    Cc: linux-pci@vger.kernel.org
    689e349a
pcie-designware-host.c 17.8 KB