]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
amd-xgbe: Add additional dynamic debug messages
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Fri, 18 Aug 2017 14:03:08 +0000 (09:03 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Aug 2017 23:30:16 +0000 (16:30 -0700)
Add some additional dynamic debug message to the driver. The new messages
will provide additional information about the PCS window calculation.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-pci.c

index 1e56ad7bd9a5fcac9f677e70b9d6e4ef77d0ea2c..3e5833cf1fabaa35f1fde959bcd4b7ed988ca44c 100644 (file)
@@ -292,6 +292,10 @@ static int xgbe_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
        pdata->xpcs_window_size = 1 << (pdata->xpcs_window_size + 7);
        pdata->xpcs_window_mask = pdata->xpcs_window_size - 1;
        if (netif_msg_probe(pdata)) {
+               dev_dbg(dev, "xpcs window def  = %#010x\n",
+                       pdata->xpcs_window_def_reg);
+               dev_dbg(dev, "xpcs window sel  = %#010x\n",
+                       pdata->xpcs_window_sel_reg);
                dev_dbg(dev, "xpcs window      = %#010x\n",
                        pdata->xpcs_window);
                dev_dbg(dev, "xpcs window size = %#010x\n",