[linux-usb-devel] (no subject)

2004-07-29 Thread bastgiraud
Hello, First I just want read 2 bytes sent by my device (the pic16c745/765). They are located in EP1. That communication send to the PC under linux2.4.20 (that works properly because I have do it under windows and it worked) and it uses the transfer interrupt. Now I use the fields of structure

[linux-usb-devel] Re: Wacom Driver broken with Wacom Graphire in 2.6.7

2004-07-29 Thread Dmitry Torokhov
On Tuesday 27 July 2004 04:41 pm, Sebastian Spaeth wrote: > From: Dmitry Torokhov > Date: 2004-07-20 4:04:47 > > >Hopefully if send the patch directly to you you will be able to apply > >it. Just save entire mail as a text and feed it to patch. > > > >Please let me know if it work

Re: [linux-usb-devel] Re: [PATCH 0/18] usbfs: semaphore pushdown

2004-07-29 Thread David Brownell
On Thursday 29 July 2004 14:11, Oliver Neukum wrote: > > > Make that "weeks or months", not seconds ... then it's a lot more > > evident what the real problem is ... not copy to/from userspace, > > but long-term blocking until URBs complete. :) > > OK, this is a serious problem. > > [..] > > So

Re: [linux-usb-devel] [PATCH 2.6.8-rc2] usb hub docs and locktree()

2004-07-29 Thread David Brownell
On Thursday 29 July 2004 14:55, Alan Stern wrote: > On Thu, 29 Jul 2004, David Brownell wrote: > > > > Our work on the hub driver is well on its way to getting hopelessly > > > tangled. Should we try to coordinate the changes we've been sending in > > > independently? > > > > This looked OK to

Re: [linux-usb-devel] Re: [PATCH 0/18] usbfs: semaphore pushdown

2004-07-29 Thread Alan Stern
On Thu, 29 Jul 2004, Pete Zaitcev wrote: > > Remember also that disconnect() occuring while an URB is active will cause > > the URB to be aborted. So it ought to be enough to unlock the device > > before submitting the URB. > > What if the disconnect thread has time to free the device struct w

Re: [linux-usb-devel] [PATCH 2.6.8-rc2] usb hub docs and locktree()

2004-07-29 Thread Alan Stern
On Thu, 29 Jul 2004, David Brownell wrote: > > Our work on the hub driver is well on its way to getting hopelessly > > tangled. Should we try to coordinate the changes we've been sending in > > independently? > > This looked OK to me with respect to RC2 and to what's in Greg's tree > (except f

Re: [linux-usb-devel] Re: [PATCH 0/18] usbfs: semaphore pushdown

2004-07-29 Thread Pete Zaitcev
On Thu, 29 Jul 2004 17:02:42 -0400 (EDT) Alan Stern <[EMAIL PROTECTED]> wrote: > On Thu, 29 Jul 2004, Greg KH wrote: > > > On Thu, Jul 29, 2004 at 10:59:09AM -0700, Pete Zaitcev wrote: > > > > > > The patch attached to OSDL 3108 does not look good to me. The right > > > approach would be to do u

[linux-usb-devel] failure to recognize usb hd

2004-07-29 Thread Christian Prinoth
this is what the kernel says when I plug in this Lacie USB HD (model EK0-U-HD-705475). After plugging it in "cat /proc/scsi/scsi" returns nothing. Thanks, Chris <7>ehci_hcd :00:02.2: GetStatus port 1 status 003802 POWER OWNER sig=j CSC <7>hub 1-0:1.0: port 1, status 0, change 1, 12 Mb/s <

Re: [linux-usb-devel] Re: [PATCH 0/18] usbfs: semaphore pushdown

2004-07-29 Thread Oliver Neukum
> Make that "weeks or months", not seconds ... then it's a lot more > evident what the real problem is ... not copy to/from userspace, > but long-term blocking until URBs complete. :) OK, this is a serious problem. [..] > So that'd be patches 17 and 18 that are IMO very worth merging, > with so

Re: [linux-usb-devel] Re: [PATCH 0/18] usbfs: semaphore pushdown

2004-07-29 Thread Alan Stern
On Thu, 29 Jul 2004, Greg KH wrote: > On Thu, Jul 29, 2004 at 10:59:09AM -0700, Pete Zaitcev wrote: > > > > The patch attached to OSDL 3108 does not look good to me. The right > > approach would be to do usb_dev_get to prevent disconnect from pulling > > things from under you, then submit URBs. >

Re: [linux-usb-devel] [PATCH 2.6.8-rc2] usb hub docs and locktree()

2004-07-29 Thread David Brownell
On Thursday 29 July 2004 13:18, Alan Stern wrote: > David: > > Our work on the hub driver is well on its way to getting hopelessly > tangled. Should we try to coordinate the changes we've been sending in > independently? This looked OK to me with respect to RC2 and to what's in Greg's tree (ex

[linux-usb-devel] PATCH: (as354) Fix NULL-pointer bug in dummy_hcd

2004-07-29 Thread Alan Stern
Greg: This patch fixes a NULL-pointer-dereference bug in the dummy_hcd driver. It also makes the code slightly more elegant and removes an unnecessary buffer-overflow test. Unfortunately it's still a little bit racy, but this is a fault it shares with other gadget controller drivers, like net22

[linux-usb-devel] PATCH: (as353) Make removable-LUN support a non-test option in the g_file_storage driver

2004-07-29 Thread Alan Stern
Greg: This patch follows the suggestions sent by Todd Fischer and Diego Dompe for making removable-LUN support part of the normal non-testing version of the g_file_storage driver. It also moves LUN device registration to the correct place and eliminates a code path that stalls the bulk-out pipe

Re: [linux-usb-devel] Re: [PATCH 0/18] usbfs: semaphore pushdown

2004-07-29 Thread David Brownell
On Thursday 29 July 2004 11:40, Greg KH wrote: > On Thu, Jul 29, 2004 at 08:24:33PM +0200, Oliver Neukum wrote: > > Am Donnerstag, 29. Juli 2004 19:54 schrieb Greg KH: > > > On Thu, Jul 29, 2004 at 06:19:15PM +0200, Duncan Sands wrote: > > > > Rather than taking the semaphore dev->serialize in the

Re: [linux-usb-devel] [PATCH 2.6.8-rc2] usb hub docs and locktree()

2004-07-29 Thread Alan Stern
David: Our work on the hub driver is well on its way to getting hopelessly tangled. Should we try to coordinate the changes we've been sending in independently? With regard to your latest patch, I have some questions/comments: There's no need to check hub->quiescing in the interrupt

[linux-usb-devel] [PATCH 2.6.8-rc2] usb hub docs and locktree()

2004-07-29 Thread David Brownell
Please merge; the CONFIG_USB_SUSPEND patch depends on it. - Dave This hub patch: - updates internal docs about locking, matching current usage for device state spinlock and dev->serialize semaphore - adds locktree() to use with signaling that affect everything downstream of a given devic

[linux-usb-devel] [PATCH 2.6.8-rc2] add CONFIG_USB_SUSPEND

2004-07-29 Thread David Brownell
This is the core of the USB_SUSPEND functionality. Please merge. - Dave This adds an experimental CONFIG_USB_SUSPEND option, which supports the USB "suspend" state. Linux-USB hosts have previously ignored that state. - New driver API calls, usb_suspend_device() and its sibling usb

Re: [linux-usb-devel] Re: [PATCH 0/18] usbfs: semaphore pushdown

2004-07-29 Thread Greg KH
On Thu, Jul 29, 2004 at 08:24:33PM +0200, Oliver Neukum wrote: > Am Donnerstag, 29. Juli 2004 19:54 schrieb Greg KH: > > On Thu, Jul 29, 2004 at 06:19:15PM +0200, Duncan Sands wrote: > > > Rather than taking the semaphore dev->serialize in the > > > top-level ioctl handler, usbdev_ioctl, push it do

Re: [linux-usb-devel] Re: [PATCH 0/18] usbfs: semaphore pushdown

2004-07-29 Thread Oliver Neukum
Am Donnerstag, 29. Juli 2004 19:54 schrieb Greg KH: > On Thu, Jul 29, 2004 at 06:19:15PM +0200, Duncan Sands wrote: > > Rather than taking the semaphore dev->serialize in the > > top-level ioctl handler, usbdev_ioctl, push it down to the > > individual ioctl routines.  This is a Good Thing because

[linux-usb-devel] Re: [PATCH 0/18] usbfs: semaphore pushdown

2004-07-29 Thread Greg KH
On Thu, Jul 29, 2004 at 10:59:09AM -0700, Pete Zaitcev wrote: > > The patch attached to OSDL 3108 does not look good to me. The right > approach would be to do usb_dev_get to prevent disconnect from pulling > things from under you, then submit URBs. I agree. greg k-h --

[linux-usb-devel] Re: [PATCH 0/18] usbfs: semaphore pushdown

2004-07-29 Thread Pete Zaitcev
On Thu, 29 Jul 2004 18:19:15 +0200 Duncan Sands <[EMAIL PROTECTED]> wrote: > Patches 16/18 and 17/18 (proc_control and proc_bulk) also > release the semaphore while waiting for the urb to complete. > This fixes http://bugme.osdl.org/show_bug.cgi?id=3108. You > may well wonder why I copied some of

[linux-usb-devel] Re: [PATCH 0/18] usbfs: semaphore pushdown

2004-07-29 Thread Greg KH
On Thu, Jul 29, 2004 at 06:19:15PM +0200, Duncan Sands wrote: > Rather than taking the semaphore dev->serialize in the > top-level ioctl handler, usbdev_ioctl, push it down to the > individual ioctl routines. This is a Good Thing because > the ioctl routines do plenty of copy_to/from_user calls.

[linux-usb-devel] Re: [PATCH 1/18] usbfs: preparation

2004-07-29 Thread Pete Zaitcev
On Thu, 29 Jul 2004 18:24:08 +0200 Duncan Sands <[EMAIL PROTECTED]> wrote: > This way the pushdown patch for each ioctl routine becomes > independent of the others. > --- local_tree.orig/drivers/usb/core/devio.c 2004-07-25 14:34:32.843129288 +0200 > +++ local_tree/drivers/usb/core/devio.c

[linux-usb-devel] [PATCH 17/18] usbfs: proc_bulk pushdown

2004-07-29 Thread Duncan Sands
--- local_tree.orig/drivers/usb/core/devio.c2004-07-26 12:17:18.0 +0200 +++ local_tree/drivers/usb/core/devio.c 2004-07-29 18:38:16.817733447 +0200 @@ -71,6 +71,7 @@ dev_info( dev , format , ## arg); \ } while (0) +#define MAX_BUFFER_LENGTH 1

Re: [linux-usb-devel] [PATCH 2/18] usbfs: proc_clearhalt pushdown

2004-07-29 Thread Duncan Sands
This is actually patch 3/18. Sorry about that, Duncan. --- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are n

[linux-usb-devel] [PATCH 16/18] usbfs: proc_control pushdown

2004-07-29 Thread Duncan Sands
--- local_tree.orig/drivers/usb/core/devio.c2004-07-26 00:55:05.0 +0200 +++ local_tree/drivers/usb/core/devio.c 2004-07-26 12:17:18.893769249 +0200 @@ -530,71 +530,152 @@ return 0; } +static void wakeup_completion(struct urb *urb, struct pt_regs *regs) +{ + complete((s

[linux-usb-devel] [PATCH 14/18] usbfs: proc_releaseinterface pushdown

2004-07-29 Thread Duncan Sands
--- local_tree.orig/drivers/usb/core/devio.c2004-07-26 00:34:29.602731436 +0200 +++ local_tree/drivers/usb/core/devio.c 2004-07-26 00:39:13.980826658 +0200 @@ -1168,10 +1168,17 @@ if (get_user(ifnum, (unsigned int __user *)arg)) return -EFAULT; - if ((ret = relea

[linux-usb-devel] [PATCH 15/18] usbfs: proc_ioctl pushdown

2004-07-29 Thread Duncan Sands
--- local_tree.orig/drivers/usb/core/devio.c2004-07-26 00:39:13.980826658 +0200 +++ local_tree/drivers/usb/core/devio.c 2004-07-26 00:55:05.361216844 +0200 @@ -1184,11 +1184,12 @@ static int proc_ioctl (struct dev_state *ps, void __user *arg) { struct usbdevfs_ioctl ctrl; - in

[linux-usb-devel] [PATCH 13/18] usbfs: proc_claiminterface pushdown

2004-07-29 Thread Duncan Sands
--- local_tree.orig/drivers/usb/core/devio.c2004-07-26 00:31:47.183662802 +0200 +++ local_tree/drivers/usb/core/devio.c 2004-07-26 00:34:29.602731436 +0200 @@ -1148,10 +1148,17 @@ static int proc_claiminterface(struct dev_state *ps, void __user *arg) { unsigned int ifnum; + int

[linux-usb-devel] [PATCH 12/18] usbfs: proc_disconnectsignal pushdown

2004-07-29 Thread Duncan Sands
--- local_tree.orig/drivers/usb/core/devio.c2004-07-26 00:23:41.914115079 +0200 +++ local_tree/drivers/usb/core/devio.c 2004-07-26 00:31:47.183662802 +0200 @@ -1134,8 +1134,14 @@ return -EFAULT; if (ds.signr != 0 && (ds.signr < SIGRTMIN || ds.signr > SIGRTMAX))

[linux-usb-devel] [PATCH 11/18] usbfs: proc_reapurbnonblock pushdown

2004-07-29 Thread Duncan Sands
--- local_tree.orig/drivers/usb/core/devio.c2004-07-26 00:17:25.499847408 +0200 +++ local_tree/drivers/usb/core/devio.c 2004-07-26 00:23:41.914115079 +0200 @@ -1102,18 +1102,28 @@ { struct async *as; void __user *addr; + struct usb_device *dev = ps->dev; int ret;

[linux-usb-devel] [PATCH 10/18] usbfs: proc_reapurb pushdown

2004-07-29 Thread Duncan Sands
--- local_tree.orig/drivers/usb/core/devio.c2004-07-26 00:12:27.375116209 +0200 +++ local_tree/drivers/usb/core/devio.c 2004-07-26 00:17:25.499847408 +0200 @@ -1064,6 +1064,11 @@ struct usb_device *dev = ps->dev; int ret; + down(&dev->serialize); + if (!connected(d

Re: [linux-usb-devel] Problem connectin KonicaMinolta Dimage A2

2004-07-29 Thread Alan Stern
On Wed, 28 Jul 2004, Gerhard Jaeger wrote: > Hi, > > okay, before fiddling around with that Windoze driver stuff, I tried your last > patch (uhci-hcd.c one liner) and removed all other patches, result: > I worked - at least partially. I have a log attached where both cases can > be seen. Sometime

[linux-usb-devel] [PATCH 9/18] usbfs: proc_unlinkurb pushdown

2004-07-29 Thread Duncan Sands
--- local_tree.orig/drivers/usb/core/devio.c2004-07-25 23:49:54.978689141 +0200 +++ local_tree/drivers/usb/core/devio.c 2004-07-26 00:08:48.470761404 +0200 @@ -1010,12 +1010,21 @@ static int proc_unlinkurb(struct dev_state *ps, void __user *arg) { struct async *as; + struct usb_

[linux-usb-devel] [PATCH 7/18] usbfs: proc_setintf pushdown

2004-07-29 Thread Duncan Sands
--- local_tree.orig/drivers/usb/core/devio.c2004-07-25 15:03:40.103651192 +0200 +++ local_tree/drivers/usb/core/devio.c 2004-07-25 15:06:59.781312430 +0200 @@ -765,14 +765,22 @@ static int proc_setintf(struct dev_state *ps, void __user *arg) { struct usbdevfs_setinterface setintf; +

[linux-usb-devel] [PATCH 8/18] usbfs: proc_setconfig pushdown

2004-07-29 Thread Duncan Sands
--- local_tree.orig/drivers/usb/core/devio.c2004-07-25 15:06:59.0 +0200 +++ local_tree/drivers/usb/core/devio.c 2004-07-25 23:49:54.978689141 +0200 @@ -785,14 +785,20 @@ static int proc_setconfig(struct dev_state *ps, void __user *arg) { - unsigned int u; - int status =

[linux-usb-devel] [PATCH 6/18] usbfs: proc_resetdevice pushdown

2004-07-29 Thread Duncan Sands
--- local_tree.orig/drivers/usb/core/devio.c2004-07-25 14:59:32.292267558 +0200 +++ local_tree/drivers/usb/core/devio.c 2004-07-25 15:03:40.103651192 +0200 @@ -750,8 +750,16 @@ static int proc_resetdevice(struct dev_state *ps) { - return __usb_reset_device(ps->dev); + struct usb

[linux-usb-devel] [PATCH 5/18] usbfs: proc_connectinfo pushdown

2004-07-29 Thread Duncan Sands
--- local_tree.orig/drivers/usb/core/devio.c2004-07-25 14:50:11.447716542 +0200 +++ local_tree/drivers/usb/core/devio.c 2004-07-25 14:59:32.292267558 +0200 @@ -735,12 +735,17 @@ static int proc_connectinfo(struct dev_state *ps, void __user *arg) { struct usbdevfs_connectinfo ci; +

[linux-usb-devel] [PATCH 2/18] usbfs: proc_clearhalt pushdown

2004-07-29 Thread Duncan Sands
--- local_tree.orig/drivers/usb/core/devio.c2004-07-25 14:38:38.768837204 +0200 +++ local_tree/drivers/usb/core/devio.c 2004-07-25 14:40:17.687826010 +0200 @@ -677,22 +677,31 @@ static int proc_clearhalt(struct dev_state *ps, void __user *arg) { + struct usb_device *dev = ps->dev;

[linux-usb-devel] [PATCH 4/18] usbfs: proc_getdriver pushdown

2004-07-29 Thread Duncan Sands
--- local_tree.orig/drivers/usb/core/devio.c2004-07-25 14:40:17.687826010 +0200 +++ local_tree/drivers/usb/core/devio.c 2004-07-25 14:50:11.447716542 +0200 @@ -708,21 +708,27 @@ static int proc_getdriver(struct dev_state *ps, void __user *arg) { struct usbdevfs_getdriver gd; + s

[linux-usb-devel] [PATCH 2/18] usbfs: proc_resetep pushdown

2004-07-29 Thread Duncan Sands
--- local_tree.orig/drivers/usb/core/devio.c2004-07-25 14:37:18.758596644 +0200 +++ local_tree/drivers/usb/core/devio.c 2004-07-25 14:38:38.768837204 +0200 @@ -654,17 +654,25 @@ static int proc_resetep(struct dev_state *ps, void __user *arg) { + struct usb_device *dev = ps->dev;

[linux-usb-devel] [PATCH 1/18] usbfs: preparation

2004-07-29 Thread Duncan Sands
This way the pushdown patch for each ioctl routine becomes independent of the others. --- local_tree.orig/drivers/usb/core/devio.c2004-07-25 14:34:32.843129288 +0200 +++ local_tree/drivers/usb/core/devio.c 2004-07-25 14:37:18.758596644 +0200 @@ -1180,109 +1180,205 @@ if (!(file->f_mo

[linux-usb-devel] [PATCH 0/18] usbfs: semaphore pushdown

2004-07-29 Thread Duncan Sands
Rather than taking the semaphore dev->serialize in the top-level ioctl handler, usbdev_ioctl, push it down to the individual ioctl routines. This is a Good Thing because the ioctl routines do plenty of copy_to/from_user calls. It's better to acquire the semaphore after copying the data from the us

[linux-usb-devel] failure notice

2004-07-29 Thread MAILER-DAEMON
Hi. This is the qmail-send program at issv0171.isis.de. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. <[EMAIL PROTECTED]>: Sorry, no mailbox here by that name. (#5.1.1) --- Below this line is a co

Re: [linux-usb-devel] Driver for the Siemens ID Mouse

2004-07-29 Thread Florian Echtler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > open is much less of an issue because after open I can fork and issue > two reads anyway. Quite a few drivers simply use a semaphore to > serialize read operations. Hmm.. I updated the driver and fixed most issues (indentation and open()). See http

Re: [linux-usb-devel] enumeration fails on linux/works on windows

2004-07-29 Thread Alan Stern
On Tue, 27 Jul 2004, David Brownell wrote: > Periodically I think about changing how Linux does this -- to do exactly > that: request 18 bytes of device descriptor right away to determine > ep0 maxpacket, and assume it's 64 bytes at first (usually is!) rather > than just 8 bytes. But I lack time

Re: [linux-usb-devel] Why is usb_set_configuration() removed?

2004-07-29 Thread Alan Stern
On Thu, 29 Jul 2004, Wolfgang Mües wrote: > Hello, > > On Wednesday 28 July 2004 21:10, Alan Stern wrote: > > > This is still relatively new and hasn't percolated down to the level > > of the hotplug scripts yet. Nevertheless, in a hotplug script is the > > right place to do it. > > H... i

Re: [linux-usb-devel] Crazy idea about memory allocation

2004-07-29 Thread David Brownell
On Thursday 29 July 2004 00:56, Oliver Neukum wrote: > > > So could the usb_request structure be used on both sides? With a bit of work from the host controller drivers, yes. (OHCI looked easy, the others less so.) Then there's the issue of changing host side device drivers to use that instead

Re: [linux-usb-devel] Crazy idea about memory allocation

2004-07-29 Thread Oliver Neukum
> That's exactly the reason why the gadget API passes the endpoint in > when allocating a usb_request object (analagous to URB on host side). > Per-request host-side allocations today are: > >-URB > - URB-private data (different for each HCD) > - TD (usually just one, except for UHCI or e

[linux-usb-devel] failure notice

2004-07-29 Thread MAILER-DAEMON
Hi. This is the qmail-send program at beta.sigadel.com. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. <[EMAIL PROTECTED]>: Sorry, no mailbox here by that name. vpopmail (#5.1.1) --- Below this line

[linux-usb-devel] Защита от собак

2004-07-29 Thread Доминик Германович
Сделай шаг для полной защите. http://www.dazer2.ru d at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel