summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2014-05-26Matching USB devices per device IDs is not a good idea, especially ifMartin Pieuchot
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 definedAlexandre Ratchov
2014-05-25The default case in uhci_deactivate() was missing. Because of that,Martin Pieuchot
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 mips64Miod Vallat
2014-05-24Support for newer run(4) hardware ported from FreeBSD's run(4) driver.Stefan Sperling
Committing over MAC/BBP RT5390 (rev 0x0502), RF RT5370 (MIMO 1T1R). Tested by myself, matthieu@, juanfra@ Diff glanced over by kettenis@
2014-05-24regenStefan Sperling
2014-05-24Add device IDs for newer run(4) devices. Obtained from FreeBSD.Stefan Sperling
2014-05-23Expose bif_capacity as the 'design capacity' through an acpibat sensor,Landry Breuil
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 setJonathan Matthew
it in one place.
2014-05-21When the firmware tells us a loop id is already in use, add the deviceJonathan Matthew
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-21regenMartin Pieuchot
2014-05-21Add VIA Labs.Martin Pieuchot
2014-05-21Handle the stall condition just like the bable one since in both casesMartin Pieuchot
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 statementsMike Larkin
(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-20regenMartin Pieuchot
2014-05-20Add VIA VL80x xHCI.Martin Pieuchot
2014-05-20Format string fixes for XHCI_DEBUG.Martin Pieuchot
2014-05-19fix format mistakes visible if AUDIO_DEBUG is definedAlexandre Ratchov
2014-05-19unbreak the build when DIAGNOSTIC is not definedJonathan Gray
allows ramdisk kernels to build again
2014-05-19Update run(4) firmware to version 0.33, with permission from Dennis LeeStefan Sperling
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@Jeremie Courreges-Anglas
2014-05-18_PIC is an optional method, so we shouldn't be aborting the rest of theMike Larkin
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 hubMartin Pieuchot
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 thisStefan Sperling
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.Stefan Sperling
2014-05-18regenStefan Sperling
2014-05-18Add PCI ID for Realtek RTL8402 card reader.Stefan Sperling
2014-05-17Fix kernel build with EHCI_DEBUG by removing a non-compiling DPRINTF().Stefan Sperling
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 definedAlexandre Ratchov
2014-05-17fix format mistakes visible if UAUDIO_DEBUG is definedAlexandre Ratchov
2014-05-17fix format mistakes visible if AUICH_DEBUG is definedAlexandre Ratchov
2014-05-17unbreak build with AUDIO_DEBUG: use %lx for bus_addr_tAlexandre Ratchov
2014-05-17unbreak build: exchange %b args order, from miod@Alexandre Ratchov
2014-05-17When the firmware tells us a loop id is already in use, add the deviceJonathan Matthew
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 genericMartin Pieuchot
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 USBMartin Pieuchot
host controller because autoconf(9) already does it.
2014-05-16It seems that there is new and old revision of CH340.sasano
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-16regenDavid Coppa
2014-05-16Add Alcatel OneTouch L100VDavid Coppa
Diff from Lukasz Ratajski ok sthen@
2014-05-15regenMartin Pieuchot
2014-05-15XHCI -> xHCIMartin Pieuchot
2014-05-15Use a more appropriate malloc(9) type than M_TEMP for the keymap memoryMartin Pieuchot
since it is only freed when your keyboard is detached.
2014-05-14wsmoused() called if cmd == WSDISPLAYIO_WSMOUSED only,Alexandr Shadchin
don't need check cmd twice. ok miod@
2014-05-12Move GTT management for Sandy Bridge and up into inteldrm(4). This makesMark Kettenis
it possible to use the non-mappable part of the GTT, prepares the way for using the PPGTT and reduces the diffs with Linux. ok jsg@
2014-05-12Backport FreeBSD's HID parser in order to properly parse `moderm'Martin Pieuchot
input device descriptors, notably if they include an Item with an Usage array (Min-Max range) and others single Usage elements. Tested by many, thanks! ok andre@
2014-05-11The relation between uhci(4), ohci(4) and their root hub device isMartin Pieuchot
delicate. HC drivers do not always accept to be left alone. I don't know if it is a love crisis, but apparently receiving a root hub status change interrupt before having an uhub(4) attached breaks resume. So make sure the root hub is re-attached before interrupt get enabled. It is safe to do it during DVACT_RESUME since attaching root hubs do not require any USB transfer. Based on a diff from yasuoka@, fix a regression introduced in last commit an reported by Abel Abraham Camarillo Ojeda on tech@ and Nils R on bugs@.
2014-05-10Sidestep format string issue by sanitizing a bit of debug code.Mark Kettenis
ok deraadt@
2014-05-09Format string fixes and removal of -Wno-format for *ppc kernels.Miod Vallat
2014-05-09Plug an xfer leak when detaching root hubs.Martin Pieuchot
This leak is similar to the public xfer leak #1 that was affecting device interrupt pipes except that root hubs are rarely detached. Note that this xfer is never associated to any TD and is just used to indicate that some of the HC ports has changed status, so there is no need to flag it as "done" before completing it.
2014-05-08Format string fixes and removal of -Wno-format for hppa kernels.Miod Vallat