summaryrefslogtreecommitdiff
path: root/sys/dev
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-26Adapt to the removal of the symbolic input and output port names fromMiod Vallat
<sys/audioio.h>
2015-06-25Cards with revision < 10 (qemu rev is 0), have no ad1848 chip andAlexandre Ratchov
don't attach the ad1848 driver. But the "malloc" method of gus_hw_if is ad1848_malloc() which assumes a ad1848 is attached (and expect the softc pointer to be a struct ad1848_softc, but get a gus_softc pointer instead). Implement, the missing gus_{malloc,free,mappage,...} routines. Add the missing mtx_{enter,leave} calls, as we're at it. Found by mlarkin. ok mlarkin
2015-06-25Ensure the setup block is DMA reachable.Theo de Raadt
tested by reyk, mlarkin, others
2015-06-25Reimplement the audio driver in a simpler way, removing unused/unusableAlexandre Ratchov
functionality. Same API and ABI except for the removed bits and no behaviour change for programs using libsndio. With help from armani@ and mpi@, thanks.
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-24#undef HZ before defining it such that compiling a kernel with -DHZ=xxx works.Mark Kettenis
2015-06-24Linux jiffies and OpenBSD ticks are the same thing.Mark Kettenis
ok jsg@
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-24Introduce Linux work queue APIs and use them. As a side-effect, this willMark Kettenis
move some of the work from the system task queue to the driver-specific task queue. ok jsg@
2015-06-22Flush out another small diff to reduce the diffs with Linux.Mark Kettenis
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-22Apparently some BIOSes not supporting xHCI natively switch USB portsMartin Pieuchot
back to EHCI at suspend. So route the ports back to xHCI at resume. Problem reported by Adam Wolk, thanks!
2015-06-21Don't use uninitialized data as a return value.Kenneth R Westerback
From Brainy via Maxime Villard via tech@. ok kettenis@
2015-06-21Don't leak mem if wsfont_rotate() fails.Jeremie Courreges-Anglas
Problem reported by Maxime Villard, ok miod@
2015-06-21memory leak on failure; from Maxime VillardTheo de Raadt
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-19remove isp(4) now that the ql* family have replaced itJonathan Matthew
2015-06-18For unsupported sample formats, don't return EINVAL but set the closestChristian Weisgerber
available format. ok ratchov@
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-15Remove comments referring to Linux iwlwifi source filenames from iwm(4).Stefan Sperling
Linux is a moving target so these comments provide little value. Discussed with kettenis and deraadt.
2015-06-15Make the wifi LED work with iwm(4).Stefan Sperling
The bad news: Many laptops sold with iwm(4) cards don't have a wifi LED :-( The good news: Laptops with LEDs and no wifi device white-list in BIOS actually exist! Tested in one such machine. ok kettenis@ deraadt@
2015-06-14Implement IQ calibration support for rtwn(4). Lots of black magic involved.Stefan Sperling
2015-06-13Parse _CST objects and use the C-states they describe when they're sane.Philip Guenther
testing by many, particularly krw@ and jcs@ tweaks by kettenis@ ok deraadt@
2015-06-13Busy-wait a short while after sending a command to rtwn(4) firmware.Stefan Sperling
Fixes selection of initial TX rate. We're not stuck at 1Mbit/s anymore.
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-12Actually trigger iwm_init_task() from iwm_watchdog() as intended to giveStefan Sperling
recovery after device timeout a chance. Don't mess with the IFF_UP flag in the watchdog since this isn't done anywhere except intel wifi drivers which probably copied this pattern amongst each other. ok kettenis@
2015-06-12Fix rtwn(4) wifi LED support. Tested with rtwn(4) device in Thinkpad X220.Stefan Sperling
2015-06-11remove uneeded pci includesJonathan Gray
2015-06-10Typos: equalivant, fucntion, libary.Miod Vallat
2015-06-10Don't claim the autri(4) driver supports big-ending, signed 8-bit,Alexandre Ratchov
or unsigned 16-bit samples. Fixes sound on big endian machines.
2015-06-10Use first 4 channels of the board. The previous channel settingAlexandre Ratchov
caused DMA on the wrong memory location during recording. ok kettenis@
2015-06-10Do not set "rcvif", if_input() does it for us.Martin Pieuchot
Found the hardway by krw@ trying a diff that kills "rcvif". ok stsp@
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@