summaryrefslogtreecommitdiff
path: root/sys/dev/usb
AgeCommit message (Collapse)Author
2019-07-19ttysleep(): drop unused timeout parametercheloha
All callers sleep indefinitely. With help from visa@. ok visa@, ratchov@, kn@
2019-07-10The USB video class specification has increased its probe bufferPatrick Wildt
sizes with each specification. Use the correct size for the given version, since some newer devices cannot handle small buffers. ok jan@
2019-07-10Also dump interface association descriptor when debugging isPatrick Wildt
compiled in. ok jan@
2019-07-09Fix whitespace issue.Patrick Wildt
ok jan@
2019-07-09ure(4) and url(4) need ifmedia attribute.Kevin Lo
ok deraadt@
2019-07-07Eliminate duplicate code in xxx_detach().Kevin Lo
ok mpi@
2019-07-06Ensure Rx/Tx resources are freed during interface stop.Kevin Lo
2019-06-26Create IF_WWAN_DEFAULT_PRIORITY which is lower thanClaudio Jeker
IF_WIRELESS_DEFAULT_PRIORITY and use it in umb(4) as default prio. OK kettenis@, sthen@
2019-06-25avoid uninitialised var accessJonathan Gray
Cody Cutler author of ukspan(4) agrees ok deraadt@
2019-06-24Don't retry to get the usb descriptor in usbd_new_device() if the callClaudio Jeker
timed out. If usbd_get_desc() returns USBD_TIMEOUT the chance is high that the next call will do the same and it slows down attachement of devices a lot. Makes reattaching USB at resume a lot faster with my umb(4) card (which likes to time out). "move fast and fix things" deraadt@
2019-06-14Use timeout_add_msec(9)kn
UPGT_LED_ACTION_TMP_DUR is 100ms, avoid converting to Hz and back again. OK kevlo
2019-06-14Use timeout_add_msec(9)kn
The timeval is used to represent 100ms, which are converted to Hz so they can be converted back - simplify this by using the new ms interface directly. Tested and OK kevlo
2019-06-13Do not consider the pipe as halted if the device is gone.Martin Pieuchot
Analysed by and ok claudio@
2019-06-07add ukspan(4), a driver for the Keyspan USA19HS USB serial adapterJoshua Stein
written by Cody Cutler <ccutler at csail.mit.edu>
2019-06-07regenJoshua Stein
2019-06-07add Keyspan USA-19HSJoshua Stein
2019-05-27fix multitouch by properly reading multi-finger data on type4Joshua Stein
devices which have padding between finger data tested on an older model by bru@
2019-05-21Fix NULL check with wrong pointer in xhci_event_xfer_isoc(); CID 1480287Stefan Sperling
ok ratchov@
2019-05-11RegenAaron Bieber
2019-05-10Add more flags to the debug bitmaskPhilip Guenther
ok mpi@
2019-05-09When changing device rate, send request to the clock source unit.Alexandre Ratchov
Currently we send the request to the unit indicated as clock source of the terminals, which may be a clock selector unit that doesn't support the request. Fix this by following the clock source path until the clock source unit is found.
2019-05-09Set the rate of UAC v2.0 clock units using the control interface, notAlexandre Ratchov
a random streaming iface.
2019-05-09Skip empty control interfaces when parsing descriptors.Alexandre Ratchov
Even if having multiple control interface descriptors is not allowed by the UAC spec, there's no reason to stop as long as a proper control interface was processed.
2019-05-09Add ucrcom(4) a (very simple) driver for the serial console of (some)Mark Kettenis
chromebooks. ok deraadt@
2019-05-08Add ucrcom(4) a (very simple) driver for the serial console of (some)Mark Kettenis
chromebooks. ok deraadt@
2019-05-08regenMark Kettenis
2019-05-08add Google vendor IDMark Kettenis
2019-05-01Use the proper UAC-v2.0 request to read the device controls.Alexandre Ratchov
Fixes STALL errors in mixer requests causing the mixer to be unusable. With help from Claus <claus at mailbox.org>. Thanks.
2019-04-30Decrease verbosity when XHCI_DEBUG is defined.Alexandre Ratchov
ok mpi
2019-04-25Follow up on jmatthew's suggestion:Kevin Lo
in x_media_change(), return the errno from ieee80211_media_change() and do the error check from x_init(). ok stsp@, jmatthew@, phessler@
2019-04-24Add product id for the USB serial adapter found in Juniper SRX 300.remi
ok deraadt@ phessler@ sthen@
2019-04-24regenremi
2019-04-24New product id for the USB serial adapter found in Juniper SRX 300.remi
ok deraadt@ phessler@ sthen@
2019-04-10Hide debug printfs.Alexandre Ratchov
ok deraadt
2019-04-10Handle missed service errors, specific to isochronous transfers.Alexandre Ratchov
After each MSE, ensuire usbd_complete_transfer() is called for each missed transfer, for which there's no transfer completion event. Fixes crashes and deadlocks in upper layers caused by the missing completion. ok deraadt, patrick; help from mpi, patrick, gmlocker
2019-04-10Fix URE_WDT6_SET_MODE register definition.Kevin Lo
Based on FreeBSD r346028, this fixes ure(4) not detected after a reboot. ok deraadt@
2019-04-04Simplify underruns handling: just copy silence produced by upper layer.Alexandre Ratchov
This makes the code less bug prone as the "rare" underruns conditions are handled by the main non-underrun code.
2019-04-03Always copy data (if any) whenever a new bounce buffer is available.Alexandre Ratchov
2019-04-03Check for available space before copying data to the bounce buffers.Alexandre Ratchov
No behavior change as we don't call uaudio_pdata_copy() in situations when bounce buffers may not be available.
2019-04-03Make the uaudio_stream->ubuf_xfer relative to current xfer number.Alexandre Ratchov
No behavior change. The new representation is equivalent but eases detection of overflows and underflows.
2019-03-31Fix comment typo: 'trasnfer' -> 'transfer'.Marcus Glocker
2019-03-27Add uxrcom(4), a driver for the Exar XR21V1410 USB serial adapter.Mark Kettenis
Even though these chips implement the standard USB CDC class protocol we need a separate driver to be able to disable hardware flow control. Hardware flow control is automatically enabled in CDC mode but if the relevant lines aren't connected this prevents the chip from getting input. ok deraadt@
2019-03-27regenMark Kettenis
2019-03-27Add Exar XR21V1410.Mark Kettenis
ok deraadt@
2019-03-22support Meinberg DCF600USB, from weerd@, ok phesslerStuart Henderson
2019-03-22syncStuart Henderson
2019-03-22add Meinberg DCF600USB, from weerd@, ok phessler@Stuart Henderson
2019-03-19In uaudio_pdata_intr() don't error out early if the status is USBD_IOERROR.Claudio Jeker
At least my uaudio(4) over ohci is encountering a fair amount of USBD_IOERROR when the system is busy (most probably because the deadline is missed because of the big lock being hold). With this in, playing music while running a make build no longer stops after a few seconds. OK ratchov@
2019-03-17Since an isoc endpoint never halts, move to remaining error handlingMarcus Glocker
code in xhci_event_xfer() to the generic handler function. suggested and ok mpi@
2019-03-17Move the handler code in the xhci_event_xfer() switch case in two separateMarcus Glocker
functions for isoc and !isoc xfers. Suggested by mpi@. ok patrick@, stsp@