Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

8139x: reduce message severity on driver overlap

The 8139 drivers are a source of error messages that confuse users.

Since this device can not be disambiguated by normal PCI device
id's two drivers match the same info. But the module utilities
seem to correctly handle this overlap, they try one driver, then
if that doesn't load try the other. Therefore there is no need for
a message to be logged with error level severity, just using info
level instead. Can't be completely silent because user might have
configure one driver and forgot the other one.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

authored by

Stephen Hemminger and committed by
Jeff Garzik
de4549ca 421e02f0

+4 -6
+2 -3
drivers/net/8139cp.c
··· 1836 1836 1837 1837 if (pdev->vendor == PCI_VENDOR_ID_REALTEK && 1838 1838 pdev->device == PCI_DEVICE_ID_REALTEK_8139 && pdev->revision < 0x20) { 1839 - dev_err(&pdev->dev, 1840 - "This (id %04x:%04x rev %02x) is not an 8139C+ compatible chip\n", 1839 + dev_info(&pdev->dev, 1840 + "This (id %04x:%04x rev %02x) is not an 8139C+ compatible chip, use 8139too\n", 1841 1841 pdev->vendor, pdev->device, pdev->revision); 1842 - dev_err(&pdev->dev, "Try the \"8139too\" driver instead.\n"); 1843 1842 return -ENODEV; 1844 1843 } 1845 1844
+2 -3
drivers/net/8139too.c
··· 946 946 if (pdev->vendor == PCI_VENDOR_ID_REALTEK && 947 947 pdev->device == PCI_DEVICE_ID_REALTEK_8139 && pdev->revision >= 0x20) { 948 948 dev_info(&pdev->dev, 949 - "This (id %04x:%04x rev %02x) is an enhanced 8139C+ chip\n", 949 + "This (id %04x:%04x rev %02x) is an enhanced 8139C+ chip, use 8139cp\n", 950 950 pdev->vendor, pdev->device, pdev->revision); 951 - dev_info(&pdev->dev, 952 - "Use the \"8139cp\" driver for improved performance and stability.\n"); 951 + return -ENODEV; 953 952 } 954 953 955 954 if (pdev->vendor == PCI_VENDOR_ID_REALTEK &&