On Thu, 2018-12-20 at 23:27 -0800, Andrey Smirnov wrote: > Until commit 4d107d3b5a68 ("PCI: imx6: Move link up check into > imx6_pcie_wait_for_link()") the driver relied on both LINK_UP and > LINK_IN_TRAINING to determine if PCIE link was up. I've already got a patch in that fixed this issue. Queued for 4.19 and 4.14 stable. The problem was created by 886bc5ceb5cc in one branch and by 4d107d3b5a68 on another branch, that when merged in 562df5c8521e, the merge kept some pieces from each commit and dropped other pieces, which resulted in this check getting dropped.