[linux-usb-devel] [patch] pegasus updates for 2.4.18

2002-02-01 Thread Petko Manolov
Hi Greg, this is syncing 2.4 pegasus driver with recent 2.5 changes. Since it is fixing a few bugs i hope the patch will be applied in 2.4 tree as well. I tested it on my system and it seems ok. Petko PS: The diff is generated against 2.4.17 but as long as there is no

[linux-usb-devel] 2.5 style probe/disconnect module usage count handling

2002-02-01 Thread Oliver Neukum
Hi, this patch is quite trivial. Related question: This code in usbnet_stop while (skb_queue_len (&dev->rxq) && skb_queue_len (&dev->txq) && skb_queue_len (&dev->done)) { set_current_state (TASK_UNINTERRUPTIBLE);

Re: [linux-usb-devel] PATCH -- ohci-0131 (ohci-hcd)

2002-02-01 Thread Greg KH
On Fri, Feb 01, 2002 at 11:36:44AM -0800, David Brownell wrote: > This is against 2.5.3; it includes two bugfixes:: Looks good, applied. > > - doesn't assume CONFIG_DEBUG_SLAB > - unlink from interrupt completions work > > And a fair amount of cleanup (most of the patch, by size): > >

Re: [linux-usb-devel] Re: [PATCH] driverfs support for USB - take 2

2002-02-01 Thread Greg KH
On Wed, Jan 30, 2002 at 12:24:13PM -0800, David Brownell wrote: > "> " == "Patrick Mochel" <[EMAIL PROTECTED]> > > > You have a PCI device that is the USB controller. You create a child of > > that represents the USB bus. Then, devices are added as children of that. > > > > Logically, couldn't

Re: [linux-usb-devel] Re: [PATCH] driverfs support for USB - take 2

2002-02-01 Thread Greg KH
On Wed, Jan 30, 2002 at 12:07:26PM -0800, David Brownell wrote: > > And also remember, the status file in a device's directory also provides > > a _lot_ of information. We haven't even started to fill up the fields > > there... > > And there can be a lot more such files. Though that 4KB limit >

Re: [linux-usb-devel] [patch] pegasus.c.diff [take 2]

2002-02-01 Thread Greg KH
On Fri, Feb 01, 2002 at 04:05:15PM -0800, Petko Manolov wrote: > Hi Greg, > > will you please use this pegasus.c.diff instead of the previous > one... another memory leak was found by Oliver. > It is funny how such a small driver can leak so much :-) Looks good, I'll apply this one. than

Re: [linux-usb-devel] Re: patch for two errors in pegasus

2002-02-01 Thread Greg KH
On Fri, Feb 01, 2002 at 03:50:44PM -0800, Petko Manolov wrote: > >it seems that pegasus_probe() has a memory leak in the error case and > >pegasus_disconnect() fails to unlink urbs before it frees them. > > > These urbs used to be staticly allocated and i don't really know > why Greg changed the

[linux-usb-devel] [patch] pegasus.c.diff [take 2]

2002-02-01 Thread Petko Manolov
Hi Greg, will you please use this pegasus.c.diff instead of the previous one... another memory leak was found by Oliver. It is funny how such a small driver can leak so much :-) Petko Petko Manolov wrote: > Hi Greg, > > two things this time: > - suppress str

[linux-usb-devel] Re: patch for two errors in pegasus

2002-02-01 Thread Petko Manolov
> it seems that pegasus_probe() has a memory leak in the error case and > pegasus_disconnect() fails to unlink urbs before it frees them. These urbs used to be staticly allocated and i don't really know why Greg changed them to dynamicly allocated not so long ago. I guess the answer is somewhere

[linux-usb-devel] patch for two errors in pegasus

2002-02-01 Thread Oliver Neukum
Hi, it seems that pegasus_probe() has a memory leak in the error case and pegasus_disconnect() fails to unlink urbs before it frees them. A patch is included. Regards Oliver --- pegasus.c.alt Sat Feb 2 00:29:17 2002 +++ pegasus.c Sat Feb 2 00:34:32 2002 @@ -885

[linux-usb-devel] [patch] pegasus.c & pegasus.h

2002-02-01 Thread Petko Manolov
Hi Greg, two things this time: - suppress string concatenate with __FUNCTION__ macro warning (gcc-3.0.3 and above); - 2 vendors (Compaq and Hawking) and 3 more devices added; the patch is against 2.5.3. Petko --- linux-2.5.3/drivers/usb/pegasus

[linux-usb-devel] PATCH -- ohci-0131 (ohci-hcd)

2002-02-01 Thread David Brownell
This is against 2.5.3; it includes two bugfixes:: - doesn't assume CONFIG_DEBUG_SLAB - unlink from interrupt completions work And a fair amount of cleanup (most of the patch, by size): - doesn't force debugging on - updated copyright/license statements - slightly smaller obj

[linux-usb-devel] Re: PATCH -- usb-0131.patch

2002-02-01 Thread Greg KH
On Thu, Jan 31, 2002 at 05:40:49PM -0800, David Brownell wrote: > This is a minor cleanup patch. It makes a message just > show when debugging ... the situation is harmless, so it > should not normally trigger a warning (as it now does). Thanks, I've added this to the 2.4 and 2.5 trees. greg k-

Re: [linux-usb-devel] act_altsetting

2002-02-01 Thread David Brownell
The usb_set_interface() call sets this ... if drivers always (and only) use that in their probe() routines, and don't issue SET_INTERFACE calls directly (bypassing that), there's no problem keeping that in sync with the device state. On the other hand, the probe() sequence modifies that field wit

[linux-usb-devel] PATCH -- usb-0131.patch

2002-02-01 Thread David Brownell
This is a minor cleanup patch. It makes a message just show when debugging ... the situation is harmless, so it should not normally trigger a warning (as it now does). - Dave usb-0131.patch Description: Binary data

Re: [linux-usb-devel] Re: fix for race in vicam.c (resend, patch forgotten)

2002-02-01 Thread Greg KH
On Thu, Jan 31, 2002 at 10:30:23PM +0100, Pavel Machek wrote: > Hi! > > > due to the use of sleep_on in vicam.c there is a small window of a race that > > causes a neverending sleep. Fix is by going for standard waitqueues. > > Looks good, Greg please apply. Added to my 2.4 and 2.5 trees. tha

[linux-usb-devel] race leading to delay of event processing in hub.c

2002-02-01 Thread Oliver Neukum
Hi, in hub.c sleep_on is used. Thus there's a window during which an event that should be processed could be queued instead. The included patch should fix it. Regards Oliver --- hub.c.alt Fri Feb 1 16:41:16 2002 +++ hub.c Fri Feb 1 16:49:17 2002 @@ -878,6 +878,9

Re: [linux-usb-devel] Abt usb_hub_thread

2002-02-01 Thread Oliver Neukum
On Friday 01 February 2002 14:38, Priya Saminathan wrote: > I am going thru the linux USB driver code... > > And When I went through the code I had the following > doubts..Though it may be a sort of simple queries it > matters me a lot.. > (i)How the new devices that attach are detected.. > Is tha

[linux-usb-devel] Abt usb_hub_thread

2002-02-01 Thread Priya Saminathan
I am going thru the linux USB driver code... And When I went through the code I had the following doubts..Though it may be a sort of simple queries it matters me a lot.. (i)How the new devices that attach are detected.. Is that has some thing related with the kernel_thread(usb_hub_thread... (ii)H

[linux-usb-devel] Re: fix for race in vicam.c (resend, patch forgotten)

2002-02-01 Thread Oliver Neukum
On Thursday 31 January 2002 22:30, Pavel Machek wrote: > Hi! > > > due to the use of sleep_on in vicam.c there is a small window of a race > > that causes a neverending sleep. Fix is by going for standard waitqueues. > > Looks good, Greg please apply. > > Olivier, do you actually have vicam? No,

[linux-usb-devel] Re: fix for race in vicam.c (resend, patch forgotten)

2002-02-01 Thread Pavel Machek
Hi! > due to the use of sleep_on in vicam.c there is a small window of a race that > causes a neverending sleep. Fix is by going for standard waitqueues. Looks good, Greg please apply. Olivier, do you actually have vicam?