summaryrefslogtreecommitdiff
path: root/sys/dev/usb
AgeCommit message (Collapse)Author
2014-02-25Abort and close all the interrupt pipes when detaching HID devices sinceMartin Pieuchot
drivers attaching to uhidev(4) do not always do it. Seems to fix one of the transfer aborting races triggering a lot of "ehci_idone: ..." vomit upon resume. Reported by and fix tested by Ville Valkonen, ok deraadt@
2014-02-24Partially revert r1.134, bring back the code suspending root hub's portsMartin Pieuchot
before reseting the controller in order to save power when the machine is suspended. ok deraadt@
2014-02-15Correct the name of a Planex device and add some additionalJonathan Gray
ZyXEL zyd(4) devices. From Ben Taylor
2014-02-15regenJonathan Gray
2014-02-15Correct the name of a Planex device and add some additionalJonathan Gray
ZyXEL zyd(4) devices. From Ben Taylor
2014-02-09Make sure to close the default pipe before re-opening it when we wantMartin Pieuchot
to update the address and packet length, fixes a memory leak introduced in revision 1.96.
2014-02-09Do not allow to unconfigure a device by setting the configurationMartin Pieuchot
number 0, leaving its descriptors pointing to NULL. There's a lot of code in our stack that assumes that the various descriptors are always valid and changing this would be too much work for the moment. Fix an issue reported by Thomas Pfaff, thanks!
2014-02-06revert some HID changes that broke on older modelsjoshua stein
discussed with mpi@ and jung@
2014-02-04Make sure the USB device pointer is valid even if attach fails sinceMartin Pieuchot
it is now checked to prevent any operation on the device. Problem found and fix tested by sebastia@
2014-02-03Check if the device is being detached when returning from tsleep() andMartin Pieuchot
in such case do not try to cleanup the device since this would make the thread sleep again while keeping a reference to the softc. Fix a panic found by sebastia@, ok pirofti@
2014-02-03Fix a null dereference introduced when converting this driver to useMartin Pieuchot
usbd_is_dying(). Found the hard way by sebastia@
2014-01-30Do not match control interfaces if their associated data interface isMartin Pieuchot
missing or already claimed. This fixes a problem with the Ericsson F3507g embedded in the x200s that has a broken configuration descriptor reporting too few interfaces. Problem reported and fix tested by Harald Hellmuth and florian@
2014-01-26Attempt to make user changes of keyboard layout a bit more `sticky' on wsmuxMiod Vallat
kernels: - keyboard drivers will now tell wskbd if the keyboard layout they ask for is a default value, or a value they are 100% sure of (either because your kernel has a XXXKBD_LAYOUT option, or because the driver can tell the keyboard layout, e.g. by the country code on USB keyboards which provide it, such as Sun's) - when attaching a keyboard with a non-default layout, the layout will become the default layout of the mux for new keyboard attachments if the mux doesn't have a layout set already. - when changing the keyboard layout of a particular keyboard with an ioctl (i.e. using kbd(8) or wsconsctl(8)), the layout will become the default layout of the mux for new keyboard attachments. ok mpi@
2014-01-22simplify ubcmtp_matchjoshua stein
suggested by mpi@
2014-01-22udav(4): add CoreChip RD9700 supportsasano
RD9700 has no MII-PHY, no serial EEPROM. ok by deraadt@, brad@
2014-01-22add a missing argument to a printfJonathan Gray
2014-01-22add a missing argument to a debug printfJonathan Gray
ok jcs@
2014-01-22re-generated from usbdevssasano
2014-01-22add CoreChip RD9700 (idVendor:idProduct=0x0fe6:0x9700) definitionsasano
ok by Brad Smith
2014-01-21Always fill in the broadcast address so as to handle broadcast packets ifBrad Smith
the interface is put into all multicast mode. ok stsp@
2014-01-20call usbd_deactivate() for DVACT_DEACTIVATEjoshua stein
also check usbd_is_dying() when checking sc_status requested by mpi@
2014-01-20add ubcmtp, a USB driver for Broadcom multitouch trackpads found onjoshua stein
newer Apple MacBook laptops enabling two-finger scrolling and other multi-finger gestures with the synaptics(4) driver mostly done at the t2k13 hackathon input from and ok mpi@
2014-01-20define UIPROTO_BOOT_MOUSEjoshua stein
ok mpi@
2014-01-18Make mos(4) pass received broadcast frames explicitly if not in promiscuousStefan Sperling
mode. Fixes a problem with initiating connections to a mos(4) interface. Reported by Petr Hoffmann on bugs@. ok sthen
2014-01-15Remove a hack to update the address and packet length for every deviceMartin Pieuchot
request and instead re-open the default pipe with updated values when attaching a new device, adapted from FreeBSD r162977. This fixes a problem where the controller could have cached the previous values and would fail to get the device descriptor, leaving the device unrecognized with a message like: "device problem, disabling port n".
2014-01-08Fix typo recieve -> receive.Alexander Bluhm
OK sf@
2014-01-08regenjoshua stein
2014-01-08add a bunch of newer apple wellspring keyboard/trackpad idsjoshua stein
2014-01-07syncTheo de Raadt
2014-01-07some more devices; Alexey E. SuslikovTheo de Raadt
2014-01-07syncTheo de Raadt
2014-01-07FTX support; from Chris HettrickTheo de Raadt
2014-01-07Remove unused fields.Martin Pieuchot
ok sasano@
2013-12-17syncTheo de Raadt
2013-12-17elan products; Thomas PfaffTheo de Raadt
2013-12-15Fix ubt compilation after my last usbd_dying sprint.Paul Irofti
Report and patch from Rafael Neves, thanks!
2013-12-14remove a duplicated includ file.Yojiro Uo
2013-12-13add an entry for "IIJmobile 510FU"Yojiro Uo
2013-12-13regenYojiro Uo
2013-12-13add IIJmobile 510FUYojiro Uo
2013-12-13regenYojiro Uo
2013-12-13add FUJITSU component FX-5251WBYojiro Uo
2013-12-13add SACOM USB485BLYojiro Uo
2013-12-13regenYojiro Uo
2013-12-13add vendor SACOM (0ba0h)Yojiro Uo
2013-12-13Rewrite receive filter handling and ioctl bits.Brad Smith
Tested by ISIHARA Takanori
2013-12-11Clean up the ioctl handler to be in line with most of the otherBrad Smith
Ethernet drivers. ok sasano@
2013-12-09Fix crash on urndis(4) detachPaul Irofti
When detaching my nokia c2-01 dohooks in if_detach would panic. This was due to a failure to setup a pipe in urndis_ctrl_init() which results in a TIMEOUT on receive with side-effects later on during detach due to assumptions regarding the existence of interface hooks during dohooks on if_detach tear-down. That resulted on dereferencing a NULL function pointer which triggered a panic. Discussed with mpi@, tested and okay giovanni@.
2013-12-09Mark a few functions with __unused.Brad Smith
ohci.c:193:1: error: unused function 'OREAD1' [-Werror,-Wunused-function] ohci.c:200:1: error: unused function 'OREAD2' [-Werror,-Wunused-function] uhci.c:256:1: error: unused function 'UREAD4' [-Werror,-Wunused-function] ok deraadt@
2013-12-07Some cleaning up of the ioctl handling bits to bring things in lineBrad Smith
with the other drivers. No functional change.