]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: dwc: Always enable CDM check if "snps,enable-cdm-check" exists
authorBaikal Electronics <support@baikalelectronics.ru>
Fri, 24 Jun 2022 14:34:16 +0000 (17:34 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 6 Jul 2022 00:00:52 +0000 (19:00 -0500)
commitc4a9a5762ced6000735b46639dc2101fb9b28edf
tree36c9b58a8059093b762253f80084006534f0258f
parenta2914de82c0cab0077b4f91a1e70cc162257d2a6
PCI: dwc: Always enable CDM check if "snps,enable-cdm-check" exists

If the "snps,enable-cdm-check" property exists, we should enable the CDM
check.  But previously dw_pcie_setup() could exit before doing so if the
"num-lanes" property was absent or invalid.

Move the CDM enable earlier so we do it regardless of whether "num-lanes"
is present.

[bhelgaas: commit log]
Fixes: 0b97d0f282a6 ("PCI: dwc: Add support to enable CDM register check")
Link: https://lore.kernel.org/r/20220624143428.8334-7-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/pci/controller/dwc/pcie-designware.c