PCI: imx6: Convert DIRECT_SPEED_CHANGE quirk code to use a flag
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Sat, 2 Feb 2019 00:15:22 +0000 (16:15 -0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 4 Feb 2019 12:01:09 +0000 (12:01 +0000)
commit4c458bb347ae016e75f6c61dab95ce530f4ff6fc
treeff58ae3ae1f957851bf2dabd1dfc32dc63382e6f
parent2f532d07f0cce72f88a4a0532ae11be6a2745697
PCI: imx6: Convert DIRECT_SPEED_CHANGE quirk code to use a flag

Both i.MX7D and i.MX8MQ have the same behaviour when it comes to
clearing DIRECT_SPEED_CHANGE bit when no speed change occurs, so to
handle variants correctly add a flag instead of checking the IP block
variant.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
[lorenzo.pieralisi@arm.com: updated log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Chris Healy <cphealy@gmail.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Leonard Crestez <leonard.crestez@nxp.com>
Cc: "A.s. Dong" <aisheng.dong@nxp.com>
Cc: Richard Zhu <hongxing.zhu@nxp.com>
drivers/pci/controller/dwc/pci-imx6.c