summaryrefslogtreecommitdiff
path: root/sys/dev/usb
AgeCommit message (Collapse)Author
2015-06-26Revert previous. uvideo checks the transfered length of every frame andMartin Pieuchot
this break some devices. As found the hardway by Hugo Sastre via sobrado@
2015-06-24Allow uvideo_mmap_queue() to fail gracefully when the mmap queue is full;Miod Vallat
found the hard way by sebastia@ four years ago, and I'd been sitting on that diff since. The initial diff was more aggressive and would free the mmap queue upon error, but jakemsr@ had objections against this behaviour; this diff only fails gracefully instead of panic'ing.
2015-06-24Quirk needed for SuperTop IDE bridge from frantisek holop.Martin Pieuchot
2015-06-24regenMartin Pieuchot
2015-06-24SuperTop IDE bridge from frantisek holop.Martin Pieuchot
2015-06-24Increment if_ipackets in if_input().Martin Pieuchot
Note that pseudo-drivers not using if_input() are not affected by this conversion. ok mikeb@, kettenis@, claudio@, dlg@
2015-06-22Do not update frame lengths to reflect what has really been transferedMartin Pieuchot
when an isochronous transfer is done. Frame lengths are just input values and no driver mess with them. ok ratchov@, jmatthew@
2015-06-22Make xhci(4)'s root hub report the same status bits as physical USB3 hubs.Martin Pieuchot
There's not bit to indicate the speed of a USB3.0 device attached to a hub port so do not abuse the PORT_TEST bit. Instead make the xhci(4) root hub report the PORT_POWER_SS bit when appropriate and use it to determin the speed of a new device. While here make the root hub report the link state and config error, from FreeBSD.
2015-06-20Only match devices with a valid configuration.Martin Pieuchot
ok uaa@
2015-06-19Only match devices with a valid configuration.uaa
ok by mpi@
2015-06-18CP2110 is handled by uslhcom not uslcomJonathan Gray
2015-06-18Only match devices with a valid configuration.Martin Pieuchot
Tested by jsg@
2015-06-18Only match devices with a valid configuration.Martin Pieuchot
2015-06-18Only match devices with a valid configuration.Martin Pieuchot
Most of the WiFi/Ethernet USB adapter only have one configuration and always use its first interface. In order to improve USB descriptors parsing start by reducing the number of places where a configuration is set. Tested by jsg@
2015-06-17when no fingers are down, send 0 for zJoshua Stein
fixes tap-to-click
2015-06-17fix compilation with UBCMTP_DEBUGJoshua Stein
2015-06-17Four new sensors, from David Higgs.Martin Pieuchot
2015-06-16Add a uslcom id for the Netgear M7100 console from Andrew Daugherity.Jonathan Gray
Add some additional uslcom ids found in the Linux driver while here.
2015-06-16regenJonathan Gray
2015-06-16Add a uslcom id for the Netgear M7100 console from Andrew Daugherity.Jonathan Gray
Add some additional uslcom ids found in the Linux driver while here.
2015-06-15Bring back r1.78 and r1.79, now that ajactouto@'s regression hasMartin Pieuchot
been found: it was a hardware failure. When a bus is explored, do not probe the ports which status hasn't changed. This saves a lot of I/O when attaching/detaching devices and might help with some timing related problems.
2015-06-15Set the length of isochronous transfers as the sum of the frames lengths.Martin Pieuchot
This reduces differences between non-isoch and isoch transfers submissions, makes the generic DMA buffer overrun check work with isoch transfers and will allow some code simplifications in HC drivers. Since short-transfers were never checked for isoch transfers, we now need to pass the USBD_SHORT_XFER_OK flag to not change this behavior. This might be revisited later. ok ratchov@
2015-06-12Only match devices with a valid configuration.Martin Pieuchot
Most of the WiFi/Ethernet USB adapter only have one configuration and always use its first interface. In order to improve USB descriptors parsing start by reducing the number of places where a configuration is set. Tests & ok stsp@
2015-06-10Typos: equalivant, fucntion, libary.Miod Vallat
2015-06-08rearrange delayed_work to avoid the use of container_of while leaving it inJonathan Matthew
more or less the same shape. ok uebayasi@
2015-06-08refuse to do polled isochronous transfers, as other usb controller drivers doJonathan Matthew
requested by mpi@
2015-06-08Ensure polled bulk, control and interrupt transfers actually poll, fixingJonathan Matthew
panics on shutdown with various usb sticks. ok mpi@
2015-06-07The Swiss Federal Government decided to shut down HBG at the end of 2011.Claudio Jeker
On 6 September 2012 at 12:02:00 UTC both antenna towers were demolished by controlled explosives. So this is not coming back and we can tedu the support for HBG form the DCF77 drivers. Remided by mbalmer
2015-05-27Improve the controller state check in xhci_resetMike Belopuhov
From FreeBSD, OK mpi
2015-05-25Make this build when using the __STRICT_ALIGNMENT version of USETW.Jonathan Gray
2015-05-25Prevent a use after free in by closing all open endpoints upon detach.Martin Pieuchot
Fix a panic reported by landry@ with Android's ADB. Tested and ok ajacoutot@
2015-05-21Convert to if_output().Martin Pieuchot
2015-05-17Read ethernet address from EEPROM on AX88772B based on FreeBSDCan Erkin Acar
ok djm@ jsg@
2015-05-14Make the "Battery Present" sensor a depency of all the battery-relatedMartin Pieuchot
sensors only if it is present, From David Higgs. Fix a regression reported by and ok halex@
2015-05-12Merge various urtwn(4) fixes from FreeBSD:Stefan Sperling
Match additional devices (RTL8188CU_3, DWA123D1, DWA125D1). Fix efuse reading (fixes potential error in MAC address read from efuse). Replace some magic numbers with macros. Based on FreeBSD r270191, r273589, r281918, r281592, r282119, and r282623 via Mikhail mp39590@gmail on tech@ ok sthen@
2015-05-12Fix definition of R92C_USTIME_TSF.Stefan Sperling
from FreeBSD r282623 via Mikhail mp39590@gmail on tech@
2015-05-12regenStefan Sperling
2015-05-12usbdevs_data.hStefan Sperling
2015-05-12Add 4 additional urtwn(4) device IDs.Stefan Sperling
from FreeBSD via Mikhail mp39590@gmail on tech@
2015-05-11Refresh sensor values asynchronously.Martin Pieuchot
From David Higgs.
2015-05-11Remove all audio format conversion code from the kernel (btw holdingAlexandre Ratchov
the kernel_lock), as we already do better conversions in user-mode. Yet, no need for every single driver to fiddle with the conversion code as they are done transparently by common MI code. With help from armani and miod, support from mpi ok armani@
2015-05-10Fix urtwn(4) 11b performance for RTL8188EU devices.Stefan Sperling
With 11b APs the firmware retries excessively unless we force it into 11b-only mode instead of mixed b/g. Perhaps a firmware bug, perhaps a bug in our code elsewhere. For now, this makes it work. ok kettenis
2015-05-10My commit adding RTL8188EU did introduce a regression after all.Stefan Sperling
Repair firmware reset on RTL8188CUS devices (and perhaps others) by restoring the proper register write order in the non-8188EU code path. Fixes "urtwn0: timeout waiting for firmware readiness" after device reset.
2015-05-05Huawei MU609 from Cristián Edwards.Martin Pieuchot
ok dcoppa@
2015-05-05regenMartin Pieuchot
2015-05-05Huawei MU609 from Cristián Edwards.Martin Pieuchot
ok dcoppa@
2015-05-04Add support for RTL8188EU chips to urtwn(4).Stefan Sperling
Patch by Mikhail <mp39590@gmail.com>, based on FreeBSD r264912 by kevlo. Tested with 8188EU (TP-Link TL-WN725N). No regression on 8188CUS. There are performance problems with 8188EU devices, cause unknown. These will hopefully be resolved soon. ok mpi@
2015-05-02add missing splx callsJonathan Gray
2015-04-30Link report descriptors to known sensors.Martin Pieuchot
Since HID buffers always start by a reportID we can access the corresponding report descriptor in O(1). Having a list of sensors attached to each report descriptor makes it easier to update all of them with only on I/O request. Note that sensors are attached in depency order on every report list. From David Higgs.
2015-04-30Instead of using a single flat array for all sensors, put all theMartin Pieuchot
children of a sensor in a separate structure. Children sensors should only be probbed if their parent is active. This make the dependency tree explicit and will reduce the number of I/O. From David Higgs.