[linux-usb-devel] Question about hub_thread

2007-08-10 Thread jidong xiao
Here are the piece of code from 2.6.22.1, 2817 static int hub_thread(void *__unused) 2818 { 2819 do { 2820 hub_events(); 2821 wait_event_interruptible(khubd_wait, 2822 !list_empty(&hub_event_list) || 2823

Re: [linux-usb-devel] Volunteer to be the new usb.ids maintainer!!

2007-07-28 Thread jidong xiao
> If you accept the role, I'll send you my backlog of approximately 370 > requests ... Stephen, I can help to update it. we can work together to deal with so many requests. Regards Jason Xiao > > -- > Vojtech Pavlik > Director SuSE Labs > -

Re: [linux-usb-devel] Volunteer to be the new usb.ids maintainer!!

2007-07-28 Thread jidong xiao
On 7/28/07, Vojtech Pavlik <[EMAIL PROTECTED]> wrote: > On Fri, Jul 27, 2007 at 11:10:46AM -0700, David Brownell wrote: > > > I think we need a new usb.ids maintainer ... I get way too much > > email from folk saying Vojtech hasn't responded so would I please > > merge the IDs. (Vojtech, if you di

Re: [linux-usb-devel] What's the difference between async and sync unlink?

2007-07-11 Thread jidong xiao
couldn't go sleep, otherwise the whole driver would not work any more.This can explain the question I raised before.Thanks. Regards Jason On 7/11/07, Oliver Neukum <[EMAIL PROTECTED]> wrote: > Am Mittwoch, 11. Juli 2007 schrieb jidong xiao: > > On 7/11/07, Oliver Neukum <[

Re: [linux-usb-devel] What's the difference between async and sync unlink?

2007-07-11 Thread jidong xiao
On 7/11/07, Oliver Neukum <[EMAIL PROTECTED]> wrote: > Am Mittwoch, 11. Juli 2007 schrieb jidong xiao: > > I see there are two routines, usb_unlink_urb and usb_kill_urb,the > > latter one should be used for sync unlinking,this means it can go to > > sleep,it won&#x

[linux-usb-devel] What's the difference between async and sync unlink?

2007-07-11 Thread jidong xiao
I see there are two routines, usb_unlink_urb and usb_kill_urb,the latter one should be used for sync unlinking,this means it can go to sleep,it won't return until the completion handler have finished.And the former one could not go to sleep.But what's difference between sync and async,I mean,why do

Re: [linux-usb-devel] Question about struct usb_hub

2007-07-03 Thread jidong xiao
Still consider following piece of code, I see there is a change in this part of code,here showed the same part of code but came from different kernel version,one is sampled from kernel 2.6.10,while another is sampled from kernel 2.6.21. inside hub_events() sampled from drivers/usb/core/hub.c, 2.6.

[linux-usb-devel] Question about struct usb_hub

2007-07-03 Thread jidong xiao
What's the difference between event_bits and change_bits? I just cannot understand why we need two variables. 188 struct usb_hub { ... 205 unsigned long event_bits[1]; /* status change bitmask */ 206 unsigned long change_bits[1]; /* ports with

Re: [linux-usb-devel] Questions about usb hub

2007-07-01 Thread jidong xiao
Another separate issue,still focus on this piece of code,(inside drivers/usb/core/hub.c, hub_configure()) > > > > 570 switch (hdev->descriptor.bDeviceProtocol) { > > 571 case 0: > > 572 break; > > 573 case 1: > > 5

Re: [linux-usb-devel] Questions about usb hub

2007-07-01 Thread jidong xiao
Great,thanks Alan and David. Your answers are exactly what I really needed. Alan, According to your implication,I took a look at rh_call_control(),and finally found such piece of code,I felt this explains my question clearly. 376 case DeviceRequest | USB_REQ_GET_DESCRIPTOR: 377

Re: [linux-usb-devel] High speed devices with kernel 2.6.21.5.

2007-07-01 Thread jidong xiao
On 6/29/07, Branden Sletteland <[EMAIL PROTECTED]> wrote: > I am seeing an issue when going from kernel version 2.6.20.14 to > 2.6.21 through 2.6.21.5 were my high speed devices are only being > recognized as full speed devices, with error output on a 2.6.21 kernel > stating: > > usb 3-1: new full

[linux-usb-devel] Questions about usb hub

2007-07-01 Thread jidong xiao
about device descriptor,according to usb spec 2.0, 1. A hub returns different descriptors based on whether it is operating at high speed or full/low speed.A hub can report three different sets of the descriptors. 2. A hub must operate at high-speed when its upstream facing port is connected at high

[linux-usb-devel] What does USB_DT_HUB_NONVAR_SIZE mean?

2007-06-28 Thread jidong xiao
Sorry I cannot find this in usb 2.0 spec. But inside the code,drivers/usb/core/hub.c: 103 /* USB 2.0 spec Section 11.24.4.5 */ 104 static int get_hub_descriptor(struct usb_device *hdev, void *data, int size) 105 { 106 int i, ret; 107 108 for (i = 0; i < 3; i+

[linux-usb-devel] Question about a basic usb concept

2007-06-27 Thread jidong xiao
What's the difference between configuration and setting?Can anybody show me any real examples, thank you. Regards Jason Xiao - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 exp

Re: [linux-usb-devel] Question about usb sg handling

2007-06-19 Thread jidong xiao
Calm down. We should discuss this problem in a rational way. I believe there should be more stories behind this mail. Even though I am not quite clear about what happened before, but I guess probably you argued on this some time back. So what are the current status? Regards Jason Xiao On 6/20/07,

Re: [linux-usb-devel] [usb-storage] handling ENOMEM in usb sg handling

2007-06-18 Thread jidong xiao
Maybe we can retry at this situation. On 6/18/07, Oliver Neukum <[EMAIL PROTECTED]> wrote: > Hi, > > I am looking at usb_sg_init(). > > void usb_sg_wait (struct usb_sg_request *io) > { >int i, entries = io->entries; > >/* queue the urbs. */ >spin_lock_irq (&io-

[linux-usb-devel] [usb-devel]Who is the parent device of a root hub?

2007-06-15 Thread jidong xiao
I found this routine, /** * usb_register_root_hub - called by HCD to register its root hub * @usb_dev: the usb root hub device to be registered. * @parent_dev: the parent device of this root hub. * * The USB host controller calls this function to register the root hub * properly with the USB