]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI: designware-ep: Fix the Header Type check
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Tue, 18 Aug 2020 09:27:46 +0000 (17:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 09:08:04 +0000 (10:08 +0100)
commit50c4627222c28bcc4c86d4b10b3bae7bacd5e835
treea19603e2aa201780c62d0939e95fe39fa2a67ec1
parent4f515d03d4f9c5000cfff7feca8909997e1fb029
PCI: designware-ep: Fix the Header Type check

[ Upstream commit 16270a92355722e387e9ca19627c5a4d7bae1354 ]

The current check will result in the multiple function device
fails to initialize. So fix the check by masking out the
multiple function bit.

Link: https://lore.kernel.org/r/20200818092746.24366-1-Zhiqiang.Hou@nxp.com
Fixes: 0b24134f7888 ("PCI: dwc: Add validation that PCIe core is set to correct mode")
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/controller/dwc/pcie-designware-ep.c
include/uapi/linux/pci_regs.h