PCI: dwc: Don't assume the ops in dw_pcie always exist
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Thu, 28 Jan 2021 06:42:58 +0000 (14:42 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 24 Feb 2021 17:09:50 +0000 (11:09 -0600)
commita2f882d84406ac3a31af09ebd2ec2410fda3e80d
tree7b8abc74b3b90aed29e8eae246ac4b63471c23a9
parent5b4cf0f6532434537818e4a3c656b9f11c81729b
PCI: dwc: Don't assume the ops in dw_pcie always exist

Some dwc-based device drivers, especially host-only drivers, may work well
with the default read_dbi/write_dbi/link_up implementations in
pcie-designware.c, so remove the assumption that every driver implements
them to simplify those drivers.

Link: https://lore.kernel.org/r/20210128144258.10329aa4@xhacker.debian
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/dwc/pcie-designware-ep.c
drivers/pci/controller/dwc/pcie-designware-host.c
drivers/pci/controller/dwc/pcie-designware.c