summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
Commit message (Collapse)AuthorAgeFilesLines
* drivers: net: usb: convert drivers to spdxOleksij Rempel2018-12-072-30/+4
| | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usbnet: increase bulk message timeoutNikita Yushchenko2018-05-021-1/+1
| | | | | | | | | | | | Timeout of 1ms is too low for case when device operates in Full Speed mode. This causes most incoming frames to be lost. Since timeout is only used to get out of polling loop in case of no response from hardware, increasing it should be safe for all platforms. Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com> Tested-By: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: usb: use minimum timeout when polling for new packetsSascha Hauer2016-07-141-1/+1
| | | | | | | | | | When no new packets have arrived we want to return to the caller as soon as possible to give other network controllers the chance to receive packets. With the current USB bulk message timeout of one second other network controllers do not work properly whenever the USB network controller is active. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: usb: asix: fix 'no previous prototype' warningAntony Pavlov2015-11-231-1/+1
| | | | | | | | | | | Here is the warning message: drivers/net/usb/asix.c:427:5: warning: no previous prototype for 'asix_rx_fixup_internal' [-Wmissing-prototypes] int asix_rx_fixup_internal(struct usbnet *dev, void *buf, int len, ^ Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: usb: asix: make rx_fixup ax_skb buffer alignedAntony Pavlov2015-11-231-1/+1
| | | | | | | | | | | | | | | | | ax_skb receive buffer unalignment leads to consequent unalignment data access in network stack routines, especially in net_checksum(). By-turn unalignment data accesses lead to performance penalty. Moreover on classic MIPS CPUs without hardware unalignment access support this leads to undesirable exceptions. At the moment barebox on MIPS can't parry these unalignment access exceptions, so the Asix USB Ethernet chips, that need receive fixup workaround, are completely unusable on MIPS without this patch. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: Make set_ethaddr argument constSascha Hauer2015-06-262-2/+2
| | | | | | | The set_ethaddr callback should not modify the MAC address passed to it, so make it const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: usb: asix: Add D-link DUB-E100 H/W Ver C1 supportMayur Nande2015-04-281-0/+4
| | | | | | | | | | | | Hello! This patch adds support for USB ethernet adapter D-Link DUB-E100 H/W Rev C1. I tested this on Beagleboneblack Rev A6A and our custom h/w based on i.mx6 Phytec phycore module. More information about the adapter is here: http://us.dlink.com/products/connect/high-speed-usb-2-0-fast-ethernet-adapter/ Signed-off-by: Mayur Nande <mayur.nande@medel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: asix: handle packets crossing URB boundariesLucas Stach2014-09-221-32/+91
| | | | | | | | | | | | ASIX AX88772B started to pack data even more tightly. Packets and the ASIX packet header may now cross URB boundaries. To handle this we have to introduce some state between individual calls to asix_rx_fixup(). Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: David S. Miller <davem@davemloft.net> [ Rolf: ported from kernel to barebox 2014.09.0 ] Signed-off-by: Rolf Evers-Fischer <embedded24@evers-fischer.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* USB: Use descriptors from ch9.hSascha Hauer2014-07-181-5/+0
| | | | | | | Use the descriptors from ch9.h instead of duplicating them in usb.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* USB: introduce usb_interface/usb_configuration structsSascha Hauer2014-07-181-6/+6
| | | | | | | | | | | Currently we have two conflicting definitions of struct usb_config_descriptor and struct usb_interface_descriptor in the tree. This is because the USB code uses additional fields in the structs for internal housekeeping. Add struct usb_interface and struct struct usb_configuration with the housekeeping data and embed the corresponding hardware structs into them. This frees the way to use the definitions from ch9.h in the next step. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* USB: Kconfig: introduce USB_HOST symbolSascha Hauer2014-07-181-1/+1
| | | | | | | | | This renames USB to USB_HOST since this is what the symbol really means. Introduce a USB symbol which is selected by both USB_GADGET and USB_HOST. This gives us a symbol to let common USB code depend on. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: Pass eth_device to net_receiveSascha Hauer2014-05-153-4/+4
| | | | | | | So that barebox has the information which interface a packet came from. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: usb: asix: fix formatingAntony Pavlov2014-04-231-9/+8
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: usb: asix: properly propagate error codeLucas Stach2014-02-101-2/+2
| | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: usb: smsc95xx: fix wrong phy reset conditionLucas Stach2014-02-101-1/+1
| | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net usb asix: add AX88772B USB IDPhilipp Zabel2014-01-291-0/+14
| | | | | Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net usb asix: read MAC from EEPROM on AX88772BPhilipp Zabel2014-01-291-3/+15
| | | | | Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net usb asix: Use only 11 bits of header for data sizeMarek Vasut2014-01-231-2/+2
| | | | | | | | | | | | | | The AX88772B uses only 11 bits of the header for the actual size. The other bits are used for something else. This causes dmesg full of messages: asix_rx_fixup() Bad Header Length This patch trims the check to only 11 bits. I believe on older chips, the remaining 5 top bits are unused. Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net usb asix: Simplify condition in rx_fixup()Marek Vasut2014-01-231-1/+1
| | | | | | Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net usb asix: Add missing line breaks in dev_* messagesSascha Hauer2012-11-011-28/+28
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/remove-fsf-address'Sascha Hauer2012-10-032-8/+0
|\ | | | | | | | | | | Conflicts: drivers/net/miidev.c include/miidev.h
| * Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-172-8/+0
| | | | | | | | | | | | | | The FSF address has changed in the past. Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net: introduce phylibJean-Christophe PLAGNIOL-VILLARD2012-09-254-48/+37
|/ | | | | | | | | | | | | | | | Adapt phylib from linux switch all the driver to it reimplement mii bus This will allow to have - phy drivers - to only connect the phy at then opening of the device - if the phy is not ready or not up fail on open Same behaviour as in linux and will allow to share code and simplify porting. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* usb net: fix unregistrationSascha Hauer2012-02-141-4/+2
| | | | | | | | First call mii_unregister which is done in the drivers unbind function, then eth_unregister. Also, remove unregister_device which is done in eth_unregister. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb net smsc95xx: add missing mii_unregisterSascha Hauer2012-02-141-0/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb net smsc95xx: remove unused variableSascha Hauer2012-02-141-4/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net mii: add a parent pointer to miidevs and set it to the hardware deviceSascha Hauer2011-08-152-0/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: make the ethernet device a child of the hardware deviceSascha Hauer2011-08-151-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'omap-drivers' into nextSascha Hauer2011-04-064-0/+1199
|\
| * usb net: Add SMSC95xx supportSascha Hauer2011-03-304-0/+1199
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | usbnet: do not initialize ethernet device from usb deviceSascha Hauer2011-04-041-1/+0
|/ | | | | | The network layer will initialize this correctly for us. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: rework the mii supportJean-Christophe PLAGNIOL-VILLARD2010-08-273-19/+15
| | | | | | | this rework is done in order to add a phylib and allow to have phy driver support Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usbnet: remove unused dev member in struct usbnetSascha Hauer2010-06-242-10/+11
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* network drivers: call net_receive directly instead of NetReceiveSascha Hauer2010-06-172-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add a device_d to ethernet devicesSascha Hauer2009-07-212-34/+27
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usbnet: Check return valueSascha Hauer2009-05-251-5/+6
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* select MIIPHY for usbnetSascha Hauer2009-05-191-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* USB supportSascha Hauer2009-04-074-0/+1050
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>