MLK-14644 PCI: imx: toggle the perst after the release of rc's reset
authorRichard Zhu <hongxing.zhu@nxp.com>
Fri, 11 Jan 2019 09:19:51 +0000 (14:49 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitd79dc19c1ebadadd7e5463865aa590f2092bf1af
tree24aef3f9551893b818f023f913c8acd7e309190e
parentb6a94a855b5bbcd5e83c3ac4a16244031dd0fbf9
MLK-14644 PCI: imx: toggle the perst after the release of rc's reset

imxcommunity reports that Intel Wireless 3160 doesn't
work if the perst# is toggled before the release of rc
controller's reset.

Specification doesn't specify the exactly sequence of
the toggle of the perst# and the release of the rc
controller reset. Just find the following description
in the chapter 4.2.2 of the PCI Local Bus Specification.

"The system must guarantee that the bus remains in the idle
state for a minimum time delay following the deassertion
of RST# to a device before the system will permit the first
assertion of FRAME#."

Toggle the perst# after the release of rc's reset to
fix the issue.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
(cherry picked from commit ba75c5e4795ab36d7765fe3ac03f0c4320828c78)
rebase on v4.19
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
drivers/pci/controller/dwc/pci-imx6.c