]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: imx6: Limit DBI register length for imx6qp PCIe
authorRichard Zhu <hongxing.zhu@nxp.com>
Sat, 20 Feb 2021 02:49:48 +0000 (10:49 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 24 Jun 2021 19:50:34 +0000 (14:50 -0500)
commitc0937959a91c06bcfae7686351f02a9864a751f0
tree8f08e16edcdd4dc1a9123a39f6cf12be43bc8f51
parentf897d0aca03cb9f54611bfa7c8194544acf3c2d4
PCI: imx6: Limit DBI register length for imx6qp PCIe

Define the length of the DBI registers and limit config space to its
length. This makes sure that the kernel does not access registers beyond
that point that otherwise would lead to an abort on the i.MX 6QuadPlus.

See commit fe464c1877e0 ("PCI: imx6: Limit DBI register length") that
resolves a similar issue on the i.MX 6Quad PCIe.

Link: https://lore.kernel.org/r/1613789388-2495-2-git-send-email-hongxing.zhu@nxp.com
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Krzysztof WilczyƄski <kw@linux.com>
drivers/pci/controller/dwc/pci-imx6.c