summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Use non-blocking allocation in dwc2_allocx() to makevisa2019-03-141-2/+6
| | | | | | | | | the routine safe to use in soft interrupt context. This fixes an assertwaitok() panic reported by Abel Abraham Camarillo Ojeda. OK mpi@
* Fix typo in debug print: wih -> withpatrick2019-03-121-3/+3
| | | | ok mpi@
* Remove unused uaudioreg.h file.ratchov2019-03-121-386/+0
| | | | ok mpi
* Add a new driver for USB Audio Class v2.0 devices. It replaces theratchov2019-03-121-2917/+3798
| | | | | | | | | | current one for UAC v1.0 devices. The main difference with the old driver is that now we map audio blocks to USB transfers, which allows precise synchronization and reliability, including during low-latency operation. with help from many, ok mpi
* uhci: Fix delayed completions for isochronous transfers.ratchov2019-03-121-2/+2
| | | | | | | When an isochronous transfer of n frames is scheduled, the last frame i.e. frame number (n - 1) must be set to generate an interrupt. ok mpi
* Add missing bus powered bit, from aalm@mpi2019-03-115-10/+10
|
* - in rtwn_r88e_fw_reset function, use the correct bit R88E_RSV_CTRL_MCU_RSTkevlo2019-03-111-1/+70
| | | | | | | to reset/enable MCU - there's no need to enable 1.2V power for rtl8192eu ok jmatthew@
* Since ring->index points to the next free slot, once we reach index zeropatrick2019-03-011-14/+17
| | | | | | | | | we know that the last non-link TRB has been written and we can look at the flags to set the chain bit in the link TRB. Since we will now toggle the cycle bit on the first TRB of a ring, set it on the ring reset. Tested by jcs@, jsg@ and visa@ "commit it" jcs@
* 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@