summaryrefslogtreecommitdiff
path: root/sys/dev/usb
AgeCommit message (Collapse)Author
2018-10-02Make some USB ioctls return ENXIO, instead of EIO, if usbd_is_dying().Stefan Sperling
Brings us one step closer towards making this condition's error code consistent across all USB drivers. Patch by Moritz Buhl ok mpi@ bluhm@
2018-10-01The sequence number field in the 802.11 frame header includes the sequenceJonathan Matthew
number and the fragment number, so shift it to get just the sequence number for the tx descriptor. While here, add a #define for the flag in the same field that enables hardware sequence numbering, and use existing constants for some R92C_RSV_CTRL writes. prompted by feedback from kevlo@ on another diff, tested on 8188CE, EE, EU ok stsp@ kevlo@
2018-09-19In mue_iff() move the initialization of the hash table up so that is doneRicardo Mestre
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@
2018-09-10Prevent a panic in umb(4) when roaming is diabled.Gerhard Roth
Found by beck@, tested and ok by bluhm@
2018-09-07clarify that goto error in alloc_all_endpoints_fixed_ep() always returnsmiko
USBD_INVAL. ok mpi@
2018-09-07move initial jack count to alloc_all_endpoints(), and reset count to zeromiko
in free_all_jacks(). ok stsp@ ratchov@
2018-09-06If we cannot stop the endpoint when aborting a transfer assume thatMartin Pieuchot
the device is gone and give back the descriptor to the stack. Without this usbd_abort_pipe() could end up in an infinite loop. Issue reported by Tom Murphy.
2018-09-06fix whitespaceJonathan Gray
2018-09-06execute the same code for failure of assign_all_jacks_automatically()miko
and attach_all_mididevs(). this ensures unbind_all_jacks() and usbd_deactivate() happen for both cases. ok ratchov@
2018-09-05Serialize synchronous commands with a rwlock.Martin Pieuchot
Prevent triggering an assert if two drivers try to submit a command at the same time. Issue reported by Tom Murphy.
2018-08-31remove shadow variables for 'error' in usbioctl(); ok mpi@ ratchov@miko
2018-08-31ich variable is only used in DPRINTF() and uaudio_get_cluster_nchan()miko
has no side effect, so setting value for ich can be moved under UAUDIO_DEBUG. ok ratchov
2018-08-29Remove unused struct member.Mark Kettenis
ok deraadt@, mlarkin@
2018-08-25Add umt(4) for USB Windows Precision Touchpad devicesJoshua Stein
Based on imt(4) Rename HIDMT_INPUT_MODE_MT to HIDMT_INPUT_MODE_MT_TOUCHPAD ok deraadt
2018-08-25Move HID->bus constant conversion for HID report types out of ihidevJoshua Stein
into hidmt. The HID code uses hid_feature, hid_input, and hid_output constants to refer to report types internally that then need to be converted to their bus-level counterparts before actually getting sent out (so hid_feature becomes UHID_FEATURE_REPORT for USB, I2C_HID_REPORT_TYPE_FEATURE for i2c). This conversion was hard-coded in ihidev but ihidev_[gs]et_report should assume the type passed is already an i2c-level define, not a hid one. This is how uhidev does it. Add a conversion routine callback that any hidmt callers need to set so that hidmt can convert hid constants to the bus-level versions. Also add a similar conversion function to uhidev. ok deraadt
2018-08-25fix misplaced parenthesis inside an if-clause. already fixed in FreeBSD in revRicardo Mestre
295608. OK jca@
2018-08-25fix misplaced parenthesis inside an if-clause. already fixed in NetBSD in revRicardo Mestre
1.13. OK stsp@ jca@ claudio@
2018-08-22Work well with the Dynastream ANTUSB-m, from Jan Klemkow.Martin Pieuchot
2018-08-22regenMartin Pieuchot
2018-08-22Dynastream ANTUSB-m, from Jan Klemkow.Martin Pieuchot
2018-08-15Partially revert previous, EM7455 is already handled by umb(4).Martin Pieuchot
Reported by Bryan Vyhmeister.
2018-08-15Introduce mue_eeprom_present to check if the EEPROM is present.Kevin Lo
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.
2018-08-13Attach to Sierra Wireless MC7304/MC7354 & EM7455, from Denis Lapshin.Martin Pieuchot
2018-08-13regenMartin Pieuchot
2018-08-13Sierra Wireless MC7304/MC7354, from Denis Lapshin.Martin Pieuchot
2018-08-08Fix possible division by zero caused by bogus usb descriptors. FromAlexandre Ratchov
Michael W. Bombardieri. Thanks.
2018-08-04avoid using a value uninitialisedJonathan Gray
ok kevlo@
2018-08-03- use memset() for for clearing hashtblKevin Lo
- 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
2018-08-03Add mue(4), a driver for Microchip LAN75xx/LAN78xx 10/100/1000 USB EthernetKevin Lo
adapters. "go ahead commit it" deraadt@
2018-07-30define WSMOUSE_TYPE_TOUCHPAD so non-elantech drivers can stopJoshua Stein
claiming to be elantech devices
2018-07-30Inline trivial uaudio_id_name(). From Michael Bombardieri, thanks.Alexandre Ratchov
"looks good" kn@
2018-07-27No need to test if pointer is NULL to call free(9). FromAlexandre Ratchov
Michael W. Bombardieri. Thanks!
2018-07-19attach RTL8188EU under AboCom's vendor id. From FreeBSD via Mikhail <mp39590 ↵Stuart Henderson
at gmail>
2018-07-19syncStuart Henderson
2018-07-19Add RTL8188EU under AboCom's vendor id. From FreeBSD via Mikhail <mp39590 at ↵Stuart Henderson
gmail>
2018-07-19Reuse implicit padding to export the port number of a USB device inMartin Pieuchot
USB_DEVICEINFO. devel/libusb1 requires this piece of information. ok jcs@, mikeb@, jasper@, sthen@
2018-07-17TX packets, which can be either Ethernet or control packets, must bePatrick Wildt
sent in order. Otherwise it is possible that the key is set before we send out the EAPOL packet, or that packets are sent out before the key is set. Thus modify the SDIO backend to put both types into the same internal TX queue, which will be sent asynchronously. Discussed with bluhm@
2018-07-16typos, from Michael W. Bombardieri.Martin Pieuchot
2018-07-10s/ITUNER/MICROCHIP/ following usbdevs -r1.689Jasper Lievisse Adriaanse
2018-07-10regenJasper Lievisse Adriaanse
2018-07-10replace the Ituner vendor with Microchip to match Linux at leastJasper Lievisse Adriaanse
ok mpi@
2018-07-10Change USB_DEVICEINFO to report USB port status/changes as currentlyMartin Pieuchot
seen by the stack. This will allows us to debug port status changes without relying on external tools, like lsusb(1), that generate I/O. While here correct USB3 LS port defines.
2018-07-09sprinkle comments and rename iface to match its use to ctl_iface_idxJasper Lievisse Adriaanse
ok abieber@
2018-07-09use UE_GET_XFERTYPE(); no binary changeJasper Lievisse Adriaanse
2018-07-07Fix uaudio(4) detection on Logitech Webcam C200/C210/C250/C270/C310/C500.Landry Breuil
Those devices have a broken AudioControl descriptor which advertises a bad value for bLength for the FEATURE_UNIT sub-descriptor, so add a quirk 'fixing' this bLength so that uaudio(4) attaches properly instead of bailing out with 'audio descriptors make no sense, error=4'. My C310 now properly attaches but doesnt seem to work right now, this is a different issue that will be worked on. Thanks to tb@, remi@, weerd@, Raf Czlonka, Base Pr1me, Jordan Geoghegan, Peter J. Philipp, Alfredo Vogel, James Hastings, Bruno Flueckiger, Remco & Alex Tsang for providing lsusb -v output for a large variety of Logitech Webcams. ok mpi@ ratchov@
2018-07-07regenLandry Breuil
2018-07-07Add ids for Logitech Webcam C250, also affected by the 'bogusLandry Breuil
FEATURE_UNIT bLength' issue. ok mpi@
2018-07-03Use LIST_FOREACH construct instead of homebrew loop.Kevin Lo
ok bluhm@, mpi@
2018-07-03regenLandry Breuil
2018-07-03Add usb ids for the Logitech Webcams C210 and C270.Landry Breuil
Their audio isn't properly detected yet, but a new quirk will fix that. ok mpi@