Skip to content

Commit

Permalink
e1000: warn if this driver is used for e1000e devices
Browse files Browse the repository at this point in the history
We're already starting to see reports from users still
using e1000 where they should be using e1000e now that this is
actually possible. Just to prevent some of this thrash, add
a big warning on load on these devices that people should
switch to e1000e.

Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Acked-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Auke Kok authored and Jeff Garzik committed Feb 11, 2008
1 parent 030ed68 commit 14782ca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,14 @@ e1000_probe(struct pci_dev *pdev,

printk("%s\n", print_mac(mac, netdev->dev_addr));

if (adapter->hw.bus_type == e1000_bus_type_pci_express) {
DPRINTK(PROBE, WARNING, "This device (id %04x:%04x) will no "
"longer be supported by this driver in the future.\n",
pdev->vendor, pdev->device);
DPRINTK(PROBE, WARNING, "please use the \"e1000e\" "
"driver instead.\n");
}

/* reset the hardware with the new settings */
e1000_reset(adapter);

Expand Down

0 comments on commit 14782ca

Please sign in to comment.