ChangeSet 1.1273, 2003/12/11 11:37:20-08:00, petkan@nucleusys.com [PATCH] USB: pegasus driver update This is a patch for pegasus driver. Nothing exciting, just 2 more devices and a small fix. correct handling of external PHYs; better output to ethtool and suchlike; two new vendors. one of them Microsoft :) drivers/usb/pegasus.c | 5 +++-- drivers/usb/pegasus.h | 8 +++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff -Nru a/drivers/usb/pegasus.c b/drivers/usb/pegasus.c --- a/drivers/usb/pegasus.c Fri Dec 12 15:07:50 2003 +++ b/drivers/usb/pegasus.c Fri Dec 12 15:07:50 2003 @@ -54,7 +54,7 @@ BMSR_100FULL | BMSR_ANEGCAPABLE) static int loopback = 0; -static int mii_mode = 1; +static int mii_mode = 0; static int multicast_filter_limit = 32; static struct usb_eth_dev usb_dev_id[] = { @@ -486,7 +486,7 @@ if (linkpart & (ADVERTISE_100FULL | ADVERTISE_100HALF)) data[1] |= 0x10; /* set 100 Mbps */ if (mii_mode) - data[1] = 0; + data[1] |= 1; data[2] = (loopback & 1) ? 0x09 : 0x01; memcpy(pegasus->eth_regs, data, sizeof(data)); set_registers(pegasus, EthCtrl0, 3, data); @@ -900,6 +900,7 @@ info.cmd = ETHTOOL_GDRVINFO; strncpy(info.driver, driver_name, sizeof (info.driver) - 1); + strncpy(info.driver, DRIVER_DESC, ETHTOOL_BUSINFO_LEN); strncpy(info.version, DRIVER_VERSION, sizeof (info.version) - 1); usb_make_path(pegasus->usb, info.bus_info, diff -Nru a/drivers/usb/pegasus.h b/drivers/usb/pegasus.h --- a/drivers/usb/pegasus.h Fri Dec 12 15:07:50 2003 +++ b/drivers/usb/pegasus.h Fri Dec 12 15:07:50 2003 @@ -133,8 +133,10 @@ #define VENDOR_LANEED 0x056e #define VENDOR_LINKSYS 0x066b #define VENDOR_MELCO 0x0411 +#define VENDOR_MICROSOFT 0x045e #define VENDOR_MOBILITY 0x1342 #define VENDOR_NETGEAR 0x0846 +#define VENDOR_OCT 0x0b39 #define VENDOR_SMARTBRIDGES 0x08d1 #define VENDOR_SMC 0x0707 #define VENDOR_SOHOWARE 0x15e8 @@ -170,7 +172,7 @@ DEFAULT_GPIO_RESET | PEGASUS_II ) PEGASUS_DEV( "ADMtek ADM8511 \"Pegasus II\" USB Ethernet", VENDOR_ADMTEK, 0x8511, - DEFAULT_GPIO_RESET | PEGASUS_II ) + DEFAULT_GPIO_RESET | PEGASUS_II | HAS_HOME_PNA ) PEGASUS_DEV( "ADMtek ADM8513 \"Pegasus II\" USB Ethernet", VENDOR_ADMTEK, 0x8513, DEFAULT_GPIO_RESET | PEGASUS_II ) @@ -255,7 +257,11 @@ DEFAULT_GPIO_RESET ) PEGASUS_DEV( "MELCO/BUFFALO LUA2-TX", VENDOR_MELCO, 0x0009, DEFAULT_GPIO_RESET | PEGASUS_II ) +PEGASUS_DEV( "Microsoft MN-110", VENDOR_MICROSOFT, 0x007a, + DEFAULT_GPIO_RESET | PEGASUS_II ) PEGASUS_DEV( "NETGEAR FA101", VENDOR_NETGEAR, 0x1020, + DEFAULT_GPIO_RESET | PEGASUS_II ) +PEGASUS_DEV( "OCT Inc.", VENDOR_OCT, 0x0109, DEFAULT_GPIO_RESET | PEGASUS_II ) PEGASUS_DEV( "smartNIC 2 PnP Adapter", VENDOR_SMARTBRIDGES, 0x0003, DEFAULT_GPIO_RESET | PEGASUS_II )