Skip to content

Commit d439e7e

Browse files
robherringLorenzo Pieralisi
authored andcommitted
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.org Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Lorenzo 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>
1 parent cf854be commit d439e7e

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎drivers/pci/controller/dwc/pcie-intel-gw.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ struct intel_pcie_port {
6767
void __iomem *app_base;
6868
struct gpio_desc *reset_gpio;
6969
u32 rst_intrvl;
70-
u32 max_width;
7170
u32 n_fts;
7271
struct clk *core_clk;
7372
struct reset_control *core_rst;
@@ -133,9 +132,6 @@ static void intel_pcie_link_setup(struct intel_pcie_port *lpp)
133132
u32 val;
134133
u8 offset = dw_pcie_find_capability(&lpp->pci, PCI_CAP_ID_EXP);
135134

136-
val = pcie_rc_cfg_rd(lpp, offset + PCI_EXP_LNKCAP);
137-
lpp->max_width = FIELD_GET(PCI_EXP_LNKCAP_MLW, val);
138-
139135
val = pcie_rc_cfg_rd(lpp, offset + PCI_EXP_LNKCTL);
140136

141137
val &= ~(PCI_EXP_LNKCTL_LD | PCI_EXP_LNKCTL_ASPMC);

0 commit comments

Comments
 (0)