summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_mue.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Nuke all occurrences of usbd_abort_pipe() if it gets called rightmglocker2020-07-311-4/+1
| | | | | | | | | | before usbd_close_pipe(), since usbd_close_pipe() already takes care about aborting non-empty pipes. As investigated by gerhard@ usbdi.c rev. 1.57 did add usbd_abort_pipe() to usbd_close_pipe(), but the drivers didn't get cleaned up afterwards. ok gerhard@
* Change users of IFQ_SET_MAXLEN() and IFQ_IS_EMPTY() to use the "new" API.patrick2020-07-101-3/+3
| | | | ok dlg@ tobhe@
* Do not call encap routines with the IFQ mutex held, as they mightgerhard2020-06-091-4/+4
| | | | | | sleep in the stop routine in case of errors. Fix proposed by mpi@, ok patrick@
* Eliminate duplicate code in xxx_detach().kevlo2019-07-071-5/+1
| | | | ok mpi@
* Ensure Rx/Tx resources are freed during interface stop.kevlo2019-07-061-1/+58
|
* In mue_iff() move the initialization of the hash table up so that is donemestre2018-09-191-4/+2
| | | | | | | | | | | | unconditionally, like it's done on other devices, so that we don't end up in the situation of the card being put in promiscuous mode or if ac->ac_multirangecnt > 0 and then we would write into the table while being uninitialized a little bit later. Noticed on Coverity ID 1473316. hint from claudio@ and kettenis@ OK kevlo@ claudio@
* Introduce mue_eeprom_present to check if the EEPROM is present.kevlo2018-08-151-9/+49
| | | | | | When the EEPROM is not populated, set the MAC config register MUE_MAC_CR_AUTO_SPEED. While there, encode the MAC address for the onboard USB Ethernet for the Rasperry Pi, like smsc(4) does.
* avoid using a value uninitialisedjsg2018-08-041-1/+2
| | | | ok kevlo@
* - use memset() for for clearing hashtblkevlo2018-08-031-6/+2
| | | | | | | - the switch case for IFM_100_TX was the same code as for IFM_1000_T so it can be rolled into one. From Michael W. Bombardieri
* Add mue(4), a driver for Microchip LAN75xx/LAN78xx 10/100/1000 USB Ethernetkevlo2018-08-031-0/+1354
adapters. "go ahead commit it" deraadt@