summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2020-05-22 01:50:57 -0700
committerYe Li <ye.li@nxp.com>2020-05-22 02:46:26 -0700
commit0dd8cc03ecc45faaba0297c2832ff6ae307e8f30 (patch)
tree2bc3725537daf5953d7aa3a599e5d341feea98f3 /drivers
parent36007650ed90eac8232a93255e5dc0a3710bf0a0 (diff)
MLK-24042-2 pci: pcie_imx: Fix iMX6Q remove issue
Wrong variable is check during pcie driver removing (6QP is checked but should be 6Q), so iMX6Q won't enter its handling and cause kernel PCI link failed to detect. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/pcie_imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pcie_imx.c b/drivers/pci/pcie_imx.c
index b18940f38b..10eff284e4 100644
--- a/drivers/pci/pcie_imx.c
+++ b/drivers/pci/pcie_imx.c
@@ -1063,7 +1063,7 @@ static int imx6_pcie_assert_core_reset(struct imx_pcie_priv *priv,
* If both LTSSM_ENABLE and REF_SSP_ENABLE are active we have a strong
* indication that the bootloader activated the link.
*/
- if (priv->variant == IMX6QP && prepare_for_boot) {
+ if (priv->variant == IMX6Q && prepare_for_boot) {
u32 val, gpr1, gpr12;
imx_pcie_gpr_read(priv, 4, &gpr1);