PCI: imx6: Set PCIE_DBI_RO_WR_EN before writing DBI registers
authorRichard Zhu <hongxing.zhu@nxp.com>
Wed, 18 May 2022 09:35:27 +0000 (17:35 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 1 Aug 2022 20:34:13 +0000 (15:34 -0500)
commit13f8f3d1e369f56dfaeea10a2238d56bc36c876c
tree7dcdb5726f3140c17495cee99397d023effeb314
parent835a345b18b013cc03b0fc392394fbccd61d4efb
PCI: imx6: Set PCIE_DBI_RO_WR_EN before writing DBI registers

The PCIE_DBI_RO_WR_EN bit should be set when write some DBI registers.  To
make sure that the DBI registers are writable, set the PCIE_DBI_RO_WR_EN
properly when writing the DBI registers.

Link: https://lore.kernel.org/r/1652866528-13220-1-git-send-email-hongxing.zhu@nxp.com
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/dwc/pci-imx6.c