Commit 0f630e17a914f09435f6c2368cb14c997271f14d

Authored by Ye Li
1 parent 01823d8988

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>
(cherry picked from commit 0dd8cc03ecc45faaba0297c2832ff6ae307e8f30)

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/pci/pcie_imx.c
... ... @@ -1063,7 +1063,7 @@
1063 1063 * If both LTSSM_ENABLE and REF_SSP_ENABLE are active we have a strong
1064 1064 * indication that the bootloader activated the link.
1065 1065 */
1066   - if (priv->variant == IMX6QP && prepare_for_boot) {
  1066 + if (priv->variant == IMX6Q && prepare_for_boot) {
1067 1067 u32 val, gpr1, gpr12;
1068 1068  
1069 1069 imx_pcie_gpr_read(priv, 4, &gpr1);