History log of /freebsd/sys/dev/usb/usb_device.c (Results 151 – 175 of 315)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 8bb77249 22-Oct-2010 Hans Petter Selasky <hselasky@FreeBSD.org>

Add possibility to generate devctl notifications regardless of UGEN presence.

Submitted by: Nick Hibma
Approved by: thompsa (mentor)


# 963169b4 05-Oct-2010 Hans Petter Selasky <hselasky@FreeBSD.org>

This commit adds full support for USB 3.0 devices in host and device
mode in the USB core. The patch mostly consists of updating the USB
HUB code to support USB 3.0 HUBs. This patch also add some mo

This commit adds full support for USB 3.0 devices in host and device
mode in the USB core. The patch mostly consists of updating the USB
HUB code to support USB 3.0 HUBs. This patch also add some more USB
controller methods to support more active-alike USB controllers like
the XHCI which needs to be informed about various device state events.

USB 3.0 HUBs are not tested yet, due to lack of hardware, but are
believed to work.

After this update the initial device descriptor is only read twice
when we know that the bMaxPacketSize is too small for a single packet
transfer of this descriptor.

Approved by: thompsa (mentor)

show more ...


# ae538d85 02-Sep-2010 Andrew Thompson <thompsa@FreeBSD.org>

Reduce the need to accesss struct usb_device by providing functions to access
the product, manufacturer and serial strings.

Submitted by: Hans Petter Selasky


# d2d71ce7 02-Sep-2010 Andrew Thompson <thompsa@FreeBSD.org>

Add support for power mode filtering as some USB hardware does not support
power saving.

Submitted by: Hans Petter Selasky


Revision tags: release/8.1.0_cvs, release/8.1.0
# 95bf6530 12-Jun-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Merge svn+ssh://svn.freebsd.org/base/head@209086


# 1bdfff22 11-Jun-2010 Andriy Gapon <avg@FreeBSD.org>

fix a few cases where a string is passed via format argument instead of
via %s

Most of the cases looked harmless, but this is done for the sake of
correctness. In one case it even allowed to drop a

fix a few cases where a string is passed via format argument instead of
via %s

Most of the cases looked harmless, but this is done for the sake of
correctness. In one case it even allowed to drop an intermediate buffer.

Found by: clang
MFC after: 2 week

show more ...


# 7708106a 26-May-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Merge svn+ssh://svn.freebsd.org/base/head@208557


# 51c097f1 18-May-2010 Andrew Thompson <thompsa@FreeBSD.org>

MFC r208008

If a USB device is suspended and a USB set config request is issued when the
USB enumeration lock is locked, then the USB stack fails to resume the device
because locking the USB enum

MFC r208008

If a USB device is suspended and a USB set config request is issued when the
USB enumeration lock is locked, then the USB stack fails to resume the device
because locking the USB enumeration lock is part of the resume procedure. To
solve this issue a new lock is introduced which only protects the suspend and
resume callbacks, which can be dropped inside the usbd_do_request_flags()
function, to allow suspend and resume during so-called enumeration operations.

show more ...


# 2df1e9a6 13-May-2010 Andrew Thompson <thompsa@FreeBSD.org>

If a USB device is suspended and a USB set config request is issued when the
USB enumeration lock is locked, then the USB stack fails to resume the device
because locking the USB enumeration lock is

If a USB device is suspended and a USB set config request is issued when the
USB enumeration lock is locked, then the USB stack fails to resume the device
because locking the USB enumeration lock is part of the resume procedure. To
solve this issue a new lock is introduced which only protects the suspend and
resume callbacks, which can be dropped inside the usbd_do_request_flags()
function, to allow suspend and resume during so-called enumeration operations.

Submitted by: Hans Petter Selasky

show more ...


# 9307d8bd 08-May-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Merge svn+ssh://svn.freebsd.org/base/head@207793


# 31f57dc1 30-Apr-2010 Andrew Thompson <thompsa@FreeBSD.org>

MFC r207080

Use a more obvious prefix for the USB control (endpoint 0) transfers rather
than default_*.


# c955f362 30-Apr-2010 Andrew Thompson <thompsa@FreeBSD.org>

MFC r207079

Properly name the sxlocks, mutexes and condvars.


# ccd296df 30-Apr-2010 Andrew Thompson <thompsa@FreeBSD.org>

MFC r207078

Use SX_DUPOK rather than making the string unique.


# 176b25ad 30-Apr-2010 Andrew Thompson <thompsa@FreeBSD.org>

MFC r207020, r207027, r207072.

Change usb devd events from fake attach to a notify. The ugen device is not a
proper device_t so it faked the devctl event to appear like one, this is now a
notify

MFC r207020, r207027, r207072.

Change usb devd events from fake attach to a notify. The ugen device is not a
proper device_t so it faked the devctl event to appear like one, this is now a
notify which allows more information to be passed.

We notify for both the device attach/detach and for each usb interface. A devd
rule can now match on the interface properties, including composite devices
which may have a uvideo interface and also usound and possibly uhid too.

An example to match a umass device with a scsi subclass and BBB protocol would be

notify 100 {
match "system" "USB";
match "subsystem" "INTERFACE";
match "type" "ATTACH";
match "intclass" "0x08";
match "intsubclass" "0x06";
match "intprotocol" "0x50";
action ...
};

The old attach devctl event has been retained for the moment to make merging to
8.1 easier. This was never compatible with 7.x or earlier due to the ugen regex
change needed.

Document the new USB notification types.

show more ...


# a4bf5fb9 28-Apr-2010 Kirk McKusick <mckusick@FreeBSD.org>

Update to current version of head.


# 5b3bb704 23-Apr-2010 Andrew Thompson <thompsa@FreeBSD.org>

Use a more obvious prefix for the USB control (endpoint 0) transfers rather
than default_*.


# 91cd9240 23-Apr-2010 Andrew Thompson <thompsa@FreeBSD.org>

Properly name the sxlocks, mutexes and condvars.


# 0d92ac2a 22-Apr-2010 Andrew Thompson <thompsa@FreeBSD.org>

Use SX_DUPOK rather than making the string unique.


# 66390216 22-Apr-2010 Andrew Thompson <thompsa@FreeBSD.org>

Also add the usb mode to the devd string as the usb controller can work in both
host or device (gadget) modes.

Suggested by: HPS


# 3acd904d 21-Apr-2010 Andrew Thompson <thompsa@FreeBSD.org>

Change usb devd events from fake attach to a notify. The ugen device is not a
proper device_t so it faked the devctl event to appear like one, this is now a
notify which allows more information to be

Change usb devd events from fake attach to a notify. The ugen device is not a
proper device_t so it faked the devctl event to appear like one, this is now a
notify which allows more information to be passed.

We notify for both the device attach/detach and for each usb interface. A devd
rule can now match on the interface properties, including composite devices
which may have a uvideo interface and also usound and possibly uhid too.

An example to match a umass device with a scsi subclass and BBB protocol would be

notify 100 {
match "system" "USB";
match "subsystem" "INTERFACE";
match "type" "ATTACH";
match "intclass" "0x08";
match "intsubclass" "0x06";
match "intprotocol" "0x50";
action ...
};

The old attach devctl event has been retained for the moment to make merging to
8.1 easier. This was never compatible with 7.x or earlier due to the ugen regex
change needed.

Reviewed by: warner
MFC after: 1 week

show more ...


# 464b64f6 07-Apr-2010 Andrew Thompson <thompsa@FreeBSD.org>

MFC r205036

Implement USB kernel driver detach from userland.

Submitted by: Hans Petter Selasky


Revision tags: release/7.3.0_cvs, release/7.3.0
# dbf9f56d 17-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Merge svn+ssh://svn.freebsd.org/base/head@205234


# a7aca4cd 11-Mar-2010 Andrew Thompson <thompsa@FreeBSD.org>

Implement USB kernel driver detach from userland.

Submitted by: Hans Petter Selasky


# 1a0fda2b 04-Mar-2010 Dag-Erling Smørgrav <des@FreeBSD.org>

IFH@204581


# 9d25e838 17-Jan-2010 Andrew Thompson <thompsa@FreeBSD.org>

MFC r201681

Improve u3g device ejecting by providing additional methods for the eject
command in the usb_msctest routines, as well as a general tidyup.


12345678910>>...13