Commit d439e7ed authored by Rob Herring's avatar Rob Herring Committed by Lorenzo Pieralisi

PCI: dwc/intel-gw: Drop unused max_width

'max_width' is read, but never used, so let's remove it.

Link: https://lore.kernel.org/r/20200821035420.380495-39-robh@kernel.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Dilip Kota <eswara.kota@linux.intel.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
parent cf854be2
...@@ -67,7 +67,6 @@ struct intel_pcie_port { ...@@ -67,7 +67,6 @@ struct intel_pcie_port {
void __iomem *app_base; void __iomem *app_base;
struct gpio_desc *reset_gpio; struct gpio_desc *reset_gpio;
u32 rst_intrvl; u32 rst_intrvl;
u32 max_width;
u32 n_fts; u32 n_fts;
struct clk *core_clk; struct clk *core_clk;
struct reset_control *core_rst; struct reset_control *core_rst;
...@@ -133,9 +132,6 @@ static void intel_pcie_link_setup(struct intel_pcie_port *lpp) ...@@ -133,9 +132,6 @@ static void intel_pcie_link_setup(struct intel_pcie_port *lpp)
u32 val; u32 val;
u8 offset = dw_pcie_find_capability(&lpp->pci, PCI_CAP_ID_EXP); u8 offset = dw_pcie_find_capability(&lpp->pci, PCI_CAP_ID_EXP);
val = pcie_rc_cfg_rd(lpp, offset + PCI_EXP_LNKCAP);
lpp->max_width = FIELD_GET(PCI_EXP_LNKCAP_MLW, val);
val = pcie_rc_cfg_rd(lpp, offset + PCI_EXP_LNKCTL); val = pcie_rc_cfg_rd(lpp, offset + PCI_EXP_LNKCTL);
val &= ~(PCI_EXP_LNKCTL_LD | PCI_EXP_LNKCTL_ASPMC); val &= ~(PCI_EXP_LNKCTL_LD | PCI_EXP_LNKCTL_ASPMC);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment