summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2014-06-03Fix an off-by-one in zyd_rxeof().stsp1-2/+2
ok krw@ kettenis@ mpi@
2014-06-03Fix zyd(4)'s frame length adjustment in RX path. Instead of snipping offstsp1-2/+2
HW-specific data and CRC trailer as intended, the driver was telling the net80211 layer frames were longer than they actually are. Math is hard. ok krw@ kettenis@ mpi@
2014-06-01Remove real mode VGA repost option. It was used by nobody, and even if itmlarkin1-17/+7
were to be enabled, it had a bug that prevented it from working anyway. ok deraadt@, kettenis@
2014-05-30Remove dead assignment and newly created unused variable.chl1-3/+1
Found by LLVM/Clang Static Analyzer. ok claudio@
2014-05-30Remove unused fields from the pipes.mpi3-43/+3
2014-05-29Use the same convention for mixer control names as azalia.ratchov1-12/+12
2014-05-28Apart from the early exploration done to find a console keyboard duringmpi3-17/+27
the boot process, USB devices must be attached or detached from the usb task thread in order to avoid races with periodical explorations issued by uhub(4) interrupts. Respect this rule when detaching root hubs during a suspend/resume cycle and avoid some hangs due to the aforementioned race. Tested by Mattieu Baptiste, thanks!
2014-05-27We're never going to detach agp(4), so remove the #ifdef'ed out code like wekettenis5-146/+5
already did for intagp(4).
2014-05-26Matching USB devices per device IDs is not a good idea, especially ifmpi1-11/+12
the device has multiple interfaces and/or report IDs. Make sure utpms(4) only matches the mouse interface of the HID device embedded in Powerbooks and do not rely on the alphabetical order to have a working ukbd(4) on such machines. Problem reported by daniel@
2014-05-25fix format mistakes when AZALIA_DEBUG is definedratchov1-10/+14
2014-05-25The default case in uhci_deactivate() was missing. Because of that,mpi1-1/+4
DVACT_QUIESCE was not passed to usb(4) and a new uhub(4) device was reattached at every resume. Problem reported by mlarkin@
2014-05-24Barriers for mips64miod1-1/+5
2014-05-24Support for newer run(4) hardware ported from FreeBSD's run(4) driver.stsp3-171/+1915
Committing over MAC/BBP RT5390 (rev 0x0502), RF RT5370 (MIMO 1T1R). Tested by myself, matthieu@, juanfra@ Diff glanced over by kettenis@
2014-05-24regenstsp2-4/+44
2014-05-24Add device IDs for newer run(4) devices. Obtained from FreeBSD.stsp1-1/+9
2014-05-23Expose bif_capacity as the 'design capacity' through an acpibat sensor,landry2-4/+20
giving you the original capacity of the battery: hw.sensors.acpibat0.watthour0=64.07 Wh (last full capacity) hw.sensors.acpibat0.watthour4=84.24 Wh (design capacity) hw.sensors.acpibat0.amphour0=2.03 Ah (last full capacity) hw.sensors.acpibat0.amphour4=4.40 Ah (design capacity) Diff from Fabian Raetz on tech@, thanks! ok mlarkin@ zhuk@ armani@ kettenis@
2014-05-21We only have one possible location to use for a logged in port, so only setjmatthew1-5/+2
it in one place.
2014-05-21When the firmware tells us a loop id is already in use, add the devicejmatthew1-31/+54
there to our port lists, then find the next available loop id and carry on rather than restarting. This way, we're less likely to get stuck looping when the firmware behaves inconsistently. We also don't need to treat domain controller logins specially.
2014-05-21regenmpi2-4/+9
2014-05-21Add VIA Labs.mpi1-1/+2
2014-05-21Handle the stall condition just like the bable one since in both casesmpi1-6/+1
the ring is halted. Do not bother reporting USBD_STALLED to the stack like other HC drivers do since the endpoint is automatically reseted. What is the point of this error apart from making sure driver authors will forget to call usbd_clear_endpoint_stall_async() correctly? The Renesas uPD720202 xHCI, provided by Stefan Wollny, now works as expected.
2014-05-21Fix invalid / missing format specifiers in several dnprintf statementsmlarkin5-26/+27
(used only when ACPI_DEBUG is enabled) From a diff on tech@ by Fabian Raetz, with a minor change by me, tested on i386 and amd64 with ACPI_DEBUG enabled and disabled.
2014-05-20regenmpi2-0/+5
2014-05-20Add VIA VL80x xHCI.mpi1-1/+2
2014-05-20Format string fixes for XHCI_DEBUG.mpi1-11/+11
2014-05-19fix format mistakes visible if AUDIO_DEBUG is definedratchov1-13/+13
2014-05-19unbreak the build when DIAGNOSTIC is not definedjsg1-1/+3
allows ramdisk kernels to build again
2014-05-19Update run(4) firmware to version 0.33, with permission from Dennis Leestsp1-689/+689
of Mediatek to keep using the free firmware licence we've been using. Tested by myself, rapha@, Fred Crowson, Dinar Talypov, gerhard@, matthieu@.
2014-05-18hid_start_parse can't fail - it calls malloc(M_WAITOK). ok mpi@jca1-3/+1
2014-05-18_PIC is an optional method, so we shouldn't be aborting the rest of themlarkin1-3/+2
MADT processing if it is missing. This, combined with an earlier diff from kettenis@ to fix MADT interrupt polarity processing, should resolve the issues reported with QEMU/KVM ACPI power button presses when using OpenBSD guests. ok kettenis@, pirofti@ tested by myself and kettenis for the past few weeks
2014-05-18Do not pass an xfer pointer to the timeout routine checking for root hubmpi2-47/+29
status changes because it might be freed when detaching the root uhub(4). Also do not reschedule a timeout if the pipe is being aborted. Finally do not add more code to retrieve the 'bInterval' value of the root hub endpoint descriptor since this value is hardcoded in the uhci(4) driver.
2014-05-18Fix tail packet check in elantech v3 touchpad code. Due to a typo thisstsp1-2/+2
code was masking out bits which were also tested in the same expression. Reported by cppcheck via jsg@ (Expression '(X & 0xfc) != 0x2' is always true). Tested with Elantech Touchpad, version 3, firmware 0x250f00.
2014-05-18Make rtsx(4) attach to RTL8402 devices. Reported as working by Eric Huiban.stsp2-4/+5
2014-05-18regenstsp2-2/+7
2014-05-18Add PCI ID for Realtek RTL8402 card reader.stsp1-1/+2
2014-05-17Fix kernel build with EHCI_DEBUG by removing a non-compiling DPRINTF().stsp1-10/+1
Since no DPRINTF() call remains also remove its definition (requested by mpi@). ok mpi, and also reported by Jean-Philippe Ouellet
2014-05-17fix format mistakes visible if AZALIA_DEBUG is definedratchov1-4/+4
2014-05-17fix format mistakes visible if UAUDIO_DEBUG is definedratchov1-3/+3
2014-05-17fix format mistakes visible if AUICH_DEBUG is definedratchov1-6/+6
2014-05-17unbreak build with AUDIO_DEBUG: use %lx for bus_addr_tratchov1-2/+2
2014-05-17unbreak build: exchange %b args order, from miod@ratchov1-2/+2
2014-05-17When the firmware tells us a loop id is already in use, add the devicejmatthew2-33/+59
there to our port lists, then find the next available loop id and carry on rather than restarting. This way, we're less likely to get stuck looping when the firmware behaves inconsistently. We also don't need to treat domain controller logins specially. additional complications discovered by deraadt@
2014-05-16Reduce the difference between HC drivers by always passing a genericmpi2-51/+53
usbd_xfer pointer to the routines processing finished transfers to make it crystal clear that the timeout and abort logic is the same everywhere.
2014-05-16There is no need to remember which usb(4) device is the child of an USBmpi12-66/+42
host controller because autoconf(9) already does it.
2014-05-16It seems that there is new and old revision of CH340.sasano1-73/+16
Previous uchcom(4) driver targeted old one, and new one could not work because of uchcom_set_line_control() broke the value of UCHCOM_REG_LCR1(0x18). To support new CH340, uchcom_set_line_control() and uchcom_reset_chip() have been overhauled. Current uchcom(4) does not change the value of UCHCOM_REG_LCR1 register, it means even/odd parity mode is no longer supported with old CH340. ok by mpi@
2014-05-16regendcoppa2-4/+14
2014-05-16Add Alcatel OneTouch L100Vdcoppa2-2/+6
Diff from Lukasz Ratajski ok sthen@
2014-05-15regenmpi2-2/+2
2014-05-15XHCI -> xHCImpi1-2/+2
2014-05-15Use a more appropriate malloc(9) type than M_TEMP for the keymap memorympi2-5/+5
since it is only freed when your keyboard is detached.