Re: [linux-usb-devel] Re: SL811 USB driver interrupt handling

2003-01-20 Thread Pei Liu
>Do you know if INSERT/REMOVE interrupt works for SL811H??? the driver >seems to have that interrupt enabled but when the cable is removed.. >nothing happen... is this interrupt for exactly what i thought i meant? >(removing/insertion of cable)??? > The INSERT/REMOVE irq works for the SL811HS. W

Re: [linux-usb-devel] Re: SL811 USB driver interrupt handling

2003-01-20 Thread thomas chen
Pei Do you know if INSERT/REMOVE interrupt works for SL811H??? the driver seems to have that interrupt enabled but when the cable is removed.. nothing happen... is this interrupt for exactly what i thought i meant? (removing/insertion of cable)??? thanks --

Re: [linux-usb-devel] Re: SL811 USB driver interrupt handling

2003-01-20 Thread Pei Liu
> >Do you know if it is ACCEPTABLE to turn of SOF interrupt when there >is nothing to send It is possible, but the driver needs a different method to keep track of the frame number. I don't have the hardware specification with me, I think hardware keep tracks the frame number also, all you

Re: [linux-usb-devel] Re: SL811 USB driver interrupt handling

2003-01-20 Thread Pei Liu
>that means the packet will be sent during next frame instead? No, the sh_schedule_trans() got preempted when a xferdone irq occurs (Kinda like suspended/blocked), and will continue after the irq has been handled. (kinda like resume) >can we just change the hc_interrupt to > >if ( && urb_st

[linux-usb-devel] Re: SL811 USB driver interrupt handling

2003-01-20 Thread thomas chen
that means the packet will be sent during next frame instead? can we just change the hc_interrupt to if ( && urb_state <= 0) { if (urb_state == 0) add_packet else schedule_trans Pei Liu wrote: > > > > >but i thought sh_done_list returns (urb_state = -1) if it is d

[linux-usb-devel] Re: SL811 USB driver interrupt handling

2003-01-20 Thread Pei Liu
> >but i thought sh_done_list returns (urb_state = -1) if it is done??? >but in the hc_interrupt... it checks whether urb_state == 0... which >means it would not try another packet??? Yes, I think I understand your concern. The sh_done_list returns a -1 when it has completed the URB, in such cas

[linux-usb-devel] Re: SL811 USB driver interrupt handling

2003-01-20 Thread thomas chen
Do you know if it is ACCEPTABLE to turn of SOF interrupt when there is nothing to send a. would it stop SOF generation towards the function/device? b. can the driver turns on SOF before having something to send??? and turn if off after all ack/tarnsactions are completed this is to preve

[linux-usb-devel] Re: SL811 USB driver interrupt handling

2003-01-20 Thread Pei Liu
> >i am not sure if i understand this driver in depth the question >i have is who can multiple "packets" be sent within the same frame? Yes, you can send multiple USB transactions within the same frame. > >the interrupt service routine (hc_interrupt) seems to allow only ONE >packet per f

[linux-usb-devel] Re: SL811 USB driver interrupt handling

2003-01-20 Thread thomas chen
thanks... but i thought sh_done_list returns (urb_state = -1) if it is done??? but in the hc_interrupt... it checks whether urb_state == 0... which means it would not try another packet??? Pei Liu wrote: > > > > >i am not sure if i understand this driver in depth the question > >i have is

[linux-usb-devel] Re: SL811 USB driver interrupt handling

2003-01-20 Thread Sylvain Meunier
Hello You can have several bulk tansfert in one frame. And each device may have an interrupt packet for a frame number. In the same frame you may have one ore more isochronous, one or more interrupt, one or more bulk and one or more configure packet and for one or more device: You can have more th