net: txgbe: add FW version warning
Since XPCS device identifier is implemented in the firmware version 0x20010 and above, so add a warning to prompt the users to upgrade the firmware to make sure the driver works. Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2a22b7ae2f
commit
ab928c24e6
@ -663,6 +663,9 @@ static int txgbe_probe(struct pci_dev *pdev,
|
||||
"0x%08x", etrack_id);
|
||||
}
|
||||
|
||||
if (etrack_id < 0x20010)
|
||||
dev_warn(&pdev->dev, "Please upgrade the firmware to 0x20010 or above.\n");
|
||||
|
||||
txgbe = devm_kzalloc(&pdev->dev, sizeof(*txgbe), GFP_KERNEL);
|
||||
if (!txgbe) {
|
||||
err = -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user