summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Make xhci_ring_produce() check the previous TRB to find out if itpatrick2019-02-271-72/+78
| | | | | | | | | | | | | needs the Chain Bit set or not instead of using the last parameter, which is used to mark the last TRB in a USB transfer, not in a TD. To make that work we need to setup the recently acquired TRB before calling xhci_xfer_get_trb() the next time. Thus setting up the initial TRB has to happen right away. To kick the transfer off we simply flip the toggle bit on the first TRB right at the end. Fixes regression for jcs@, dhill@ and stsp@ Initially discussed with mpi@ ok stsp@
* Dynastream ANTUSB-2 works well on uscom(4), from Jan Klemkow.patrick2019-02-241-1/+2
|
* regenpatrick2019-02-242-2/+7
|
* Dynastream ANTUSB-2, from Jan Klemkow.patrick2019-02-241-1/+2
|
* Transfers that span multiple TRBs which wrap around the ring andpatrick2019-02-211-5/+9
| | | | | | | | | | | | thus have the Link TRB inbetween must have the Chain Bit set in the Link TRB. Otherwise xHCI controllers might think that the transfer ends at that point. Fixes an issue that was most prominently seen as Invalid CSW error when using umass0 on octeon and i.MX8M. Tested by visa@ ok mpi@
* Publish new attached device once it is fully initialized.mpi2019-02-171-2/+3
| | | | | | | | Should prevent a race seen by florian@ where userland emits an USB_DEVICEINFO ioctl(2) for a device whose product/vendor names haven't yet been filled. ok florian@
* HCCPARAMS1 register CFC and SEC values are 1 bit.mglocker2019-02-141-3/+3
| | | | ok mpi@
* Print xhci version in hex, from sc.dying at gmail.mpi2019-02-011-2/+2
|
* Fix compilation of amd64 kernel when optimization is disabled.millert2019-01-311-3/+3
| | | | | C99 inline semantics resulted in undefined symbols. OK deraadt@ mpi@ dlg@
* Remove uneeded header.mpi2019-01-231-2/+1
|
* Do not leak received mbufs if the NDIS appended a zero-byte padding.mpi2019-01-221-8/+10
| | | | from aalm@
* Remove unused variable.mpi2019-01-221-3/+2
|
* Change transfer schedule of split interrupt transfer,uaa2019-01-191-3/+18
| | | | | | to avoid confilicting with split isochronous transfer which use same TT. ok mpi@
* Make otus(4) modify its DMA_TRIGGER register with readable macrosstsp2019-01-152-4/+13
| | | | | instead of magic numbers. No functional change. ok kettenis@
* Fix typosfeinerer2019-01-141-8/+8
| | | | ok sthen@
* match on TP-Link WN821N v5 (RTL8192EU), tested by Jesper Wallinjmatthew2019-01-141-2/+3
|
* regenjmatthew2019-01-142-4/+9
|
* add TP-Link WN821N v5 (RTL8192EU), from Jesper Wallinjmatthew2019-01-141-1/+2
|
* Validate the number of expected interfaces in *match() and claim themmpi2019-01-131-20/+17
| | | | | | | | | during *attach(). This allows us to get rid of two calls to usbd_device2interface_handle() that could fail later. ok ratchov@, jcs@
* Validate that the interface passed to *match() is the expected onempi2019-01-132-14/+5
| | | | | | instead of calling usbd_device2interface_handle() during *attach(). ok stsp@
* Fix potential use-after-free if xfer allocation fails when otus(4) attaches.stsp2019-01-121-1/+2
| | | | ok mpi@ ian@
* Make the scan loop in otus(4) terminate properly when the interfacestsp2019-01-121-2/+5
| | | | | is going down. Problem reported by ian@. ok mpi@ ian@
* No need to call usbd_fill_deviceinfo() from a task, it doesn't generate I/O.mpi2019-01-091-38/+2
| | | | ok visa@
* RL (NAK count reload) field in QH should be zero when using periodicuaa2019-01-081-2/+7
| | | | | | | | | (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@
* Use the `iface' argument from the *attach() function instead of callingmpi2019-01-071-7/+2
| | | | | | usbd_device2interface_handle(). ok visa@
* tweak ohci_checkrev so it doesnt print a leading comma and space.dlg2019-01-071-3/+2
| | | | | | | | | 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@
* Handle 2 Tx chains in the computation of transmit power for the RTL8192EU.kevlo2018-12-071-3/+3
| | | | | | | | While here sort vendors. Tested by jmatthew@ ok stsp@, jmatthew@
* Avoid unnecessary dynamic memory allocation in athn_usb_newauth().stsp2018-12-061-10/+5
| | | | | Patch by Benjamin Baier ok ratchov@ mpi@
* usb_block_allocmem() won't sleep.gerhard2018-12-051-4/+1
| | | | ok mpi@
* Do not call usbd_delay_ms() from interrupt context.mpi2018-12-051-2/+1
| | | | From Nils Frohberg.
* Add support for RTL8192EU adapters, partly taken from netbsd.jmatthew2018-12-041-61/+336
| | | | | | | | 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@
* Free sizes for the subdevs array.mpi2018-11-272-5/+9
| | | | ok anton@, visa@
* Attach the driver only if the stack managed to set the configuration.mpi2018-11-271-2/+3
| | | | Tested by stsp@
* Revert free sizes for `subdevs' array, it is incorrect.mpi2018-11-202-9/+5
| | | | Reported by anton@ and Natasha Kerensikova
* regenkevlo2018-11-192-4/+21
|
* Add ids for D-Link DWA-171 rev C1 and Xiaomi mini USB WiFi.kevlo2018-11-191-2/+7
|
* More uses of __func__ in debug printfs.mpi2018-11-181-27/+24
|
* Use "%s", __func__ in DPRINTF() to reduce grep noise.mpi2018-11-185-48/+48
|
* Remove old USB_DEBUG chunk.mpi2018-11-181-4/+1
|
* USB_DEBUG -> UPLCOM_DEBUG.mpi2018-11-181-2/+2
|
* free(9) size for USB subdevs array.mpi2018-11-172-5/+9
| | | | ok ratchov@, visa@
* free(9) sizes for interrupt & isochronous arrays.mpi2018-11-161-10/+10
| | | | ok visa@
* free(9) sizes for array of interfaces.mpi2018-11-161-5/+5
| | | | ok visa@
* free(9) sizes for array of endpoints.mpi2018-11-161-6/+9
| | | | ok ratchov@
* free(9) sizes for configuration descriptors, missed in previous.mpi2018-11-141-3/+3
|
* free(9) sizes for configuration descriptors.mpi2018-11-142-14/+13
| | | | ok tedu@, visa@
* free(9) sizes for endpoints array.mpi2018-11-103-9/+13
| | | | ok okan@, tedu@, visa@
* Pass free(9) sizes for port arrays.mpi2018-11-101-14/+10
| | | | ok tedu@, visa@
* Pass free(9) sizes for the tx descriptors.mpi2018-11-101-4/+7
| | | | ok tedu@, visa@, stsp@
* Revert previous, it broke my Anker USB devicejcs2018-11-022-21/+3
| | | | ok patrick