PCI: dwc: Skip PCIE_MSI_INTR0* programming if MSI is disabled
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Fri, 9 Oct 2020 07:54:36 +0000 (15:54 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 13 Oct 2020 08:52:49 +0000 (09:52 +0100)
commit742833249198bfd07944158eca50f740faf823f3
tree26b731d885ace738ac0a454f39d4e271da635884
parentb101a39897d8369366e8a901666a32ee6db3974d
PCI: dwc: Skip PCIE_MSI_INTR0* programming if MSI is disabled

If MSI is disabled, there's no need to program PCIE_MSI_INTR0_MASK
and PCIE_MSI_INTR0_ENABLE registers.

Link: https://lore.kernel.org/r/20201009155436.27e67238@xhacker.debian
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
drivers/pci/controller/dwc/pcie-designware-host.c