Re: [linux-usb-devel] Interrupt urb does complete when booting

2006-09-25 Thread e.fahle
> On Sat, 23 Sep 2006, e.fahle wrote: > > Hi, > > I wrote a driver for fullspeed device based on the code in usb_skeleton. > > Sending data to the device goes through 2 interrupt-endpoints. > > So my code uses the fill_int_urb() and submit_urb() and a callback for > > writing.. > > I allow a limite

Re: [linux-usb-devel] Interrupt urb does complete when booting

2006-09-23 Thread Alan Stern
On Sat, 23 Sep 2006, e.fahle wrote: > Hi, > I wrote a driver for fullspeed device based on the code in usb_skeleton. > Sending data to the device goes through 2 interrupt-endpoints. > So my code uses the fill_int_urb() and submit_urb() and a callback for > writing.. > I allow a limited number of

[linux-usb-devel] Interrupt urb does complete when booting

2006-09-23 Thread e.fahle
Hi, I wrote a driver for fullspeed device based on the code in usb_skeleton. Sending data to the device goes through 2 interrupt-endpoints. So my code uses the fill_int_urb() and submit_urb() and a callback for writing.. I allow a limited number of urbs to be submitted at the same time, just like

Re: [linux-usb-devel] Interrupt Handler on 2.6 called just once

2005-11-10 Thread Jayaprakash Shanmugam
Thank you David and Alan for clarifying it. On 11/9/05, Alan Stern <[EMAIL PROTECTED]> wrote: > On Wed, 9 Nov 2005, Jayaprakash Shanmugam wrote: > > > Hi all, > > I had a code that receives interrupt data from the device. It > > worked with 2.4 kernel. I migrated to 2.6 kernel and it now calls

Re: [linux-usb-devel] Interrupt Handler on 2.6 called just once

2005-11-09 Thread Alan Stern
On Wed, 9 Nov 2005, Jayaprakash Shanmugam wrote: > Hi all, > I had a code that receives interrupt data from the device. It > worked with 2.4 kernel. I migrated to 2.6 kernel and it now calls the > Interrupt handler just once. > > On 2.4, I had the following and it was working. I got my > USB

Re: [linux-usb-devel] Interrupt Handler on 2.6 called just once

2005-11-09 Thread David Brownell
On Wednesday 09 November 2005 4:46 am, Jayaprakash Shanmugam wrote: > Hi all, > I had a code that receives interrupt data from the device. It > worked with 2.4 kernel. I migrated to 2.6 kernel and it now calls the > Interrupt handler just once. Yes, in 2.4 the host controller drivers did "auto

[linux-usb-devel] Interrupt Handler on 2.6 called just once

2005-11-09 Thread Jayaprakash Shanmugam
Hi all, I had a code that receives interrupt data from the device. It worked with 2.4 kernel. I migrated to 2.6 kernel and it now calls the Interrupt handler just once. On 2.4, I had the following and it was working. I got my USBH__vIRQHandler() function called for every 200 milliseconds. s

Re: [linux-usb-devel] Interrupt endpoint problem!

2005-07-26 Thread Alan Stern
On Tue, 26 Jul 2005 [EMAIL PROTECTED] wrote: > Dear all: > > I am developing a USB Wireless adapter driver. I get a problem of > interrupt endpoint to deal with EHCI USB host. > > The problem always occur every time the interrupt endpoint send a URB > with usb_fill_int_urb ( ) and usb_submit_urb

[linux-usb-devel] Interrupt endpoint problem!

2005-07-25 Thread WSLiao0
Dear all: I am developing a USB Wireless adapter driver. I get a problem of interrupt endpoint to deal with EHCI USB host. The problem always occur every time the interrupt endpoint send a URB with usb_fill_int_urb ( ) and usb_submit_urb ( ), if interrupt interval is set to 1 (125 us). The error

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-09 Thread martin f krafft
also sprach Alan Stern <[EMAIL PROTECTED]> [2004.10.09.1833 +0200]: > Do you have the USB debugging option turned on in the kernel > configuration? Yes. -- martin; (greetings from the heart of the sun.) \ echo mailto: !#^."<*>"|tr "<*> mailto:"; [EMAIL PROTECTED] invalid/exp

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-09 Thread Alan Stern
On Sat, 9 Oct 2004, martin f krafft wrote: > also sprach Alan Stern <[EMAIL PROTECTED]> [2004.10.09.1823 +0200]: > > It would help to see the dmesg log showing what happens at these times. > > Other than the timeout messages... nothing. Do you have the USB debugging option turned on in the kerne

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-09 Thread martin f krafft
also sprach Alan Stern <[EMAIL PROTECTED]> [2004.10.09.1823 +0200]: > It would help to see the dmesg log showing what happens at these times. Other than the timeout messages... nothing. -- martin; (greetings from the heart of the sun.) \ echo mailto: !#^."<*>"|tr "<*> mailto:"

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-09 Thread Alan Stern
On Sat, 9 Oct 2004, martin f krafft wrote: > I tried both with 2.6.8.1 with the following results: > > - the ep0in timeout messages still appear > - stopping and starting hotplug does not seem to crash khubd > anymore So that patch worked. > - starting hotplug and most every USB opera

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-09 Thread martin f krafft
also sprach martin f krafft <[EMAIL PROTECTED]> [2004.10.09.1508 +0200]: > - the ep0in timeout messages still appear [...] > - my USB system seems to be broken. Specifically, I cannot sync > with my Palm anymore. Curiously, my girlfriends USB media reader > *does* work, however. Correc

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-09 Thread martin f krafft
also sprach Alan Stern <[EMAIL PROTECTED]> [2004.10.08.2000 +0200]: > The patches I sent were for 2.6.9-rc3. The first one might work > all right 2.6.8.1 but the second one definitely won't. Below is > a version of the second patch for 2.6.8.1. I tried both with 2.6.8.1 with the following result

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-08 Thread martin f krafft
also sprach Alan Stern <[EMAIL PROTECTED]> [2004.10.08.2000 +0200]: > No -- I said the fix _isn't_ in 2.6.9-rc3. Sorry, I misread you. > The patches I sent were for 2.6.9-rc3. The first one might work all right > 2.6.8.1 but the second one definitely won't. Below is a version of the > second p

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-08 Thread Alan Stern
On Fri, 8 Oct 2004, martin f krafft wrote: > > Sometimes errors like this and the ones above are just temporary. > > The device takes a moment to warm up and start working right. You > > only need to worry about it if the device doesn't work in the end. > > I do have another device (a USB servo

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-08 Thread martin f krafft
also sprach Alan Stern <[EMAIL PROTECTED]> [2004.10.08.1918 +0200]: > What kind of device is this, can you say? And did it used to work with > earlier versions of 2.6? If it did, can you pinpoint at which release it > stopped working? It's a new device, so I have not used it with anything othe

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-08 Thread Alan Stern
On Fri, 8 Oct 2004, martin f krafft wrote: > Okay, let's go after this, I disabled all modules that I could and > am now going to try to see how I can reproduce the error. USB > debugging is enabled in the kernel. > > To recap, the whole thing is about weird messages about ep0in > timeouts and th

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-08 Thread martin f krafft
Okay, let's go after this, I disabled all modules that I could and am now going to try to see how I can reproduce the error. USB debugging is enabled in the kernel. To recap, the whole thing is about weird messages about ep0in timeouts and the inability to use the affected device. With USB debuggi

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-05 Thread Alan Stern
On Tue, 5 Oct 2004, martin f krafft wrote: > also sprach Alan Stern <[EMAIL PROTECTED]> [2004.10.05.2016 +0200]: > > See if you can find out exactly what happens during the USB phase when you > > stop hotplug, > > As in, strace? That's one way. If the programs are simply shell scripts, you can

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-05 Thread martin f krafft
also sprach Alan Stern <[EMAIL PROTECTED]> [2004.10.05.2016 +0200]: > See if you can find out exactly what happens during the USB phase when you > stop hotplug, As in, strace? > Also, post the system log for that time period. And make sure you > have turned on the USB debugging option in the ker

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-05 Thread Alan Stern
On Tue, 5 Oct 2004, martin f krafft wrote: > also sprach Alan Stern <[EMAIL PROTECTED]> [2004.10.05.1754 +0200]: > > The most important thing as far as I'm concerned is to learn what > > sequence of operations caused the oops you got before. > > Okay, I think I can definitely say that the kernel

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-05 Thread martin f krafft
also sprach Alan Stern <[EMAIL PROTECTED]> [2004.10.05.1754 +0200]: > The most important thing as far as I'm concerned is to learn what > sequence of operations caused the oops you got before. Okay, I think I can definitely say that the kernel oops only happens when I stop hotplug. Doing so causes

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-05 Thread martin f krafft
also sprach Alan Stern <[EMAIL PROTECTED]> [2004.10.05.1754 +0200]: > Which messages exactly are you seeing? As stated in my original post: usb 4-6: new high speed USB device using address 5 usb 4-6: control timeout on ep0in usb 4-6: device not accepting address 5, error -71 However, it seems th

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-05 Thread Alan Stern
On Tue, 5 Oct 2004, martin f krafft wrote: > Okay, I rebooted and am seeing these messages again... Which messages exactly are you seeing? > So now I want to try what you are proposing, but I cannot seem to > unload hci_usb: > > ERROR: Module hci_usb is in use I said to unload uhci-hcd, not

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-05 Thread martin f krafft
also sprach Alan Stern <[EMAIL PROTECTED]> [2004.10.04.2325 +0200]: > Is this reproducible? What happens if you do "rmmod uhci-hcd" > yourself by hand, without involving the hotplug programs? Okay, I rebooted and am seeing these messages again... So now I want to try what you are proposing, but

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-04 Thread martin f krafft
also sprach Alan Stern <[EMAIL PROTECTED]> [2004.10.04.2325 +0200]: > Don't worry, your disassembly gave the answer we needed. For > whatever reason (I don't have time to go searching for it now), in > hcd_endpoint_disable the udev->hcpriv value stored in dev is > a NULL pointer. Of course that's

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-04 Thread Alan Stern
On Fri, 1 Oct 2004, martin f krafft wrote: > also sprach Alan Stern <[EMAIL PROTECTED]> [2004.10.01.2113 +0200]: > > No, you should use usbcore.ko. > > Okay, that worked. > > Now, the function starts at 0x5320, so +0x74 (from the oops) gives > 0x5394... so with +/- 5 lines of context: > > 0x000

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-01 Thread martin f krafft
also sprach Alan Stern <[EMAIL PROTECTED]> [2004.10.01.2113 +0200]: > No, you should use usbcore.ko. Okay, that worked. Now, the function starts at 0x5320, so +0x74 (from the oops) gives 0x5394... so with +/- 5 lines of context: 0x537e : movl $0x0,0x44(%edx,%edi,4) 0x5386 : mov$0x

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-01 Thread Alan Stern
On Fri, 1 Oct 2004, martin f krafft wrote: > Are we talking about the modules directory, or the kernel source > tree? I have the former (obviously), but the latter does not exist > -- this is the Debian stock kernel after all. I was talking about the kernel source tree. But the modules directory

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-01 Thread martin f krafft
also sprach Alan Stern <[EMAIL PROTECTED]> [2004.10.01.2026 +0200]: > One way to do this is to run "gdb hcd.o" from within the > drivers/usb/core directory, and then do "disass > hcd_endpoint_disable" at the prompt. The output isn't very > readable because no external addresses will be given. But

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-01 Thread Alan Stern
On Fri, 1 Oct 2004, martin f krafft wrote: > also sprach David Brownell <[EMAIL PROTECTED]> [2004.10.01.1930 +0200]: > > This suggests UHCI (or the hub driver?) confused usbcore somehow. > > Can you find out what's at that line? There's some GDB command > > that'll turn that into a line of C code

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-01 Thread martin f krafft
also sprach David Brownell <[EMAIL PROTECTED]> [2004.10.01.1930 +0200]: > This suggests UHCI (or the hub driver?) confused usbcore somehow. > Can you find out what's at that line? There's some GDB command > that'll turn that into a line of C code if your kernel is > appropriately compiled; doesn't

Re: [linux-usb-devel] interrupt routing problem taks khubd out

2004-10-01 Thread David Brownell
On Thursday 30 September 2004 4:53 am, martin f krafft wrote: > > I have a USB device (a built-in 7-in-1 Maxxtro USB 2.0 card reader) > in this 2.6.8.1 machine of mine, and it's acting up. I am seeing > messages such as the following every couple of seconds: > > usb 4-6: new high speed USB devi

[linux-usb-devel] interrupt routing problem taks khubd out

2004-09-30 Thread martin f krafft
Hi folks, After having spoken to Greg about this, I am giving it a shot on this list (at his recommendation). I have a USB device (a built-in 7-in-1 Maxxtro USB 2.0 card reader) in this 2.6.8.1 machine of mine, and it's acting up. I am seeing messages such as the following every couple of seconds

Re: [linux-usb-devel] interrupt out transfers - 2.4.26 (uhci)

2004-05-17 Thread Lonnie Mendez
I checked out the interval... it was being set to non-zero somewhere else in the program... corrected that, and it works. Thank you for the references. --- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForg

Re: [linux-usb-devel] interrupt out transfers - 2.4.26 (uhci)

2004-05-17 Thread Pete Zaitcev
On Mon, 17 May 2004 08:47:27 -0500 "Lonnie Mendez" <[EMAIL PROTECTED]> wrote: > I'm using the usb-uhci driver (this will also happen on the uhci driver) on > vanilla kernel 2.4.26. Problem will not occur in 2.6.x > When sending an urb down the interrupt out pipe, it will succede the first > time

[linux-usb-devel] interrupt out transfers - 2.4.26 (uhci)

2004-05-17 Thread Lonnie Mendez
I'm using the usb-uhci driver (this will also happen on the uhci driver) on vanilla kernel 2.4.26. Problem will not occur in 2.6.x When sending an urb down the interrupt out pipe, it will succede the first time. But then the next time I try this, usb-uhci will give me this error message: this o

Re: [linux-usb-devel] Interrupt-out transfer with uhci

2004-05-14 Thread Alan Stern
On Fri, 14 May 2004, Thomas Wahrenbruch wrote: > Hello list, > > the kobil_sct driver requires interrupt-out transfers to write the data > to the device. This works fine with the ochi hcd, but fails with the > uhci hcd. I attached the output from /var/log/messages. > usb_submit_urb returns -22 (-

[linux-usb-devel] Interrupt-out transfer with uhci

2004-05-14 Thread Thomas Wahrenbruch
Hello list, the kobil_sct driver requires interrupt-out transfers to write the data to the device. This works fine with the ochi hcd, but fails with the uhci hcd. I attached the output from /var/log/messages. usb_submit_urb returns -22 (-EINVAL). I tested it on a centrino notebook, but it should

[linux-usb-devel] interrupt endpoint handling

2003-11-28 Thread john
hi , i am a new to the USB linux field.. what is the correct procedure to be followed to handle interrupt endpoint..how to read data from an interrupt endpoint...should i wait infinitely for the interrupt arrival??.. or is there any completion routine like that that is triggered automatically af

Re: [linux-usb-devel] interrupt endpoint and data loss/overrun

2003-11-11 Thread G. Del Merritt
At 12:31 PM 11/11/2003, Alan Stern wrote: On Tue, 11 Nov 2003, G. Del Merritt wrote: > I'm working with two digital cameras - a Sanyo Xacti S1 and a Canon PowerShot > A80 - and I'm writing an application to talk to them which uses libusb. Each > DSC advertises that the maximum bytecount per tran

Re: [linux-usb-devel] interrupt endpoint and data loss/overrun

2003-11-11 Thread Alan Stern
On Tue, 11 Nov 2003, G. Del Merritt wrote: > I'm working with two digital cameras - a Sanyo Xacti S1 and a Canon PowerShot > A80 - and I'm writing an application to talk to them which uses libusb. Each > DSC advertises that the maximum bytecount per transfer on the interrupt > endpoint is 8 bytes

[linux-usb-devel] interrupt endpoint and data loss/overrun

2003-11-11 Thread G. Del Merritt
I'm working with two digital cameras - a Sanyo Xacti S1 and a Canon PowerShot A80 - and I'm writing an application to talk to them which uses libusb. Each DSC advertises that the maximum bytecount per transfer on the interrupt endpoint is 8 bytes, so I only read a maximum of 8 bytes at a time from

[linux-usb-devel] Interrupt

2003-06-28 Thread mama
How can I put a jump instruction into specific memory address in C language? I want to use Serial 0 interrupt in CY7C68013-128AC microchip. Norbert --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-comm

[linux-usb-devel] interrupt from userspace

2003-03-21 Thread Andreas Jellinghaus
Hi, I have a driver for three different usb crypto tokens. It works completely in userspace by using ioctls on the /proc/bus/usb/... device. Now I'd like to add support for another usb crypto token. What that token does is still 90+% the same, but it differers in one small issue: the three tokens

Re: [linux-usb-devel] Interrupt Out End-points - Comments Please

2003-02-07 Thread David Brownell
John Homppi wrote: Thanks for the comments. Where can I find the test programs that demonstrate output on an interrupt end-point. An example program would help immensely. I was just using the "usbtest" driver, in 2.5, with the module option that told it to stream OUT data using interrupt trans

RE: [linux-usb-devel] Interrupt Out End-points - Comments Please

2003-02-07 Thread John Homppi
Hi Wolfgang, Thanks for the comments. Just to clarify my assumptions, is the following a valid approach? 1) Use usb_fill_int_urb in my own driver to build a URB 2) Use usb_submit_urb to pass the URB to the USB core routines 3) Use a wait queue to await URB completion 4) (as you already stated) u

RE: [linux-usb-devel] Interrupt Out End-points - Comments Please

2003-02-06 Thread John Homppi
Thanks for the comments. Where can I find the test programs that demonstrate output on an interrupt end-point. An example program would help immensely. Everything that I tried failed (ie. libusb, HIDDEV, bulk writes to an interrupt endpoint etc.). Likely I was doing something wrong. David Brown

Re: [linux-usb-devel] Interrupt Out End-points - Comments Please

2003-02-05 Thread David Brownell
John Homppi wrote: Long description follows. the code to review is at the end of the message. === I have a device that uses interrupt OUT endpoints and I need a Linux driver. It seems to me that the existing USB driver stack does not support OUTPUT on interrupt end-points. Actually

[linux-usb-devel] Interrupt Out End-points - Comments Please

2003-02-05 Thread John Homppi
Long description follows. the code to review is at the end of the message. === I have a device that uses interrupt OUT endpoints and I need a Linux driver. It seems to me that the existing USB driver stack does not support OUTPUT on interrupt end-points. My device is an Ontrak ADU200

Re: [linux-usb-devel] Interrupt transfers

2002-05-06 Thread Johannes Erdfelt
On Mon, May 06, 2002, Daniel Cruz <[EMAIL PROTECTED]> wrote: > > Daniel Cruz wrote: > > > > > > hello, > > > > > > I'm sending information to a INT endpoint with using FILL_INT_URB and > then > > > submitting the corresponding URB, but I'm not receiving the information > all > > > the times I send

Re: [linux-usb-devel] Interrupt transfers

2002-05-06 Thread Daniel Cruz
> Daniel Cruz wrote: > > > > hello, > > > > I'm sending information to a INT endpoint with using FILL_INT_URB and then > > submitting the corresponding URB, but I'm not receiving the information all > > the times I send it, only a very few times the transaction is succesfull, > > what could I been

Re: [linux-usb-devel] Interrupt transfers

2002-05-06 Thread Thomas Davis
Daniel Cruz wrote: > > hello, > > I'm sending information to a INT endpoint with using FILL_INT_URB and then > submitting the corresponding URB, but I'm not receiving the information all > the times I send it, only a very few times the transaction is succesfull, > what could I been doing wrong?.

[linux-usb-devel] Interrupt transfers

2002-05-06 Thread Daniel Cruz
hello, I'm sending information to a INT endpoint with using FILL_INT_URB and then submitting the corresponding URB, but I'm not receiving the information all the times I send it, only a very few times the transaction is succesfull, what could I been doing wrong?.. Thanks for the help.

Re: [linux-usb-devel] Interrupt context question

2001-03-29 Thread Georg Acher
On Fri, Mar 30, 2001 at 06:09:00AM +1000, Brad Hards wrote: > I take it that my interrupt URB completion routine runs in interrupt > context. Correct. > Is is OK to submit any async urb in interrupt context? It is OK and it was supposed to work like that from the beginning. > Is it not OK t

[linux-usb-devel] Interrupt context question

2001-03-28 Thread Brad Hards
I take it that my interrupt URB completion routine runs in interrupt context. Is is OK to submit any async urb in interrupt context? Is it not OK to submit any synchronous (usb_ctrl_msg, usb_bulk_msg) in interrupt context? TIA Brad ___ [EMAIL PROTE