Re: svn commit: r228711 - head/sys/dev/usb/controller

2012-01-02 Thread Hans Petter Selasky
On Monday 02 January 2012 23:42:52 Garrett Cooper wrote: > On Mon, Dec 19, 2011 at 7:35 AM, Hans Petter Selasky > > wrote: > > Author: hselasky > > Date: Mon Dec 19 15:35:05 2011 > > New Revision: 228711 > > URL: http://svn.freebsd.org/changeset/base/228711 &g

svn commit: r229369 - stable/9/sys/dev/usb/controller

2012-01-03 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jan 3 08:31:47 2012 New Revision: 229369 URL: http://svn.freebsd.org/changeset/base/229369 Log: MFC r229317: Fix for USB suspend and resume. Modified: stable/9/sys/dev/usb/controller/usb_controller.c Directory Properties: stable/9/sys/ (props changed) stabl

svn commit: r229370 - in stable/8/sys: conf dev/usb dev/usb/controller mips/atheros mips/cavium/usb mips/rmi modules/usb modules/usb/avr32dci

2012-01-03 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jan 3 09:15:54 2012 New Revision: 229370 URL: http://svn.freebsd.org/changeset/base/229370 Log: MFC r228483, r228640, r228709, r228711, r228723 and r229086: - Implement better support for USB controller suspend and resume. - Add code to wait for USB shutdown to

svn commit: r229371 - in stable/8/sys: conf dev/usb

2012-01-03 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jan 3 09:17:50 2012 New Revision: 229371 URL: http://svn.freebsd.org/changeset/base/229371 Log: MFC r228758: - Fix for race against user-space applications trying to change the configuration on USB HUBs. PR: kern/163091 Modified: stable/8/sys/dev/usb

svn commit: r214726 - head/sys/dev/usb

2010-11-03 Thread Hans Petter Selasky
Author: hselasky Date: Wed Nov 3 07:51:33 2010 New Revision: 214726 URL: http://svn.freebsd.org/changeset/base/214726 Log: Clean up leftover USB device ID after r213856. This fixes: options USB_VERBOSE Submitted by: Lucius Windschuh Approved by: thompsa (mentor) Modified: head/sys/

svn commit: r214800 - in head/sys/dev/usb: . quirk

2010-11-04 Thread Hans Petter Selasky
Author: hselasky Date: Thu Nov 4 19:05:35 2010 New Revision: 214800 URL: http://svn.freebsd.org/changeset/base/214800 Log: Add new USB quirk. Submitted by: Dmitry Luhtionov Approved by: thompsa (mentor) Modified: head/sys/dev/usb/quirk/usb_quirk.c head/sys/dev/usb/usbdevs Modified

svn commit: r214804 - head/sys/dev/usb

2010-11-04 Thread Hans Petter Selasky
Author: hselasky Date: Thu Nov 4 19:24:21 2010 New Revision: 214804 URL: http://svn.freebsd.org/changeset/base/214804 Log: Add code to warm reset a USB 3.0 port. Approved by: thompsa (mentor) Modified: head/sys/dev/usb/usb_request.c head/sys/dev/usb/usb_request.h Modified: head/sys/

svn commit: r215253 - head/lib/libusb

2010-11-13 Thread Hans Petter Selasky
Author: hselasky Date: Sat Nov 13 19:25:11 2010 New Revision: 215253 URL: http://svn.freebsd.org/changeset/base/215253 Log: Fix LibUSB v1.0 compliancy. 1) We need to allow the USB callback to free the USB transfer itself. 2) The USB transfer buffer should only be automatically freed when

svn commit: r215254 - head/sys/dev/usb/input

2010-11-13 Thread Hans Petter Selasky
Author: hselasky Date: Sat Nov 13 19:26:45 2010 New Revision: 215254 URL: http://svn.freebsd.org/changeset/base/215254 Log: Fix compiler warnings. Submitted by: Alexander Best (arundel) Approved by: thompsa (mentor) Modified: head/sys/dev/usb/input/uhid.c Modified: head/sys/dev/usb/i

svn commit: r215450 - head/lib/libusb

2010-11-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Nov 18 08:32:47 2010 New Revision: 215450 URL: http://svn.freebsd.org/changeset/base/215450 Log: Correct description of the return values of the LibUSB v1.0 libusb_control_transfer() function. PR: usb/151851 Submitted by: HIROSHI OOTA Approved by:

Re: svn commit: r215649 - in head/sys: conf dev/usb dev/usb/controller modules/usb/usb

2010-11-21 Thread Hans Petter Selasky
On Monday 22 November 2010 02:11:28 Weongyo Jeong wrote: > Author: weongyo > Date: Mon Nov 22 01:11:28 2010 > New Revision: 215649 > URL: http://svn.freebsd.org/changeset/base/215649 > > Log: > Adds a USB packet filter feature to the stack that it could capture > packets which go through each

Re: svn commit: r215649 - in head/sys: conf dev/usb dev/usb/controller modules/usb/usb

2010-11-21 Thread Hans Petter Selasky
On Monday 22 November 2010 07:12:20 Peter Grehan wrote: > > I plan some follow-up patches to improve the USB PF-solution and to make > > it a loadable kernel module this week. > > Could the USB support in libpcap somehow hook into this ? > > later, > > Peter. Yes, I plan to look into this, be

Re: svn commit: r215803 - head/usr.sbin/usbdump

2010-11-24 Thread Hans Petter Selasky
On Wednesday 24 November 2010 20:15:26 Weongyo Jeong wrote: > Author: weongyo > Date: Wed Nov 24 19:15:26 2010 > New Revision: 215803 > URL: http://svn.freebsd.org/changeset/base/215803 > > Log: > As a refection of r215802 it should use BPF interfaces because the > duplication code of USB pf i

Re: svn commit: r215802 - in head/sys/dev/usb: . controller

2010-11-24 Thread Hans Petter Selasky
On Wednesday 24 November 2010 20:11:32 Weongyo Jeong wrote: > Author: weongyo > Date: Wed Nov 24 19:11:32 2010 > New Revision: 215802 > URL: http://svn.freebsd.org/changeset/base/215802 > > Log: > Removes all duplicated code with BPF that it's greatly simplified and > take all benefits wheneve

Re: svn commit: r215810 - head/sys/dev/usb

2010-11-25 Thread Hans Petter Selasky
On Thursday 25 November 2010 04:02:53 Weongyo Jeong wrote: > Author: weongyo > Date: Thu Nov 25 03:02:53 2010 > New Revision: 215810 > URL: http://svn.freebsd.org/changeset/base/215810 > > Log: > Assigning the unit number for each interfaces could not use ubus->parent > because it could differ

Re: svn commit: r215812 - in head/sys/dev/usb: . controller

2010-11-25 Thread Hans Petter Selasky
On Thursday 25 November 2010 04:30:43 Weongyo Jeong wrote: > Author: weongyo > Date: Thu Nov 25 03:30:43 2010 > New Revision: 215812 > URL: http://svn.freebsd.org/changeset/base/215812 > > Log: > Handles the unit number correctly that the previous commit had a problem > (wrong unit number for

svn commit: r216072 - head/sys/dev/usb

2010-11-30 Thread Hans Petter Selasky
Author: hselasky Date: Tue Nov 30 08:25:57 2010 New Revision: 216072 URL: http://svn.freebsd.org/changeset/base/216072 Log: We need to define a cdev variable associated with each USB device, hence existing applications like webcamd are expecting that. This problem was introduced by SVN chang

svn commit: r216249 - head/sys/dev/usb

2010-12-07 Thread Hans Petter Selasky
Author: hselasky Date: Tue Dec 7 08:20:20 2010 New Revision: 216249 URL: http://svn.freebsd.org/changeset/base/216249 Log: Re-add a status check which sneaked out during r214804. This change can fix some USB error messages showing up during bootup. MFC after:3 days Approved by:

Re: svn commit: r216284 - head/sys/dev/usb/net

2010-12-07 Thread Hans Petter Selasky
On Wednesday 08 December 2010 02:24:05 Pyun YongHyeon wrote: > - if (m->m_pkthdr.len > MCLBYTES) { > - m->m_pkthdr.len = MCLBYTES; > - } You are sure that no packets passed to this code is bigger than MCLBYTES minus overhea

svn commit: r216371 - head/sys/kern

2010-12-11 Thread Hans Petter Selasky
Author: hselasky Date: Sat Dec 11 08:44:10 2010 New Revision: 216371 URL: http://svn.freebsd.org/changeset/base/216371 Log: Fix race in devfs by using LIST_FIRST() instead of LIST_FOREACH_SAFE() when freeing the devfs private data entries. Reviewed by: kib MFC after:3 days Appr

svn commit: r224903 - head/lib/libusb

2011-08-16 Thread Hans Petter Selasky
Author: hselasky Date: Tue Aug 16 08:34:16 2011 New Revision: 224903 URL: http://svn.freebsd.org/changeset/base/224903 Log: Add missing function to get device speed to the LibUSB v1.0 API. MFC after:1 week Approved by: re (kib) Modified: head/lib/libusb/libusb.h head/lib/libusb/

svn commit: r224917 - head/lib/libusb

2011-08-16 Thread Hans Petter Selasky
Author: hselasky Date: Tue Aug 16 21:04:04 2011 New Revision: 224917 URL: http://svn.freebsd.org/changeset/base/224917 Log: Update LibUSB v1.0 manual page: - fix some minor spelling - fix some style - add description of new function MFC after:1 week Approved by: re (kib) Mo

svn commit: r224960 - stable/8/sys/dev/usb

2011-08-18 Thread Hans Petter Selasky
Author: hselasky Date: Thu Aug 18 08:25:27 2011 New Revision: 224960 URL: http://svn.freebsd.org/changeset/base/224960 Log: MFC r224777: Use synchronous device destruction instead of asynchronous. Modified: stable/8/sys/dev/usb/usb_dev.c stable/8/sys/dev/usb/usb_device.c stable/8/sys/de

svn commit: r225000 - head/sys/dev/usb

2011-08-19 Thread Hans Petter Selasky
Author: hselasky Date: Fri Aug 19 09:01:34 2011 New Revision: 225000 URL: http://svn.freebsd.org/changeset/base/225000 Log: Add sysctl to not reset the device on clear stall failures, to temporarily mitigate problems with VMs. Approved by:re (kib) MFC after: 1 week Modified:

Re: svn commit: r224903 - head/lib/libusb

2011-08-20 Thread Hans Petter Selasky
On Wednesday 17 August 2011 02:38:22 Sean C. Farley wrote: > On Tue, 16 Aug 2011, Hans Petter Selasky wrote: > > +enum libusb_speed > > +libusb_get_device_speed(libusb_device *dev) > > +{ > > + if (dev == NULL) > > + return (0); /* shou

svn commit: r225035 - head/lib/libusb

2011-08-20 Thread Hans Petter Selasky
Author: hselasky Date: Sat Aug 20 14:04:16 2011 New Revision: 225035 URL: http://svn.freebsd.org/changeset/base/225035 Log: Use correct enum instead of constant value. MFC after:1 week Spotted by: scf @ Approved by: re (kib) Modified: head/lib/libusb/libusb10.c Modified: head

svn commit: r225037 - in head: share/man/man4 sys/dev/usb sys/dev/usb/net

2011-08-20 Thread Hans Petter Selasky
Author: hselasky Date: Sat Aug 20 14:21:32 2011 New Revision: 225037 URL: http://svn.freebsd.org/changeset/base/225037 Log: Add new USB ID. Approved by:re (kib) MFC after: 1 week PR: usb/159836 Modified: head/share/man/man4/uhso.4 head/sys/dev/usb/net/uhso.c he

svn commit: r225038 - head/sys/dev/usb

2011-08-20 Thread Hans Petter Selasky
Author: hselasky Date: Sat Aug 20 15:12:53 2011 New Revision: 225038 URL: http://svn.freebsd.org/changeset/base/225038 Log: Fix for recursive locking in usb_close() after change 224777. Approved by:re (kib) MFC after: 3 days Reported by: kwm @ Modified: head/sys/dev/usb/usb

svn commit: r225041 - in head/sys/dev/usb: . serial

2011-08-20 Thread Hans Petter Selasky
Author: hselasky Date: Sat Aug 20 16:21:40 2011 New Revision: 225041 URL: http://svn.freebsd.org/changeset/base/225041 Log: Add new USB ID to u3g driver. Approved by:re (kib) MFC after: 1 week PR: usb/159919 Modified: head/sys/dev/usb/serial/u3g.c head/sys/dev/us

svn commit: r225090 - head/lib/libusb

2011-08-22 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 22 21:05:39 2011 New Revision: 225090 URL: http://svn.freebsd.org/changeset/base/225090 Log: Whitespace corrections for LibUSB manual page (1/2). MFC after:1 week Approved by: re (kib) PR: docs/159898 Modified: head/lib/libusb/libusb.3 M

svn commit: r225091 - head/lib/libusb

2011-08-22 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 22 21:10:50 2011 New Revision: 225091 URL: http://svn.freebsd.org/changeset/base/225091 Log: Spelling corrections for LibUSB manual page (2/2). MFC after:1 week Approved by: re (kib) PR: docs/159898 Modified: head/lib/libusb/libusb.3 Mod

svn commit: r225102 - stable/8/lib/libusb

2011-08-23 Thread Hans Petter Selasky
Author: hselasky Date: Tue Aug 23 07:35:21 2011 New Revision: 225102 URL: http://svn.freebsd.org/changeset/base/225102 Log: MFC r224903, r224917, r225035, r225090, r225091: - Add missing API function to the LibUSB v1.0 API. - Update LibUSB v1.0 manual page. PR: docs/159898 Modified:

svn commit: r225103 - stable/8/sys/dev/usb

2011-08-23 Thread Hans Petter Selasky
Author: hselasky Date: Tue Aug 23 07:42:04 2011 New Revision: 225103 URL: http://svn.freebsd.org/changeset/base/225103 Log: MFC r225038: Fix for recursive locking in usb_close() after r224777 (9-current) and r224960 (8-stable). Modified: stable/8/sys/dev/usb/usb_dev.c Directory Properties:

svn commit: r225186 - stable/8/sys/dev/usb

2011-08-26 Thread Hans Petter Selasky
Author: hselasky Date: Fri Aug 26 07:38:40 2011 New Revision: 225186 URL: http://svn.freebsd.org/changeset/base/225186 Log: MFC r225000: USB clear stall fix for VM's. Modified: stable/8/sys/dev/usb/usb_request.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/in

svn commit: r225213 - in stable/8: share/man/man4 sys/dev/usb sys/dev/usb/net sys/dev/usb/serial

2011-08-27 Thread Hans Petter Selasky
Author: hselasky Date: Sat Aug 27 14:03:27 2011 New Revision: 225213 URL: http://svn.freebsd.org/changeset/base/225213 Log: MFC r225037 and r225041: Add new USB IDs. PR: usb/159919, usb/159836 Modified: stable/8/share/man/man4/uhso.4 stable/8/sys/dev/usb/net/uhso.c stable/8/sys/d

Re: svn commit: r223989 - head/sys/dev/usb/input

2011-08-29 Thread Hans Petter Selasky
On Monday 29 August 2011 15:25:08 Andriy Gapon wrote: > Another question - why ukbd_yield() is needed? > Why kern_yield() would not be good here? > What are the priority manipulations in ukbd_yield? > Not saying that the code is incorrect, just that this is not explained in > the commit message. T

Re: svn commit: r223989 - head/sys/dev/usb/input

2011-08-29 Thread Hans Petter Selasky
On Monday 29 August 2011 16:33:00 Andriy Gapon wrote: > Not sure if this answers my question, which is not about pause vs > ukbd_yield, but is about ukbd_yield vs kern_yield. > In other words, why you couldn't simply use kern_yield where you used > ukbd_yield? Is this a new function. I think I use

svn commit: r225350 - in head/sys: dev/usb dev/usb/quirk dev/usb/storage sys

2011-09-02 Thread Hans Petter Selasky
Author: hselasky Date: Fri Sep 2 18:50:44 2011 New Revision: 225350 URL: http://svn.freebsd.org/changeset/base/225350 Log: This patch adds automatic detection of USB mass storage devices which does not support the no synchronize cache SCSI command. The __FreeBSD_version version macro has

svn commit: r225400 - head/sys/dev/usb

2011-09-05 Thread Hans Petter Selasky
== --- head/sys/dev/usb/usb_msctest.c Mon Sep 5 12:39:15 2011 (r225399) +++ head/sys/dev/usb/usb_msctest.c Mon Sep 5 14:37:59 2011 (r225400) @@ -1,6 +1,6 @@ /* $FreeBSD$ */ /*- - * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. + * Copyright (c

svn commit: r225414 - head/sys/dev/sound/usb

2011-09-06 Thread Hans Petter Selasky
Author: hselasky Date: Tue Sep 6 08:15:55 2011 New Revision: 225414 URL: http://svn.freebsd.org/changeset/base/225414 Log: Fix precedence warning when compiling kernel with clang. Approved by: re (kib) Submitted by: dim MFC after:1 week Modified: head/sys/dev/sound/usb/uaudio.c

svn commit: r225458 - in stable/8/sys: dev/usb dev/usb/quirk dev/usb/storage sys

2011-09-09 Thread Hans Petter Selasky
57) +++ stable/8/sys/dev/usb/usb_msctest.c Fri Sep 9 07:44:14 2011 (r225458) @@ -1,6 +1,6 @@ /* $FreeBSD$ */ /*- - * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. + * Copyright (c) 2008,2011 Hans Petter Selasky. All rights reserved. * * Redistribution and use in s

Re: svn commit: r225458 - in stable/8/sys: dev/usb dev/usb/quirk dev/usb/storage sys

2011-09-10 Thread Hans Petter Selasky
On Saturday 10 September 2011 12:54:08 Robert Watson wrote: > On Fri, 9 Sep 2011, Hans Petter Selasky wrote: > > Log: > > MFC r225350 and r225400: > > > > This patch adds automatic detection of USB mass storage devices > > which does not support the

Request for patch approval (Re: svn commit: r225458 - in stable/8/sys: dev/usb dev/usb/quirk dev/usb/storage sys)

2011-09-10 Thread Hans Petter Selasky
> Right -- exactly my point. If this change breaks third-party compiled USB > device drivers, then our current approach to device driver KBIs does not > allow it to be MFC'd in this form. Are there ways you can reformulate the > change to avoid breaking those drivers? Sometimes this can be done by

Re: Request for patch approval (Re: svn commit: r225458 - in stable/8/sys: dev/usb dev/usb/quirk dev/usb/storage sys)

2011-09-10 Thread Hans Petter Selasky
On Saturday 10 September 2011 16:28:12 Kostik Belousov wrote: > On Sat, Sep 10, 2011 at 03:40:16PM +0200, Hans Petter Selasky wrote: > > > Right -- exactly my point. If this change breaks third-party compiled > > > USB device drivers, then our current approach to device drive

svn commit: r225469 - in head/sys: dev/usb dev/usb/quirk sys

2011-09-10 Thread Hans Petter Selasky
Author: hselasky Date: Sat Sep 10 15:55:36 2011 New Revision: 225469 URL: http://svn.freebsd.org/changeset/base/225469 Log: Refactor auto-quirk solution so that we break as few external drivers as possible. PR: usb/160299 Approved by: re (kib) Suggested by: rwatson MFC af

svn commit: r225470 - in stable/8/sys: dev/usb dev/usb/quirk sys

2011-09-10 Thread Hans Petter Selasky
Author: hselasky Date: Sat Sep 10 16:52:15 2011 New Revision: 225470 URL: http://svn.freebsd.org/changeset/base/225470 Log: MFC r225469: Refactor auto-quirk solution so that we break as few external drivers as possible. PR: usb/160299 Suggested by: rwatson Modified: st

svn commit: r225471 - stable/8/sys/dev/sound/usb

2011-09-10 Thread Hans Petter Selasky
Author: hselasky Date: Sat Sep 10 16:56:38 2011 New Revision: 225471 URL: http://svn.freebsd.org/changeset/base/225471 Log: MFC r225414: Fix precedence warning when compiling kernel with clang. Modified: stable/8/sys/dev/sound/usb/uaudio.c Directory Properties: stable/8/sys/ (props chan

svn commit: r225556 - head/sys/dev/usb

2011-09-14 Thread Hans Petter Selasky
Author: hselasky Date: Wed Sep 14 15:16:53 2011 New Revision: 225556 URL: http://svn.freebsd.org/changeset/base/225556 Log: Reduce USB memory usage during enumeration. We are allocating some kilobytes of extra memory during USB device enumeration. This does not change alot under FreeBSD,

svn commit: r225659 - head/lib/libusb

2011-09-19 Thread Hans Petter Selasky
Author: hselasky Date: Mon Sep 19 08:52:06 2011 New Revision: 225659 URL: http://svn.freebsd.org/changeset/base/225659 Log: Implement missing USB debug information functions. Approved by: re (kib) MFC after:1 week Modified: head/lib/libusb/Makefile head/lib/libusb/libusb.3 hea

svn commit: r225695 - head/sys/dev/usb

2011-09-20 Thread Hans Petter Selasky
Author: hselasky Date: Tue Sep 20 14:17:58 2011 New Revision: 225695 URL: http://svn.freebsd.org/changeset/base/225695 Log: Avoid starting the USB transfer if an error is already pending. This change fixes a race in device side mode during clear-stall from host, which can cause data to be se

svn commit: r225712 - stable/8/sys/dev/usb

2011-09-21 Thread Hans Petter Selasky
Author: hselasky Date: Wed Sep 21 07:31:16 2011 New Revision: 225712 URL: http://svn.freebsd.org/changeset/base/225712 Log: MFC r225556: Reduce USB memory usage during enumeration. Modified: stable/8/sys/dev/usb/usb_msctest.c Directory Properties: stable/8/sys/ (props changed) stable/

svn commit: r225759 - stable/8/lib/libusb

2011-09-26 Thread Hans Petter Selasky
Author: hselasky Date: Mon Sep 26 07:38:01 2011 New Revision: 225759 URL: http://svn.freebsd.org/changeset/base/225759 Log: MFC r225659: Implement missing USB debug information functions. Modified: stable/8/lib/libusb/Makefile stable/8/lib/libusb/libusb.3 stable/8/lib/libusb/libusb.h

svn commit: r225777 - in head/sys/dev/usb: . quirk

2011-09-27 Thread Hans Petter Selasky
Author: hselasky Date: Tue Sep 27 07:06:02 2011 New Revision: 225777 URL: http://svn.freebsd.org/changeset/base/225777 Log: Add quirks for some USB mass storage devices which doesn't respond after trying to query the synchronize cache support. Submitted by: Keith White PR: usb

svn commit: r225779 - stable/8/sys/dev/usb

2011-09-27 Thread Hans Petter Selasky
Author: hselasky Date: Tue Sep 27 07:19:01 2011 New Revision: 225779 URL: http://svn.freebsd.org/changeset/base/225779 Log: MFC r225695: Fix minor race in device side mode. Modified: stable/8/sys/dev/usb/usb_transfer.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/a

svn commit: r226219 - head/sys/dev/usb/serial

2011-10-10 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 10 15:54:44 2011 New Revision: 226219 URL: http://svn.freebsd.org/changeset/base/226219 Log: Bugfix: The ucom detach function is sometimes called on zeroed structures. Check for this case and just return, so that the UCOM unit number zero is not accidentially f

svn commit: r226220 - head/lib/libusb

2011-10-10 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 10 16:13:33 2011 New Revision: 226220 URL: http://svn.freebsd.org/changeset/base/226220 Log: Fix how libusb20_dev_kernel_driver_active() and libusb_dev_kernel_driver_active() works. In case of libusb20 the manpage was wrong and in case of libusb10 the impleme

svn commit: r226221 - in head/sys/dev/usb: . quirk

2011-10-10 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 10 16:26:06 2011 New Revision: 226221 URL: http://svn.freebsd.org/changeset/base/226221 Log: Add USB mass storage quirk for device that emits errors after the automatic no synchronize cache detection. Submitted by: Scott Allendorf MFC after:3 days Mod

svn commit: r226281 - stable/8/sys/dev/usb/serial

2011-10-11 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 12 06:40:21 2011 New Revision: 226281 URL: http://svn.freebsd.org/changeset/base/226281 Log: MFC r226219 Fix panic due to re-using in-use modem unit number. Modified: stable/8/sys/dev/usb/serial/usb_serial.c Directory Properties: stable/8/sys/ (props chang

svn commit: r226282 - stable/8/lib/libusb

2011-10-11 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 12 06:40:49 2011 New Revision: 226282 URL: http://svn.freebsd.org/changeset/base/226282 Log: MFC r226220 Fix libusb compliance. Modified: stable/8/lib/libusb/libusb.3 stable/8/lib/libusb/libusb10.c stable/8/lib/libusb/libusb20.3 Directory Properties: sta

svn commit: r226306 - stable/9/sys/dev/usb/serial

2011-10-12 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 12 15:43:22 2011 New Revision: 226306 URL: http://svn.freebsd.org/changeset/base/226306 Log: MFC r226219 Fix panic due to re-using in-use modem unit number. Approved by: re (kib) Modified: stable/9/sys/dev/usb/serial/usb_serial.c Directory Properties:

svn commit: r226307 - stable/9/lib/libusb

2011-10-12 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 12 15:43:56 2011 New Revision: 226307 URL: http://svn.freebsd.org/changeset/base/226307 Log: MFC r226220 Fix libusb compliance. Approved by: re (kib) Modified: stable/9/lib/libusb/libusb.3 stable/9/lib/libusb/libusb10.c stable/9/lib/libusb/libusb20.3

svn commit: r226474 - head/usr.sbin/usbdump

2011-10-17 Thread Hans Petter Selasky
Author: hselasky Date: Mon Oct 17 15:54:20 2011 New Revision: 226474 URL: http://svn.freebsd.org/changeset/base/226474 Log: Make the usbdump utility work again by using the correct BPF structures. MFC after:3 days Modified: head/usr.sbin/usbdump/usbdump.c Modified: head/usr.sbin/usb

svn commit: r226534 - in head: etc/devd sys/dev/usb sys/dev/usb/wlan

2011-10-19 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 19 10:09:01 2011 New Revision: 226534 URL: http://svn.freebsd.org/changeset/base/226534 Log: Add new USB IDs to RUN driver. Update usb.conf. PR: usb/161798 MFC after:3 days Modified: head/etc/devd/usb.conf head/sys/dev/usb/usbdevs head/s

svn commit: r226565 - stable/9/usr.sbin/usbdump

2011-10-20 Thread Hans Petter Selasky
Author: hselasky Date: Thu Oct 20 14:45:16 2011 New Revision: 226565 URL: http://svn.freebsd.org/changeset/base/226565 Log: MFC r226474: Make the usbdump utility work again by using the correct BPF structures. Approved by: re (kib) Modified: stable/9/usr.sbin/usbdump/usbdump.c Directo

svn commit: r226566 - stable/8/usr.sbin/usbdump

2011-10-20 Thread Hans Petter Selasky
Author: hselasky Date: Thu Oct 20 14:56:44 2011 New Revision: 226566 URL: http://svn.freebsd.org/changeset/base/226566 Log: MFC r226474: Make the usbdump utility work again by using the correct BPF structures. Modified: stable/8/usr.sbin/usbdump/usbdump.c Directory Properties: stable/8/us

svn commit: r226803 - in head/sys/dev/usb: . controller

2011-10-26 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 26 17:43:27 2011 New Revision: 226803 URL: http://svn.freebsd.org/changeset/base/226803 Log: Fix suspend and resume of FULL and HIGH speed USB devices in the generic XHCI driver. There appears to be some minor logic missing for this feature to work. MFC af

svn commit: r226903 - head/sys/dev/usb

2011-10-29 Thread Hans Petter Selasky
Author: hselasky Date: Sat Oct 29 12:32:13 2011 New Revision: 226903 URL: http://svn.freebsd.org/changeset/base/226903 Log: Improve USB mass storage quirk auto detection. MFC after:3 days Modified: head/sys/dev/usb/usb_device.c head/sys/dev/usb/usb_msctest.c Modified: head/sys/dev

svn commit: r226904 - in stable/9/sys/dev/usb: . controller

2011-10-29 Thread Hans Petter Selasky
Author: hselasky Date: Sat Oct 29 12:39:05 2011 New Revision: 226904 URL: http://svn.freebsd.org/changeset/base/226904 Log: MFC r226803: Fix suspend and resume of non-super-speed USB devices in the generic XHCI driver. There appears to be some minor logic missing for this feature to work.

svn commit: r226984 - in stable/8: etc/devd sys/dev/usb sys/dev/usb/quirk sys/dev/usb/wlan

2011-11-01 Thread Hans Petter Selasky
Author: hselasky Date: Tue Nov 1 08:24:01 2011 New Revision: 226984 URL: http://svn.freebsd.org/changeset/base/226984 Log: MFC r226903, r225777, r226221 and r226534: Add some new USB device IDs and some USB device quirks. Improve the USB mass storage auto quirk detection. PR:

svn commit: r227007 - in stable/9: etc/devd sys/dev/usb sys/dev/usb/quirk sys/dev/usb/wlan

2011-11-01 Thread Hans Petter Selasky
Author: hselasky Date: Tue Nov 1 22:00:49 2011 New Revision: 227007 URL: http://svn.freebsd.org/changeset/base/227007 Log: MFC r226903, r225777, r226221 and r226534: Add some new USB device IDs and some USB device quirks. Improve the USB mass storage auto quirk detection. PR:

svn commit: r227075 - head/sys/dev/usb

2011-11-04 Thread Hans Petter Selasky
Author: hselasky Date: Fri Nov 4 09:19:18 2011 New Revision: 227075 URL: http://svn.freebsd.org/changeset/base/227075 Log: Fix for panic at USB controller attach failure during cold boot. Reported by: Jan Henrik Sylvester, Xin LI and more. MFC after:3 days Modified: head/sys/dev/

svn commit: r227108 - head/sys/dev/usb/serial

2011-11-05 Thread Hans Petter Selasky
Author: hselasky Date: Sat Nov 5 12:01:51 2011 New Revision: 227108 URL: http://svn.freebsd.org/changeset/base/227108 Log: Implement support for modem control lines. Don't short terminate transmitted BULK data. Assume that the chip reads one USB packet at a time. PR: usb/1623

svn commit: r227216 - stable/9/sys/dev/usb

2011-11-06 Thread Hans Petter Selasky
Author: hselasky Date: Sun Nov 6 15:06:04 2011 New Revision: 227216 URL: http://svn.freebsd.org/changeset/base/227216 Log: MFC r227075: Fix for panic at USB controller attach failure during cold boot. Approved by: re (kib) Modified: stable/9/sys/dev/usb/usb_process.c Directory Proper

svn commit: r227217 - stable/8/sys/dev/usb

2011-11-06 Thread Hans Petter Selasky
Author: hselasky Date: Sun Nov 6 15:13:01 2011 New Revision: 227217 URL: http://svn.freebsd.org/changeset/base/227217 Log: MFC r227075: Fix for panic at USB controller attach failure during cold boot. Modified: stable/8/sys/dev/usb/usb_process.c Directory Properties: stable/8/sys/ (pro

svn commit: r227285 - head/sys/dev/usb/serial

2011-11-06 Thread Hans Petter Selasky
Author: hselasky Date: Sun Nov 6 23:11:30 2011 New Revision: 227285 URL: http://svn.freebsd.org/changeset/base/227285 Log: Add support for new USB modem protocol. PR: usb/159919 MFC after:1 week Modified: head/sys/dev/usb/serial/umodem.c Modified: head/sys/dev/usb/seria

Re: svn commit: r227217 - stable/8/sys/dev/usb

2011-11-06 Thread Hans Petter Selasky
On Sunday 06 November 2011 21:38:00 Marius Strobl wrote: > On Sun, Nov 06, 2011 at 08:47:43PM +0100, Marius Strobl wrote: > > On Sun, Nov 06, 2011 at 03:13:02PM +0000, Hans Petter Selasky wrote: > > > Author: hselasky > > > Date: Sun Nov 6 15:13:01 2011 > > >

svn commit: r227286 - head/sys/dev/usb

2011-11-06 Thread Hans Petter Selasky
Author: hselasky Date: Sun Nov 6 23:26:26 2011 New Revision: 227286 URL: http://svn.freebsd.org/changeset/base/227286 Log: Fix build breakage for 8-stable and older. MFC after:0 days Modified: head/sys/dev/usb/usb_process.c Modified: head/sys/dev/usb/usb_process.c =

svn commit: r227287 - stable/8/sys/dev/usb

2011-11-06 Thread Hans Petter Selasky
Author: hselasky Date: Sun Nov 6 23:34:40 2011 New Revision: 227287 URL: http://svn.freebsd.org/changeset/base/227287 Log: MFC r227286: Fix kernel build breakage of 8-stable. Reported by: Marius Strobl Modified: stable/8/sys/dev/usb/usb_process.c Directory Properties: stable/8/sys/

svn commit: r227383 - head/sys/dev/usb/serial

2011-11-09 Thread Hans Petter Selasky
Author: hselasky Date: Wed Nov 9 09:15:57 2011 New Revision: 227383 URL: http://svn.freebsd.org/changeset/base/227383 Log: Some minor corrections to a modem driver. PR: usb/162307 MFC after:3 days Modified: head/sys/dev/usb/serial/uslcom.c Modified: head/sys/dev/usb/ser

svn commit: r227396 - in head/sys/dev/usb: . controller

2011-11-09 Thread Hans Petter Selasky
Author: hselasky Date: Wed Nov 9 18:11:29 2011 New Revision: 227396 URL: http://svn.freebsd.org/changeset/base/227396 Log: Fix size of USB 3.0 descriptor field. MFC after:3 days Modified: head/sys/dev/usb/controller/xhci.c head/sys/dev/usb/usb.h Modified: head/sys/dev/usb/control

svn commit: r227401 - in head/sys/dev/usb: . controller

2011-11-09 Thread Hans Petter Selasky
Author: hselasky Date: Wed Nov 9 18:48:36 2011 New Revision: 227401 URL: http://svn.freebsd.org/changeset/base/227401 Log: Fix size of USB 3.0 descriptor field. MFC after:3 days Modified: head/sys/dev/usb/controller/xhci.c head/sys/dev/usb/usb.h Modified: head/sys/dev/usb/control

svn commit: r227404 - head/lib/libusb

2011-11-09 Thread Hans Petter Selasky
Author: hselasky Date: Wed Nov 9 19:03:26 2011 New Revision: 227404 URL: http://svn.freebsd.org/changeset/base/227404 Log: Add definition of some USB 3.0 descriptors to libusb 1.0 and libusb 2.0. Some header file parts of this patch were taken from a patch submitted by Maya Erez to the Lib

svn commit: r227461 - in head/sys/dev/usb: . controller net serial storage template wlan

2011-11-12 Thread Hans Petter Selasky
Author: hselasky Date: Sat Nov 12 08:16:45 2011 New Revision: 227461 URL: http://svn.freebsd.org/changeset/base/227461 Log: Style change. - Make it easier to port the USB code to other platforms by only using one set of memory functions for clearing and copying memory. None of the memory c

svn commit: r227462 - head/sys/dev/usb/storage

2011-11-12 Thread Hans Petter Selasky
Author: hselasky Date: Sat Nov 12 08:19:36 2011 New Revision: 227462 URL: http://svn.freebsd.org/changeset/base/227462 Log: Enable power save mode for the USB storage device driver. MFC after:1 week Modified: head/sys/dev/usb/storage/ustorage_fs.c Modified: head/sys/dev/usb/storage/

svn commit: r227463 - in head/sys/dev/usb: . serial

2011-11-12 Thread Hans Petter Selasky
Author: hselasky Date: Sat Nov 12 08:40:52 2011 New Revision: 227463 URL: http://svn.freebsd.org/changeset/base/227463 Log: - This patch adds custom IOCTLs to read and write the 4 GPIO pins on the cp2103 usb-to-serial chip. - This patch also makes the line status polling asynchronous, to red

svn commit: r227541 - head/sys/dev/usb/controller

2011-11-15 Thread Hans Petter Selasky
Author: hselasky Date: Tue Nov 15 20:48:57 2011 New Revision: 227541 URL: http://svn.freebsd.org/changeset/base/227541 Log: Some brands of XHCI controllers needs more time to reset. Reported by: Jan Henrik Sylvester MFC after:1 week Modified: head/sys/dev/usb/controller/xhci.c Mo

Re: svn commit: r227541 - head/sys/dev/usb/controller

2011-11-15 Thread Hans Petter Selasky
On Tuesday 15 November 2011 21:54:28 m...@freebsd.org wrote: > On Tue, Nov 15, 2011 at 12:48 PM, Hans Petter Selasky > > wrote: > > Author: hselasky > > Date: Tue Nov 15 20:48:57 2011 > > New Revision: 227541 > > URL: http://svn.freebsd.org/changeset/base/227541

Re: svn commit: r227541 - head/sys/dev/usb/controller

2011-11-15 Thread Hans Petter Selasky
On Tuesday 15 November 2011 21:54:28 m...@freebsd.org wrote: > Is there some reason these functions aren't asking for a delay in > terms of milli- or microseconds, and converting to hz internally? There is no strong reason for this except, that when everything is computed in system ticks, there i

Re: svn commit: r227541 - head/sys/dev/usb/controller

2011-11-15 Thread Hans Petter Selasky
On Tuesday 15 November 2011 22:20:18 m...@freebsd.org wrote: > On Tue, Nov 15, 2011 at 1:02 PM, Hans Petter Selasky wrote: > > For USB compliant operation, the USB stack requires hz to be greater or > > equal to 250 hz, to put it like that. Mostly a requirement in USB > &g

Re: svn commit: r227541 - head/sys/dev/usb/controller

2011-11-15 Thread Hans Petter Selasky
On Tuesday 15 November 2011 22:21:31 m...@freebsd.org wrote: > On Tue, Nov 15, 2011 at 1:20 PM, wrote: > > On Tue, Nov 15, 2011 at 1:02 PM, Hans Petter Selasky wrote: > >> For USB compliant operation, the USB stack requires hz to be greater or > >> equal to 250 hz,

Re: svn commit: r227541 - head/sys/dev/usb/controller

2011-11-15 Thread Hans Petter Selasky
In response to this thread I've updated: http://wiki.freebsd.org/TuningPowerConsumption --HPS ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebs

svn commit: r227610 - in head/sys/dev/usb: . quirk

2011-11-17 Thread Hans Petter Selasky
Author: hselasky Date: Thu Nov 17 10:46:51 2011 New Revision: 227610 URL: http://svn.freebsd.org/changeset/base/227610 Log: Quirk all of ALCOR's mass storage devices instead of quirking individual devices. Submitted by: Dmitry Luhtionov MFC after:1 week Modified: head/sys/dev/usb

svn commit: r227654 - head/sys/dev/usb/controller

2011-11-18 Thread Hans Petter Selasky
Author: hselasky Date: Fri Nov 18 08:31:24 2011 New Revision: 227654 URL: http://svn.freebsd.org/changeset/base/227654 Log: Make some XHCI command timeouts less strict. Reported by: Jan Henrik Sylvester MFC after:1 week Modified: head/sys/dev/usb/controller/xhci.c Modified: head/

svn commit: r217374 - head/sys/dev/usb/controller

2011-01-13 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jan 13 20:03:55 2011 New Revision: 217374 URL: http://svn.freebsd.org/changeset/base/217374 Log: - Add support for 64-byte contexts to XHCI driver. - Remove some dead code. - Fixed one instance of missing endian conversion. Approved by: thompsa (mentor) Modi

svn commit: r217558 - in head/sys/dev/usb: . controller

2011-01-18 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jan 18 21:18:51 2011 New Revision: 217558 URL: http://svn.freebsd.org/changeset/base/217558 Log: Make USB packet filtering code optional. Approved by: thompsa (mentor) Modified: head/sys/dev/usb/controller/usb_controller.c head/sys/dev/usb/usb_freebsd.h he

svn commit: r217718 - in head/sys: conf dev/usb

2011-01-22 Thread Hans Petter Selasky
Author: hselasky Date: Sat Jan 22 13:52:23 2011 New Revision: 217718 URL: http://svn.freebsd.org/changeset/base/217718 Log: Allow USB_HOST_ALIGN to be configured at compile time. This patch is necessary for MIPS based RouterStation Pro board and maybe other MIPS based boards as well. Su

Re: svn commit: r217718 - in head/sys: conf dev/usb

2011-01-23 Thread Hans Petter Selasky
On Saturday 22 January 2011 16:09:18 Gary Jennejohn wrote: > On Sat, 22 Jan 2011 13:52:23 + (UTC) > > Hans Petter Selasky wrote: > > Author: hselasky > > Date: Sat Jan 22 13:52:23 2011 > > New Revision: 217718 > > URL: http://svn.freebsd.org/changeset/base

Re: svn commit: r217718 - in head/sys: conf dev/usb

2011-01-23 Thread Hans Petter Selasky
On Sunday 23 January 2011 10:19:02 Hans Petter Selasky wrote: > #if defined(USB_HOST_ALIGN) && (USB_HOST_ALIGN != 0) > #if (-USB_HOST_ALIGN & USB_HOST_ALIGN) == USB_HOST_ALIGN should be != in this check. > #error "USB_HOST_ALIGN is

svn commit: r217793 - head/sys/dev/usb

2011-01-24 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jan 24 17:38:37 2011 New Revision: 217793 URL: http://svn.freebsd.org/changeset/base/217793 Log: Add more sanity checks for USB_HOST_ALIGN input values. Re-factor existing checks for readability. Approved by: thompsa (mentor) Modified: head/sys/dev/usb/usb_f

svn commit: r218010 - head/usr.sbin/usbdump

2011-01-28 Thread Hans Petter Selasky
Author: hselasky Date: Fri Jan 28 08:00:57 2011 New Revision: 218010 URL: http://svn.freebsd.org/changeset/base/218010 Log: - Remove double semicolon. - Remove reference to sprintf. Use printf directly. This part of the code should be optimised further to avoid many small printouts. Settin

<    1   2   3   4   5   6   7   8   9   10   >