Re: [linux-usb-devel] new usb_submit_urb for pegasus

2002-02-04 Thread Oliver Neukum
On Tuesday 05 February 2002 06:13, Mark McClelland wrote: > Oliver Neukum wrote: > >b) you are holding a spinlock or rwlock (does not apply to semaphores) > > I'm assuming that applies to the Big Kernel Lock too. If so, the V4L > drivers need GFP_ATOMIC for the URBs they submit on open(), since >

[linux-usb-devel] Re: CORRECTION: new version of usb_submit_urb for storage

2002-02-04 Thread Oliver Neukum
On Tuesday 05 February 2002 02:44, Matthew Dharm wrote: > Is this a 2.4 or 2.5 change? Or both? Strictly 2.5. Regards Oliver ___ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists

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

2002-02-04 Thread Greg KH
On Sat, Feb 02, 2002 at 11:13:26AM -0800, David Brownell wrote: > > No, I'll say that we need to stay one physical device per device in the > > tree. > > But we aren't that way today. Examples: Ok, you're right. We want to tell the drivers to shut down (remember, the original goal of driver

[linux-usb-devel] [PATCH] usb_submit_urb() changes

2002-02-04 Thread Greg KH
Hi all, Here's all of the usb_submit_urb() changes in one patch: http://www.kernel.org/pub/linux/kernel/people/gregkh/usb/2.5/usb-submit_urb-2.5.3.patch I took Oliver's original HCD, usb.c and usb.h patch, and the rest of his patches, converted all of the other drivers to just pass GFP_KERNEL

Re: [linux-usb-devel] new usb_submit_urb for pegasus

2002-02-04 Thread Mark McClelland
Oliver Neukum wrote: >b) you are holding a spinlock or rwlock (does not apply to semaphores) > I'm assuming that applies to the Big Kernel Lock too. If so, the V4L drivers need GFP_ATOMIC for the URBs they submit on open(), since videodev.c grabs the BKL before calling the open(), release(), o

[linux-usb-devel] Re: CORRECTION: new version of usb_submit_urb for storage

2002-02-04 Thread Greg KH
On Mon, Feb 04, 2002 at 05:44:35PM -0800, Matthew Dharm wrote: > Is this a 2.4 or 2.5 change? Or both? 2.5 change only for now. Once things get a bit stable, we might backport to 2.4. thanks, greg k-h ___ [EMAIL PROTECTED] To unsubscribe, use the l

[linux-usb-devel] Re: CORRECTION: new version of usb_submit_urb for storage

2002-02-04 Thread Matthew Dharm
Is this a 2.4 or 2.5 change? Or both? Matt On Mon, Feb 04, 2002 at 04:43:38PM -0800, Greg KH wrote: > On Tue, Feb 05, 2002 at 01:40:11AM +0100, Oliver Neukum wrote: > > Explanation: > > bus_reset may sleep but must not allocate memory as > > it is potentially in the block io path, hence GFP_NOI

Re: [linux-usb-devel] unlink/disconnect/... [was: usbnet ...]

2002-02-04 Thread David Brownell
With respect to new API entries to distinguish the synchronous and unsynchronous unlink cases: > An asynchronous unlink due to being asynchronous allows other > things to happen while it is underway. Same thing for a synchronous unlink -- except the initiating thread can't cause them, it'll be

Re: [linux-usb-devel] new usb_submit_urb for pegasus

2002-02-04 Thread Petko Manolov
> Specific uses (or rules of thumb ;-) ): > -start_xmit and timeout methods of network drivers must use GFP_ATOMIC (spinlock) You can add receive routines here as well. Petko ___ [EMAIL PROTECTED] To unsubscribe, use the last form

Re: [linux-usb-devel] Re: new usb_submit_urb for storage

2002-02-04 Thread Oliver Neukum
On Tuesday 05 February 2002 01:49, David Brownell wrote: > And in fact, shouldn't all of those use GFP_NOIO? One is in the open() code path. The other should and in the corrected version in fact are GFP_NOIO. Regards Oliver ___

Re: [linux-usb-devel] new usb_submit_urb for pegasus

2002-02-04 Thread Oliver Neukum
> > Should I write a short summary on how to decide what a driver needs ? > > That would be great, I'll put that in the usb_submit_urb() > documentation. How to decide which mem_flags to pass to usb_submit_urb Basically the rules are the same as for kmalloc ;-) Now let me go to the details. Th

Re: [linux-usb-devel] Re: new usb_submit_urb for storage

2002-02-04 Thread David Brownell
And in fact, shouldn't all of those use GFP_NOIO? - Dave - Original Message - From: "Greg KH" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, February 04, 2002 4:32 PM Subject: [linux-usb-devel] Re: new usb_submit_urb for storage

Re: [linux-usb-devel] USB 2.0 Devices

2002-02-04 Thread Jacek Pliszka
On Mon, 4 Feb 2002 [EMAIL PROTECTED] wrote: > On the shelf with linux support.And get the packing that the products > are wrapped up in with print. The devices which will conform to standard USB classes will have Linux support out of box. The example is newer Phison/AVL 5in1 SmartMedia/CF/

[linux-usb-devel] Re: CORRECTION: new version of usb_submit_urb for storage

2002-02-04 Thread Greg KH
On Tue, Feb 05, 2002 at 01:40:11AM +0100, Oliver Neukum wrote: > Explanation: > bus_reset may sleep but must not allocate memory as > it is potentially in the block io path, hence GFP_NOIO not GFP_KERNEL Thanks, applied. greg k-h ___ [EMAIL PROTECTED]

[linux-usb-devel] CORRECTION: new version of usb_submit_urb for storage

2002-02-04 Thread Oliver Neukum
Explanation: bus_reset may sleep but must not allocate memory as it is potentially in the block io path, hence GFP_NOIO not GFP_KERNEL Regards Oliver --- scsiglue.c.alt Tue Feb 5 01:24:42 2002 +++ scsiglue.c Tue Feb 5 01:27:56 2002 @@ -278,7 +278,7 @@ if

[linux-usb-devel] Re: new usb_submit_urb for storage

2002-02-04 Thread Greg KH
Thanks. Matt, is the GFP_NOIO flag correct for transport.c? Applied to my tree. greg k-h ___ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

[linux-usb-devel] new usb_submit_urb for storage

2002-02-04 Thread Oliver Neukum
--- scsiglue.c.alt Tue Feb 5 01:24:42 2002 +++ scsiglue.c Tue Feb 5 01:27:56 2002 @@ -278,7 +278,7 @@ if (us->protocol == US_PR_CBI) { down(&(us->irq_urb_sem)); us->irq_urb->dev = us->pusb_dev; - result = usb_submit_urb(us->irq_urb); +

Re: [linux-usb-devel] new usb_submit_urb for pegasus

2002-02-04 Thread Greg KH
On Tue, Feb 05, 2002 at 01:23:47AM +0100, Oliver Neukum wrote: > On Tuesday 05 February 2002 01:13, Greg KH wrote: > > Applied, thanks. > > > > Ok, I have everything converted, except for usb-storage. If you know of > > any driver that should not just use GFP_KERNEL for this call, please let > >

[linux-usb-devel] Re: new usb_submit_urb for printer

2002-02-04 Thread Greg KH
Got it. thanks, greg k-h ___ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Re: [linux-usb-devel] new usb_submit_urb for pegasus

2002-02-04 Thread Oliver Neukum
On Tuesday 05 February 2002 01:13, Greg KH wrote: > Applied, thanks. > > Ok, I have everything converted, except for usb-storage. If you know of > any driver that should not just use GFP_KERNEL for this call, please let > me know. Have you gone through the drivers with a chainsaw ;-) ? I'll have

[linux-usb-devel] Re: new usb_submit_urb for vicam

2002-02-04 Thread Greg KH
Accepted. Thanks for reminding me that submitting urbs in the callback need GFP_ATOMIC :) greg k-h ___ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

[linux-usb-devel] new usb_submit_urb for vicam

2002-02-04 Thread Oliver Neukum
--- vicam.c.alt Tue Feb 5 01:11:47 2002 +++ vicam.c Tue Feb 5 01:14:56 2002 @@ -344,7 +344,7 @@ synchronize(vicam); mdelay(10); vicam_parameters(vicam); - printk("Submiting urb: %d\n", usb_submit_urb(vicam->readurb)); + printk("Submiting urb: %d\n", usb_su

Re: [linux-usb-devel] new usb_submit_urb for pegasus

2002-02-04 Thread Greg KH
Applied, thanks. Ok, I have everything converted, except for usb-storage. If you know of any driver that should not just use GFP_KERNEL for this call, please let me know. thanks, greg k-h ___ [EMAIL PROTECTED] To unsubscribe, use the last form field

[linux-usb-devel] new usb_submit_urb for printer

2002-02-04 Thread Oliver Neukum
--- printer.c.alt Tue Feb 5 00:55:10 2002 +++ printer.c Tue Feb 5 00:56:41 2002 @@ -242,7 +242,7 @@ if (usblp->bidir) { usblp->readcount = 0; usblp->readurb.dev = usblp->dev; - if (usb_submit_urb(&usblp->readurb) < 0) { +

[linux-usb-devel] Re: new usb_submit_urb for skeleton

2002-02-04 Thread Greg KH
Applied. thanks, greg k-h ___ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

[linux-usb-devel] new usb_submit_urb for pegasus

2002-02-04 Thread Oliver Neukum
--- pegasus.c.alt Tue Feb 5 00:48:13 2002 +++ pegasus.c Tue Feb 5 00:52:17 2002 @@ -157,7 +157,8 @@ add_wait_queue( &pegasus->ctrl_wait, &wait ); set_current_state( TASK_UNINTERRUPTIBLE ); - if ( (ret = usb_submit_urb( pegasus->ctrl_urb )) ) { + /* using ATO

[linux-usb-devel] Re: new usb_submit_urb for kaweth

2002-02-04 Thread Greg KH
Applied. thanks, greg k-h ___ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

[linux-usb-devel] new usb_submit_urb for skeleton

2002-02-04 Thread Oliver Neukum
--- usb-skeleton.c.alt Tue Feb 5 00:44:29 2002 +++ usb-skeleton.c Tue Feb 5 00:46:06 2002 @@ -431,7 +431,9 @@ skel_write_bulk_callback, dev); /* send the data out the bulk port */ - retval = usb_submit_urb(dev->write_urb); + /* a character device

[linux-usb-devel] Re: gfp patch for microtek

2002-02-04 Thread Greg KH
usb_submit_urb() portion applied. thanks, greg k-h ___ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

[linux-usb-devel] new usb_submit_urb for kaweth

2002-02-04 Thread Oliver Neukum
--- kaweth.c.altTue Feb 5 00:34:20 2002 +++ kaweth.cTue Feb 5 00:40:54 2002 @@ -447,7 +447,8 @@ / * kaweth_resubmit_rx_urb / -static inline void ka

Re: [linux-usb-devel] Firmware Frustration

2002-02-04 Thread Greg KH
On Tue, Feb 05, 2002 at 12:13:19AM +0100, Oliver Neukum wrote: > On Monday 04 February 2002 21:29, Ken Hahn wrote: > > On Dec 19, 2001 Greg KH wrote: > > > I'd accept a patch for a driver that has the firmware _within_ the > > > driver, just like the current usb-serial drivers do. > > > > > > This

Re: [linux-usb-devel] Firmware Frustration

2002-02-04 Thread Oliver Neukum
On Monday 04 February 2002 21:29, Ken Hahn wrote: > On Dec 19, 2001 Greg KH wrote: > > I'd accept a patch for a driver that has the firmware _within_ the > > driver, just like the current usb-serial drivers do. > > > > This will let people use the driver today, and when we finally get the > > firm

[linux-usb-devel] Re: gfp for hpusbscsi

2002-02-04 Thread Greg KH
On Sun, Feb 03, 2002 at 03:53:53PM +0100, Oliver Neukum wrote: > Here it is. I've applied the usb_submit_urb() portion of this patch, thanks. greg k-h ___ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/list

[linux-usb-devel] Re: gfp patch to hid

2002-02-04 Thread Greg KH
On Sun, Feb 03, 2002 at 03:47:23PM +0100, Oliver Neukum wrote: > Hi, > > this makes the changes to the hid driver. Applied. greg k-h ___ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-

Re: [linux-usb-devel] completion callback order

2002-02-04 Thread Martin Diehl
On Sun, 3 Feb 2002, David Brownell wrote: > > saying USB_QUEUE_BULK does not only deal with urbs being queued to the > > schedule (in submission order, of course), but the _same_ queueing is used > > for the corresponding completion callback? Would be very nice to know for > > sure. This would be

Re: [linux-usb-devel] working version of a patch to introduce gfp

2002-02-04 Thread Greg KH
On Mon, Feb 04, 2002 at 01:54:42PM +0100, Oliver Neukum wrote: > > > So can you send this again, for just usb_submit_urb() with the sum of > > the changes that you and David agreed on? > > Sure. Here's the most basic patch. > Much thanks to Dave who had prepared the hcd layer already. > Dave, do

Re: [linux-usb-devel] USB 2.0 Devices

2002-02-04 Thread Greg KH
On Mon, Feb 04, 2002 at 04:52:54PM -0500, [EMAIL PROTECTED] wrote: > > It would be nice to work with hardware vendors now, before they release > their products for sale. I don't think you will find anyone on this mailing list who disagree with this :) Tough part is finding those hardware vendor

Re: [linux-usb-devel] USB 2.0 Devices

2002-02-04 Thread Dwaine_Garden
It would be nice to work with hardware vendors now, before they release their products for sale. On the shelf with linux support.And get the packing that the products are wrapped up in with print. I'm just wondering if there are a lot of vendors interested in getting their USB v2.0 devices

Re: [linux-usb-devel] working version of a patch to introduce gfp

2002-02-04 Thread David Brownell
> Sure. Here's the most basic patch. > Much thanks to Dave who had prepared the hcd layer already. > Dave, do you like it ? Looks right, except for omitting kerneldoc for the new usb_submit_urb() parameter. Thanks for switching to use a more meaningful name ... :) - Dave > Of course, it'll bre

Re: [linux-usb-devel] USB 2.0 Devices

2002-02-04 Thread Matthew Dharm
The In-System/Cypress ISD-300 USB Mass Storage bridge is not only 2.0 compliant, it works with the current usb-storage driver in Linux at 2.0 speeds. Matt On Mon, Feb 04, 2002 at 09:54:42AM -0800, Chris Ahna wrote: > Hi, > > I'm getting ready to test the new USB 2.0 support on a few of my > sys

Re: [linux-usb-devel] USB 2.0 Devices

2002-02-04 Thread David Brownell
The usb-storage driver works with USB 2.0 devices as-is, though not as fast as one might like (it doesn't queue its requests, and thus wastes about half the bandwidth it could use). Most folk prefer even just 12 MByte/sec transfer rates to the USB 1.1 rates (about 1 MByte/sec), even so. The hub

[linux-usb-devel] USB 2.0 Devices

2002-02-04 Thread Chris Ahna
Hi, I'm getting ready to test the new USB 2.0 support on a few of my systems. I see that the EHCI HCD is in 2.5 but I don't see any drivers for USB 2.0 devices. Are there Linux drivers for any USB 2.0 devices? Thanks a lot, Chris ___ [EMAIL PROTECTE

[linux-usb-devel] CDCEther for Sharp Zaurus SL-5000D docking station

2002-02-04 Thread Fumitoshi UKAI
Hi, I got Sharp Zaurus SL-5000D(Linux PDA), and try to connect via docking station. It is USB Ether devices but it doesn't be recognized by linux-2.4.17 kernel. I'm not sure how to fix is correct. Anyway, this docking station says it has bInterface Class:SubClass:Protocol = 02:06:00 with bNumEn

Re: [linux-usb-devel] usbvision and hauppauge wintv-fm

2002-02-04 Thread Jörg Heckenbach
darrell wrote: > > I have a (Canadian) hauppauge wintv-fm 0573 4d30 > > As a test to get it working I replaced the usbvision table entry > for the German version, though all the entries seem to have the > same setup values. > > In usbvision_probe I had to comment out > > if(dev->descriptor.bNu

Re: [linux-usb-devel] working version of a patch to introduce gfp

2002-02-04 Thread Oliver Neukum
> So can you send this again, for just usb_submit_urb() with the sum of > the changes that you and David agreed on? Sure. Here's the most basic patch. Much thanks to Dave who had prepared the hcd layer already. Dave, do you like it ? Of course, it'll break all drivers except hub and all hcds not

[linux-usb-devel] Re: patch to usb-ohci for gfp fields

2002-02-04 Thread Oliver Neukum
On Monday 04 February 2002 01:18, David Brownell wrote: > GFP_* is excessively cryptic, and it doesn't account for > the slightly more meaningful SLAB_* synonyms ... :) OK, I'll change. > Actually, since td_alloc() is always SLAB_ATOMIC > (artifact of locking structure) it won't need to change >

Re: [linux-usb-devel] unlink/disconnect/... [was: usbnet ...]

2002-02-04 Thread Oliver Neukum
> > It avoids a lot of effort in the disconnect methods of the network > > drivers which would have to check and wait for an ongoing asynchronous > > unlinking. > > Now I'm really not following you -- at all. > > Are you implying that there's some difference in the synchronous > and asynchronous c