summaryrefslogtreecommitdiff
path: root/sys/dev/usb
AgeCommit message (Collapse)Author
2019-01-09No need to call usbd_fill_deviceinfo() from a task, it doesn't generate I/O.Martin Pieuchot
ok visa@
2019-01-08RL (NAK count reload) field in QH should be zero when using periodicSASANO Takayoshi
(interrupt) transfer. When RL is not zero, interrupt transfer cannot work correctly. It causes USB2.0 hub cannot detect device attach/detach. ok by mpi@
2019-01-07Use the `iface' argument from the *attach() function instead of callingMartin Pieuchot
usbd_device2interface_handle(). ok visa@
2019-01-07tweak ohci_checkrev so it doesnt print a leading comma and space.David Gwynne
it assumes that it always followed an interrupt string, but we don't print that on fdt. having the bus responsible for the whitespace means the fdt glue can print a colon to separate the bus info from checkrev output, while every other glue keeps the comma. ok deraadt@
2018-12-07Handle 2 Tx chains in the computation of transmit power for the RTL8192EU.Kevin Lo
While here sort vendors. Tested by jmatthew@ ok stsp@, jmatthew@
2018-12-06Avoid unnecessary dynamic memory allocation in athn_usb_newauth().Stefan Sperling
Patch by Benjamin Baier ok ratchov@ mpi@
2018-12-05usb_block_allocmem() won't sleep.Gerhard Roth
ok mpi@
2018-12-05Do not call usbd_delay_ms() from interrupt context.Martin Pieuchot
From Nils Frohberg.
2018-12-04Add support for RTL8192EU adapters, partly taken from netbsd.Jonathan Matthew
These show up with a variety of vendor/product ids, but the driver will only match those we've tested so far. help and testing from kevlo@ ok stsp@ kevlo@
2018-11-27Free sizes for the subdevs array.Martin Pieuchot
ok anton@, visa@
2018-11-27Attach the driver only if the stack managed to set the configuration.Martin Pieuchot
Tested by stsp@
2018-11-20Revert free sizes for `subdevs' array, it is incorrect.Martin Pieuchot
Reported by anton@ and Natasha Kerensikova
2018-11-19regenKevin Lo
2018-11-19Add ids for D-Link DWA-171 rev C1 and Xiaomi mini USB WiFi.Kevin Lo
2018-11-18More uses of __func__ in debug printfs.Martin Pieuchot
2018-11-18Use "%s", __func__ in DPRINTF() to reduce grep noise.Martin Pieuchot
2018-11-18Remove old USB_DEBUG chunk.Martin Pieuchot
2018-11-18USB_DEBUG -> UPLCOM_DEBUG.Martin Pieuchot
2018-11-17free(9) size for USB subdevs array.Martin Pieuchot
ok ratchov@, visa@
2018-11-16free(9) sizes for interrupt & isochronous arrays.Martin Pieuchot
ok visa@
2018-11-16free(9) sizes for array of interfaces.Martin Pieuchot
ok visa@
2018-11-16free(9) sizes for array of endpoints.Martin Pieuchot
ok ratchov@
2018-11-14free(9) sizes for configuration descriptors, missed in previous.Martin Pieuchot
2018-11-14free(9) sizes for configuration descriptors.Martin Pieuchot
ok tedu@, visa@
2018-11-10free(9) sizes for endpoints array.Martin Pieuchot
ok okan@, tedu@, visa@
2018-11-10Pass free(9) sizes for port arrays.Martin Pieuchot
ok tedu@, visa@
2018-11-10Pass free(9) sizes for the tx descriptors.Martin Pieuchot
ok tedu@, visa@, stsp@
2018-11-02Revert previous, it broke my Anker USB deviceJoshua Stein
ok patrick
2018-10-31Increase max frame size and hard MTU so that we can use VLANs andPatrick Wildt
Jumbo frames on ure(4). ok kevlo@
2018-10-31zap return keyword to clarify umidi_flush() returns no value; ok ratchov@miko
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