summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* replace the Ituner vendor with Microchip to match Linux at leastjasper2018-07-101-5/+5
| | | | ok mpi@
* Change USB_DEVICEINFO to report USB port status/changes as currentlympi2018-07-102-34/+19
| | | | | | | | | 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.
* sprinkle comments and rename iface to match its use to ctl_iface_idxjasper2018-07-091-5/+8
| | | | ok abieber@
* use UE_GET_XFERTYPE(); no binary changejasper2018-07-091-3/+3
|
* Fix uaudio(4) detection on Logitech Webcam C200/C210/C250/C270/C310/C500.landry2018-07-071-1/+18
| | | | | | | | | | | | | | | | | 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@
* regenlandry2018-07-072-4/+9
|
* Add ids for Logitech Webcam C250, also affected by the 'boguslandry2018-07-071-1/+2
| | | | | | FEATURE_UNIT bLength' issue. ok mpi@
* Use LIST_FOREACH construct instead of homebrew loop.kevlo2018-07-033-10/+7
| | | | ok bluhm@, mpi@
* regenlandry2018-07-032-2/+12
|
* Add usb ids for the Logitech Webcams C210 and C270.landry2018-07-031-1/+3
| | | | | Their audio isn't properly detected yet, but a new quirk will fix that. ok mpi@
* Fix typo.kevlo2018-07-031-2/+2
| | | | ok claudio@, deraadt@, mpi@, rob@
* Nuke unused variable.kevlo2018-07-031-4/+1
| | | | ok deraadt@, mpi@, rob@
* regenkevlo2018-06-282-4/+29
|
* Add Microchip Ethernet device IDs.kevlo2018-06-281-1/+6
| | | | ok deraadt@
* Add an HP LD220 pole displaymikeb2018-06-181-1/+2
| | | | Diff from Paul de Weerd (weerd@), tested by Jan-Piet Mens, thanks!
* regenmikeb2018-06-182-2/+7
|
* Add an HP LD220 pole displaymikeb2018-06-181-1/+2
| | | | Diff from Paul de Weerd (weerd@), tested by Jan-Piet Mens, thanks!
* axen(4): Identify the owner of some chatty printfsmlarkin2018-06-121-6/+11
| | | | ok stsp
* Don't leak the RX pipe in case we have issues opening the TX pipe.patrick2018-05-231-2/+2
|
* Implement a separate initialization stage so that we can still usepatrick2018-05-231-15/+37
| | | | | | | and initialize bwfm(4) later in the case that the firmware was not available on bootup and was only later installed. ok stsp@
* Correct order of free(9) in an error case.patrick2018-05-161-2/+2
|
* Implement a BCDC control packet mechanism based on the command requestpatrick2018-05-161-47/+65
| | | | | | | | | ids. So far we were only able to have one command in flight at a time and race conditions could easily lead to unexpected behaviour, especia- lly combined with a slow bus and timeouts. With this rework we send or enqueue a control packet command and wait for replies to happen. Thus we can have multiple control packets in flight and a reply with the correct id will wake us up.
* Add bus DMA barriers to ensure the hardware does not see a TRB cycle bitvisa2018-05-131-5/+19
| | | | | | flip before the rest of the TRB is updated. OK dlg@, pirofti@, mpi@
* Print xHCI revision in dmesg.mpi2018-05-082-8/+6
| | | | ok patrick@, kettenis@
* Simplify/refactor the way vendor/product/serial informations arelandry2018-05-019-88/+78
| | | | | | | | | | | | | | | | | | gathered from usb devices. Cache them early in usbd_new_device() instead of querying the device several times (the content wont change anyway) and uselessly generating usb traffic (which could conflict with other access..) The heuristic stays the same, first look in the device descriptor, then try to match against usb_known_vendors/usb_known_products, then fallback to use the idVendor/idProduct codes. Remove the now useless 'usedev' parameter from usbd_fill_deviceinfo(). Tested from bsd & bsd.rd. suggested by and ok mpi@
* Reduce the scope of the NET_LOCK() in in_control(). Two functions weretb2018-04-301-5/+1
| | | | | | | | | | protected: mrt_ioctl() and in_ioctl(). The former has no other callers and only needs a read lock. The latter will need refactoring to reduce the lock's scope further. In a first step, establish a single exit point and protect most of the function body with the NET_LOCK() while removing the NET_LOCK() from a handful of callers. suggested by & ok mpi, ok visa
* Unsigned values are always >= 0, fix Coverity 1468443.mpi2018-04-291-2/+2
|
* Fail early when transfers aren't completed in order.mpi2018-04-291-5/+3
| | | | ok pirofti@, visa@
* Some drivers handle settting a new wifi link state manually, so make surephessler2018-04-281-1/+2
| | | | | | | they flush old nodes and set the interface link state to down, like the framework does. OK stsp@ pirofti@
* replace add_*_randomness with enqueue_randomness()jasper2018-04-282-4/+4
| | | | | | | | | this gets rid of the source annotation which doesn't really add anything other than adding complexitiy. randomess is generally good enough that the few extra bits that the source type would add are not worth it. ok mikeb@ deraadt@
* When starting a background scan, free the nodes table to ensure westsp2018-04-281-2/+2
| | | | | | | | | get an up-to-date view of APs around us. In particular, we need to kick out the AP we are associated to. Otherwise, our current AP might stay cached if it is turned off while we are scanning, and we could end up picking a now non-existent but "good looking" AP over and over. found with and ok phessler@
* Print more debug informations in the event xfer handler.mpi2018-04-281-5/+10
|
* Correct IST macro and add a new macro for setting Frame IDs.mpi2018-04-281-2/+4
|
* Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is alwaysvisa2018-04-281-2/+2
| | | | | | | curproc that does the locking or unlocking, so the proc parameter is pointless and can be dropped. OK mpi@, deraadt@
* Introduce an helper function to extract endpoint's max burst value.mpi2018-04-271-4/+5
| | | | | | | | | Use this helper to calculate the Transfer Burst Count (TBC) and Transfer Last Burst Packet Count (TLBPC) required for isochronous support. Note that SS companion descriptors are still not read. While here print the ETE and IST values in debug mode.
* Introduce an helper function to extract endpoint's max burst value.mpi2018-04-271-19/+72
| | | | | | | | | Use this helper to calculate the Transfer Burst Count (TBC) and Transfer Last Burst Packet Count (TLBPC) required for isochronous support. Note that SS companion descriptors are still not read. While here print the ETE and IST values in debug mode.
* Print index as unsigned.mpi2018-04-271-5/+5
|
* Fix an off-by-one in xhci_xfer_tdsize().mpi2018-04-271-7/+5
| | | | | | While here use UE_GET_SIZE() coherently. ok pirofti@, stsp@, visa@
* Remove duplicate device identification so my usb drive attaches as a umasstb2018-04-271-2/+1
| | | | | | and not as a uplcom. From mpi, ok deraadt, no objection kettenis
* Delete superfluous includes of <sys/file.>guenther2018-04-272-4/+2
| | | | ok krw@
* net80211: stub SIOCS80211SCAN, make ifconfig scan instant.pirofti2018-04-261-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The following removes the functionality of the SIOCS80211SCAN ioctl. After long discussions with stps@, mpi@, and deraadt@ we decided that this was the correct way of fixing ifconfig scan from blocking the network stack. The kernel will continue scanning in the background and filling the nodes array, but ifconfig scan commands will now basically do just a SIOCG80211ALLNODES and pretty print the array. So the output stays the same but is instant. In fact, when the interface is freshly brought up, if you type fast enough, you can see the array being filled by running multiple ifconfig scans in sequence. The SIOCS80211SCAN ioctl stays for now as wi(4), pgt(4) and malo(4) still need it around. But not for long... Another change that this introduces is the fact that ifconfig scan no longer plays with UP and DOWN. If the interface is down it complains and exits. This is needed in order to maintain the nodes list. Works on iwm(4), iwn(4), urtwn(4), run(4) and athn(4). Tested by mpi@, landry@, florian@, thanks! OK mpi@.
* Reduce differences between isoch & bulk/intr routines.mpi2018-04-261-21/+20
| | | | ok stsp@
* Follows section 6.2.3.6 to compute endpoint interval.mpi2018-04-261-32/+58
| | | | ok stsp@
* Fill the 'card' member of v4l2_capability struct with the usb productlandry2018-04-243-7/+10
| | | | | | | | name coming from usbd_devinfo_vp() instead of the dummy "Generic USB video class device" string, makes it easier to differentiate multiple webcams in firefox's webrtc permission dialog. ok/help mpi@
* Add support for Huawei k3772.bket2018-04-111-1/+3
| | | | OK jca@, sthen@, deraadt@
* syncbket2018-04-112-4/+14
|
* Add ids for Huawei k3772.bket2018-04-111-1/+3
| | | | OK jca@, sthen@, deraadt@
* synckevlo2018-03-202-4/+16
|
* Add support for SIMCom SIM7600E.kevlo2018-03-202-2/+8
| | | | ok deraadt@
* bug fix (I found it when comparing with if_upl.c)uaa2018-03-151-5/+4
| | | | | | | | - remove extra blank line - call ifq_deq_rollback() when ugl_send() failed - call ifq_clr_oactive() before splx() ok mpi@