Re: [linux-usb-devel] Help on OTG driver architecture

2005-10-10 Thread Komal Shah
--- Li Yang-r58472 <[EMAIL PROTECTED]> wrote: > Hi all, > > As there is not too much document and reference code available > around, I have some confusion regarding OTG driver architecture in > Linux. Here is my understanding. Please correct me if I am wrong, > and more clarification is apprec

[linux-usb-devel] Help on OTG driver architecture

2005-10-10 Thread Li Yang-r58472
Hi all, As there is not too much document and reference code available around, I have some confusion regarding OTG driver architecture in Linux. Here is my understanding. Please correct me if I am wrong, and more clarification is appreciated. There will be three separate drivers: host, clien

[linux-usb-devel] Re: [BUG/PATCH/RFC] Oops while completing async USB via usbdevio

2005-10-10 Thread Chris Wright
* Linus Torvalds ([EMAIL PROTECTED]) wrote: > Yes, looks ok, apart from some small details. Like "uid" adn "euid" is of > type "uid_t", not "pid_t", and I think that "kill_proc_info_as_uid()" > needs exporting for modules (I assume usbdevio can be one). > > Chris, others, comments? Agree with a

Re: [linux-usb-devel] Question on usage of urb->hcpriv field.

2005-10-10 Thread Franck
Hi Alan. 2005/10/10, Alan Stern <[EMAIL PROTECTED]>: > On Mon, 10 Oct 2005, Franck wrote: > > But sometime this field is NULL when starting an URB transfer ! That's > > normally impossible since _all_ URBs submitted to an HCD use > > "hcd->urb_enqueue", isn't it ? > > Could someone help me on this

Re: [linux-usb-devel] Re: [BUG/PATCH/RFC] Oops while completing async USB via usbdevio

2005-10-10 Thread Alan Stern
On Mon, 10 Oct 2005, Harald Welte wrote: > + if ((!info || ((unsigned long)info != 1 && > + (unsigned long)info != 2 && SI_FROMUSER(info))) > + && (euid ^ p->suid) && (euid ^ p->uid) > + && (uid ^ p->suid) && (uid ^ p->uid)) { No doubt this was copied from

[linux-usb-devel] Fw: [Bugme-new] [Bug 5350] New: oops in ohci_hcd with kernel 2.6.12 - 2.6.14-rc3-git2

2005-10-10 Thread Andrew Morton
Begin forwarded message: Date: Sun, 2 Oct 2005 15:52:16 -0700 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Bugme-new] [Bug 5350] New: oops in ohci_hcd with kernel 2.6.12 - 2.6.14-rc3-git2 http://bugzilla.kernel.org/show_bug.cgi?id=5350 Summary: oops in ohci_hcd with ke

[linux-usb-devel] Fw: [Bugme-new] [Bug 5349] New: USB card detected, but err : device not accepting address

2005-10-10 Thread Andrew Morton
Begin forwarded message: Date: Sun, 2 Oct 2005 13:26:34 -0700 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Bugme-new] [Bug 5349] New: USB card detected, but err : device not accepting address http://bugzilla.kernel.org/show_bug.cgi?id=5349 Summary: USB card detected, b

[linux-usb-devel] Re: [BUG/PATCH/RFC] Oops while completing async USB via usbdevio

2005-10-10 Thread Linus Torvalds
On Mon, 10 Oct 2005, Harald Welte wrote: > > Sorry, I've been busy, mostly with the annual netfilter developer > workshop. What about the following proposed fix: Yes, looks ok, apart from some small details. Like "uid" adn "euid" is of type "uid_t", not "pid_t", and I think that "kill_proc_inf

[linux-usb-devel] Re: [BUG/PATCH/RFC] Oops while completing async USB via usbdevio

2005-10-10 Thread Chris Wright
* Harald Welte ([EMAIL PROTECTED]) wrote: > diff --git a/kernel/signal.c b/kernel/signal.c > --- a/kernel/signal.c > +++ b/kernel/signal.c > @@ -1193,6 +1193,40 @@ kill_proc_info(int sig, struct siginfo * > return error; > } > > +/* like kill_proc_info(), but doesn't use uid/euid of "curre

[linux-usb-devel] Re: [BUG/PATCH/RFC] Oops while completing async USB via usbdevio

2005-10-10 Thread Harald Welte
On Fri, Sep 30, 2005 at 03:16:28PM -0700, Linus Torvalds wrote: > > > On Sat, 1 Oct 2005, Harald Welte wrote: > > > > please find the patch below. It compiles, but I didn't yet have the > > time to verify it makes the bug disappear and the async urb delivery is > > still working. > > No, you c

Re: [linux-usb-devel] Question on usage of urb->hcpriv field.

2005-10-10 Thread Alan Stern
On Mon, 10 Oct 2005, Franck wrote: > Hi, > > I'm still debugging my hcd. I still have some issues, and one of them > is related to urb->hcpriv usage. Following explain how I use it: > urb->hcpriv keeps a pointer on a structure which gives an internal > description of the urb for my hcd. This fiel

[linux-usb-devel] Question on usage of urb->hcpriv field.

2005-10-10 Thread Franck
Hi, I'm still debugging my hcd. I still have some issues, and one of them is related to urb->hcpriv usage. Following explain how I use it: urb->hcpriv keeps a pointer on a structure which gives an internal description of the urb for my hcd. This field is initialized in "hcd->urb_enqueue" method. T

[linux-usb-devel] RE: isp116x suspend/resume problem on Viper board

2005-10-10 Thread Olav Kongas
Ivan, Can you please test, whether the following patch will make the HC alive again after suspend-to-ram in your system. Note that the patch won't try to keep the state, it just reinitializes the controller. Olav --- linux-2.6.13-usb-resume0/drivers/usb/host/isp116x-hcd.c 2005-10-10 08:

[linux-usb-devel] [PATCH] gadget drivers - add .owner initialisation

2005-10-10 Thread Ben Dooks
Ensure the the device_driver and usb_gadget_driver have their .owner fields initialised to associate the module owner to the driver. Signed-off-by: Ben Dooks <[EMAIL PROTECTED]> diff -urN -X ../dontdiff linux-2.6.14-rc3-git8/drivers/usb/gadget/dummy_hcd.c linux-2.6.14-rc3-git8-usb/drivers/usb/gad