summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Semin <fancer.lancer@gmail.com>2023-02-15 22:37:57 +0300
committerSerge Semin <fancer.lancer@gmail.com>2026-08-06 01:03:45 +0300
commit3fa6338e50895377fe753d2bb4cfd176553f749a (patch)
tree546c797227eaa3fc49766663ecf71049747c3384
parent55814faa9910eae65f06a1a9924c859b442a0c73 (diff)
downloadlinux-3fa6338e50895377fe753d2bb4cfd176553f749a.tar.gz
linux-3fa6338e50895377fe753d2bb4cfd176553f749a.zip
PCI: dwc: Drop duplicated fast-link-mode flag unsetting
Most likely by mistake the PORT_LINK_FAST_LINK_MODE flag unsetting was added twice in the commit cff9244432e8 ("PCI: dwc: Ensure FAST_LINK_MODE is cleared"): first it is cleared right after the content of the PCIE_PORT_LINK_CONTROL register is read, second it's cleared in the framework of the link-mode initialization procedure. The later action is redundant. Let's drop it. Signed-off-by: Serge Semin <fancer.lancer@gmail.com> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
-rw-r--r--drivers/pci/controller/dwc/pcie-designware.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/controller/dwc/pcie-designware.c b/drivers/pci/controller/dwc/pcie-designware.c
index 5741c09dde7f..89a230d5f830 100644
--- a/drivers/pci/controller/dwc/pcie-designware.c
+++ b/drivers/pci/controller/dwc/pcie-designware.c
@@ -906,7 +906,6 @@ static void dw_pcie_link_set_max_link_width(struct dw_pcie *pci, u32 num_lanes)
/* Set the number of lanes */
plc = dw_pcie_readl_dbi(pci, PCIE_PORT_LINK_CONTROL);
- plc &= ~PORT_LINK_FAST_LINK_MODE;
plc &= ~PORT_LINK_MODE_MASK;
/* Set link width speed control register */