]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: dwc: designware: Test PCIE_ATU_ENABLE bit specifically
authorJisheng Zhang <jszhang@marvell.com>
Tue, 18 Jul 2017 06:48:21 +0000 (14:48 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 2 Aug 2017 21:51:24 +0000 (16:51 -0500)
commitffe1cdffbbd75d90fad5d861627b18d42abdf5d3
tree954aba3da421f58a2648bd372af08eb95570b7da
parent04ce20a4ae3e3f0ecccb0901f3bf7c431eb8aa1b
PCI: dwc: designware: Test PCIE_ATU_ENABLE bit specifically

The ATU CTRL2 register is 32 bits, and bits other than the enable bit may
be set.  To check whether the ATU is enabled or not, we should test the
enable bit specifically.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Joao Pinto <jpinto@synopsys.com>
Acked-by: Jingoo Han <jingoohan1@gmail.com>
drivers/pci/dwc/pcie-designware.c