aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/usb/usbnet.c
AgeCommit message (Collapse)AuthorFilesLines
2009-06-30usbnet: Use netdev stats structureHerbert Xu1-15/+15
Now that netdev has its own stats structure we should use that instead. Signed-off-by: Herbert Xu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2009-06-15Merge branch 'master' of ↵David S. Miller1-1/+1
master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6 Conflicts: Documentation/feature-removal-schedule.txt drivers/scsi/fcoe/fcoe.c net/core/drop_monitor.c net/core/net-traces.c
2009-06-12trivial: fix ETIMEOUT -> ETIMEDOUT typosJean Delvare1-1/+1
fix ETIMEOUT -> ETIMEDOUT typos Signed-off-by: Jean Delvare <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
2009-04-21export usbnet_get_ethernet_addr from usbnet and fixed cdc_ether.cPeter Holik1-0/+31
because of using the same function get_ethernet_addr as cdc_ether.c i export usbnet_get_ethernet_addr from usbnet and fixed cdc_ether (suggested by Oliver Neukum). Signed-off-by: Peter Holik <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2009-04-16usbnet: remove old compat_net_dev_ops codeAlexander Beregalov1-6/+0
Since all usb network drivers are already converted to net_device_ops this code is useless. Signed-off-by: Alexander Beregalov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2009-04-07dma-mapping: replace all DMA_64BIT_MASK macro with DMA_BIT_MASK(64)Yang Hongyang1-1/+1
Replace all DMA_64BIT_MASK macro with DMA_BIT_MASK(64) Signed-off-by: Yang Hongyang<[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2009-03-21usbnet: support net_device_opsStephen Hemminger1-8/+23
Use net_device_ops for usbnet device, and export for use by other derived drivers. Signed-off-by: Stephen Hemminger <[email protected]> Acked-by: David Brownell <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2009-03-21usbnet: convert to internal net_device_statsStephen Hemminger1-9/+0
Default handler for net_device_stats already does same thing. Signed-off-by: Stephen Hemminger <[email protected]> Acked-by: David Brownell <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2009-03-01usbnet: make usbnet_get_link() fall back to ethtool_op_get_link()Bjørn Mork1-2/+2
Make usbnet_get_link() fall back to ethtool_op_get_link() instead of defaulting to 1. This makes usbnet_get_link return valid results without the need for a driver specific check_connect or mii ops as long as the driver calls netif_carrier_{on,off}() as appropriate. cdc_ether is an example of such a driver. Signed-off-by: Bjørn Mork <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2008-10-27net: convert print_mac to %pMJohannes Berg1-3/+2
This converts pretty much everything to print_mac. There were a few things that had conflicts which I have just dropped for now, no harm done. I've built an allyesconfig with this and looked at the files that weren't built very carefully, but it's a huge patch. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2008-09-22usbnet: Use skb_queue_walk_safe() instead of by-hand implementation.David S. Miller1-2/+1
Signed-off-by: David S. Miller <[email protected]>
2008-01-31Move usbnet.h and rndis_host.h to include/linux/usbJussi Kivilinna1-2/+1
Move headers usbnet.h and rndis_host.h to include/linux/usb and fix includes for drivers/net/usb modules. Headers are moved because rndis_wlan will be outside drivers/net/usb in drivers/net/wireless and yet need these headers. Signed-off-by: Jussi Kivilinna <[email protected]> Acked-by: David Brownell <[email protected]> Signed-off-by: John W. Linville <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2008-01-31usbnet: Use wlan device name for RNDIS wireless devicesJussi Kivilinna1-0/+3
Use wlan device name for RNDIS wireless devices. Signed-off-by: Jussi Kivilinna <[email protected]> Signed-off-by: Bjorge Dijkstra <[email protected]> Acked-by: David Brownell <[email protected]> Signed-off-by: John W. Linville <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2007-11-07[NET]: Let USB_USBNET always select MII.Adrian Bunk1-7/+0
All this USB_USBNET_MII trickery is simply not worth it considering how few code it saves. As a side effect, this also fixes the following compile error reported by Toralf F�rster: <-- snip --> ... LD .tmp_vmlinux1 drivers/built-in.o: In function `usbnet_set_settings': (.text+0xf1876): undefined reference to `mii_ethtool_sset' drivers/built-in.o: In function `usbnet_get_settings': (.text+0xf1836): undefined reference to `mii_ethtool_gset' drivers/built-in.o: In function `usbnet_get_link': (.text+0xf18d6): undefined reference to `mii_link_ok' drivers/built-in.o: In function `usbnet_nway_reset': (.text+0xf18f6): undefined reference to `mii_nway_restart' make: *** [.tmp_vmlinux1] Error 1 <-- snip --> Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2007-10-10[NET]: Introduce and use print_mac() and DECLARE_MAC_BUF()Joe Perches1-5/+3
This is nicer than the MAC_FMT stuff. Signed-off-by: Joe Perches <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2007-10-10[NET]: Nuke SET_MODULE_OWNER macro.Ralf Baechle1-1/+0
It's been a useless no-op for long enough in 2.6 so I figured it's time to remove it. The number of people that could object because they're maintaining unified 2.4 and 2.6 drivers is probably rather small. [ Handled drivers added by netdev tree and some missed IRDA cases... -DaveM ] Signed-off-by: Ralf Baechle <[email protected]> Signed-off-by: Jeff Garzik <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2007-10-10support for USB autosuspend in the asix driverOliver Neukum1-5/+25
this implements support for USB autosuspend in the asix USB ethernet driver. Signed-off-by: Oliver Neukum <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2007-07-10Cleanup usbnet_probe() return value handlingPeter Korsgaard1-1/+1
usbnet_probe() handles a positive return value from the driver bind() function as success, but will later only setup the status handler if the return value was zero, leading to confusion. Patch adjusts this to accept positive values as success in both checks. Signed-off-by: Peter Korsgaard <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2007-07-08usbnet whitespace fixesDavid Brownell1-37/+39
Whitespace updates for usbnet core, mostly switching to tab-only indents. Signed-off-by: David Brownell <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2007-07-02usbnet: Zero padding byte if there is tail room in skbPeter Korsgaard1-3/+6
Usbnet adds a padding byte if a 0 byte USB packet would be sent. Zero padding byte if there is tail room in skb. Signed-of-by: Peter Korsgaard <[email protected]> Acked-by: David Brownell <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2007-05-22USB: address FIXME in usbnet w.r.t drivers claiming multiple interfacesOliver Neukum1-10/+15
This fixes the issue of drivers claiming multiple interfaces. Operations are stopped as soon as an interface is suspend and resumed only as all interfaces have been resumed. Signed-off-by: Oliver Neukum <[email protected]> Signed-off-by: David Brownell <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-05-09Move USB network drivers to drivers/net/usb.Jeff Garzik1-0/+1304
It is preferable to group drivers by usage (net, scsi, ATA, ...) than by bus. When reviewing drivers, the [PCI|USB|PCMCIA|...] maintainer is probably less qualified on networking issues than a networking maintainer. Also, from a practical standpoint, chips often appear on multiple buses, which is why we do not put drivers into drivers/pci/net. Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>