| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
it fails, reset the port and try again. this seems to fix some devices that
would punt with "device problem, disabling port" otherwise.
from augustss@netbsd with some change as per discussion with theo.
set the address before getting the descriptor. from peterbu at bemac dot com
via netbsd kern/24716.
tested by many.
|
| |
|
|
|
|
|
|
| |
so that it shows up before the :. as a result, all the usb devices do not
need to have name printing code anymore. all this now works and prints
nicely because usbd_probe_and_attach() is serialized. ok kettenis
|
|
|
|
| |
attached at a time; ok kettenis
|
|
|
|
|
| |
otherwise just adding M_ZERO to malloc() and removing the immediately
adjacent memset(,0,).
|
|
|
|
| |
prompted and "much better" by marco@, ok pyr@
|
|
|
|
| |
buffer to itself; checked by jsg and kettenis and others
|
| |
|
| |
|
|
|
|
|
|
| |
No binary change.
ok mk.
|
|
|
|
|
|
| |
around a single function only and it did not even use all of it's arguments.
ok jsg.
|
|
|
|
|
|
| |
No binary change.
ok jsg.
|
|
|
|
| |
ok jsg.
|
|
|
|
|
|
|
| |
(This might look easy, but it was a big diff. Thanks to dlg and especially jsg
for looking over it; we found at least four mistakes in the initial diff.)
ok jsg.
|
|
|
|
|
|
|
| |
and it was not consistently used. It was confusing as it suggested these
functions were static, which they were not.
discussed with dlg and jsg, ok jsg.
|
|
|
|
| |
actually work, surprise surprise; ok claudio cnst
|
| |
|
|
|
|
| |
is consumable by anyone who includes it (matches idea in pcidevs)
|
| |
|
| |
|
| |
|
|
|
|
| |
ok pascoe@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
is closed and then reopened. This may be necessary now that
we no longer clear endpoint stalls every time a pipe is opened.
Previously we could assume an initial toggle value of zero because
a clear-stall operation resets the device's toggle state.
Derived from work in FreeBSD.
This is most likely to affect devices like printers, which open
pipes for short periods of time and close them again.
ok dlg@
|
|
|
|
|
|
|
| |
ddb>. Discovered by trying 'usbdevs -v' while a broken card reader was
trying to attach. Broken device provided by Manuel Pata.
ok pedro@ deraadt@
|
|
|
|
|
| |
userland-visible sys/select.h. Consistent with what Net and Free do.
OK deraadt@, tested with full ports build by naddy@.
|
|
|
|
|
| |
Originally committed in 2001, backed out in a sync, now back in.
saves close to 12k of kernel size. commit deraadt@
|
|
|
|
|
|
|
|
| |
pipe. Some devices such as some iPods react badly. Normal devices
don't need it. From nathanw via NetBSD. Fixes the 2nd generation iPod
mini donated by Ed Wandasiewicz.
ok pascoe@
|
|
|
|
|
|
|
|
| |
This should cure some rare stack overflows.
From augustss NetBSD
ok dlg@ pascoe@
|
| |
|
| |
|
| |
|
|
|
|
| |
snprintf() style semantics [which people fail to grok]; ok otto
|
|
|
|
|
|
|
| |
Supports bulk, control and interrupt pipes, letting USB1 keyboards and most
network interfaces work when connected to a USB2 hub.
ok dlg@
|
|
|
|
| |
something better and more flexible to use.
|
|
|
|
|
|
|
|
|
| |
attach.
this is required by atu (atmel based usb wireless) devices. something better
will be done, but we need it for now to work on atu.
ok deraadt@
|
|
|
|
| |
UQ_NO_STRINGS quirk.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
usbdi_util.h (1.29), uhid.c (1.62), ugen.c (1.68), usb_subr.c (1.114)
Yes, some devices return incorrect lengths in their string
descriptors. Rather than losing, do what Windows does: just
request the maximum size, and allow a shorter response. Obsoletes
the need for UQ_NO_STRINGS, and therefore these "quirks" are removed.
usb_subr.c (1.116)
In the "seemed like a good idea until I found the fatal flaw"
department... Attempting to read a maximum-size string descriptor
causes my kue device to go completely apeshit. So, go back to the
original method, but allow the device to return a shorter string than
it claimed.
|
|
|
|
|
| |
buffer, thus may copy too much, causing a memory fault.
ok millert, dlg, henning, tdeval, otto
|
| |
|
|
|
|
| |
This includes numerous fixes and paves the way for usb 2.0 support.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
From NetBSD
|
| |
|