Skip to content

Commit

Permalink
r8169: add info for DASH being enabled
Browse files Browse the repository at this point in the history
In case of problems it facilitates the bug analysis if we know whether
DASH is active. Therefore emit a message in probe if this is the case.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Heiner Kallweit authored and David S. Miller committed Jun 19, 2020
1 parent 1260e77 commit a38b7fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/ethernet/realtek/r8169_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5432,8 +5432,10 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
jumbo_max, tp->mac_version <= RTL_GIGA_MAC_VER_06 ?
"ok" : "ko");

if (r8168_check_dash(tp))
if (r8168_check_dash(tp)) {
netdev_info(dev, "DASH enabled\n");
rtl8168_driver_start(tp);
}

if (pci_dev_run_wake(pdev))
pm_runtime_put_sync(&pdev->dev);
Expand Down

0 comments on commit a38b7fb

Please sign in to comment.