File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
drivers/net/ethernet/mellanox/mlx5/core Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,6 @@ static int mlx5_pci_link_toggle(struct mlx5_core_dev *dev)
307
307
unsigned long timeout ;
308
308
struct pci_dev * sdev ;
309
309
int cap , err ;
310
- u32 reg32 ;
311
310
312
311
/* Check that all functions under the pci bridge are PFs of
313
312
* this device otherwise fail this function.
@@ -346,11 +345,8 @@ static int mlx5_pci_link_toggle(struct mlx5_core_dev *dev)
346
345
return err ;
347
346
348
347
/* Check link */
349
- err = pci_read_config_dword (bridge , cap + PCI_EXP_LNKCAP , & reg32 );
350
- if (err )
351
- return err ;
352
- if (!(reg32 & PCI_EXP_LNKCAP_DLLLARC )) {
353
- mlx5_core_warn (dev , "No PCI link reporting capability (0x%08x)\n" , reg32 );
348
+ if (!bridge -> link_active_reporting ) {
349
+ mlx5_core_warn (dev , "No PCI link reporting capability\n" );
354
350
msleep (1000 );
355
351
goto restore ;
356
352
}
You can’t perform that action at this time.
0 commit comments