Re: [linux-usb-devel] Help with debugging no-callback problem with IrDA USB dongle (SOLVED!)

2007-05-04 Thread Oliver Neukum
Am Freitag, 4. Mai 2007 22:28 schrieb Alex Villací­s Lasso: > I think it was because I was taking the model from stir4200 and mcs7780, > and it seemed to me that they followed this pattern. If this could cause > any problems, I can rework the driver to only allocate in one of the > functions (mo

Re: [linux-usb-devel] Help with debugging no-callback problem with IrDA USB dongle (SOLVED!)

2007-05-04 Thread Alex Villací­s Lasso
Oliver Neukum escribió: > Am Donnerstag, 3. Mai 2007 22:00 schrieb Alex Villací­s Lasso: > >> - kingsun_net_open() allocates the URB and (in successful completion) >> leaves the device in the open state. A suspend/resume cycle here will >> submit rx_urb, but the interface is supposed to be ope

Re: [linux-usb-devel] Help with debugging no-callback problem with IrDA USB dongle (SOLVED!)

2007-05-03 Thread Oliver Neukum
Am Donnerstag, 3. Mai 2007 22:00 schrieb Alex Villací­s Lasso: > - kingsun_net_open() allocates the URB and (in successful completion) > leaves the device in the open state. A suspend/resume cycle here will > submit rx_urb, but the interface is supposed to be opened. Sorry, you are right. I misr

Re: [linux-usb-devel] Help with debugging no-callback problem with IrDA USB dongle (SOLVED!)

2007-05-03 Thread Alex Villací­s Lasso
Oliver Neukum escribió: > Am Donnerstag, 3. Mai 2007 18:35 schrieb Alex Villací­s Lasso: > >> /* Coming out of suspend, so reset hardware */ >> static int kingsun_resume(struct usb_interface *intf) >> { >> struct kingsun_cb *kingsun = usb_get_intfdata(intf); >> >> if (kingsun->rx

Re: [linux-usb-devel] Help with debugging no-callback problem with IrDA USB dongle (SOLVED!)

2007-05-03 Thread Oliver Neukum
Am Donnerstag, 3. Mai 2007 18:35 schrieb Alex Villací­s Lasso: > /* Coming out of suspend, so reset hardware */ > static int kingsun_resume(struct usb_interface *intf) > { > struct kingsun_cb *kingsun = usb_get_intfdata(intf); > > if (kingsun->rx_urb != NULL) usb_submit_urb(kingsun

Re: [linux-usb-devel] Help with debugging no-callback problem with IrDA USB dongle (SOLVED!)

2007-05-03 Thread Alex Villací­s Lasso
Alan Stern escribió: On the other hand, I doubt that the usb_reset_configuration() call is needed. It merely duplicates what the USB core did a few moments earlier. Why does your driver bother to do a Clear-Halt? It should not be needed. Again, because stir4200 does it and I wa

Re: [linux-usb-devel] Help with debugging no-callback problem with IrDA USB dongle

2007-05-02 Thread Alan Stern
On Wed, 2 May 2007, [UTF-8] Alex Villací­s Lasso wrote: > >> submit the interrupt urbs for either endpoint in the driver code, my > >> callback > >> code never gets called at all - not even to signal an error while > >> submitting the > >> urb. > >> > > > > That never happens. The callbac

Re: [linux-usb-devel] Help with debugging no-callback problem with IrDA USB dongle

2007-05-02 Thread Alan Stern
On Tue, 1 May 2007 [EMAIL PROTECTED] wrote: > After a big delay, I am now trying to write a driver for my USB-to-Irda > dongle. > This device reports the following in lsusb: > > Bus 002 Device 002: ID 07c0:4200 Code Mercenaries Hard- und Software GmbH > Device Descriptor: > bLength

Re: [linux-usb-devel] Help with debugging no-callback problem with IrDA USB dongle

2007-05-01 Thread Oliver Neukum
> Please notice that usbmon does log the IrDA discovery packet (the one that > starts with ), only my code does not get called for any response > on the > send. Is i possible that the device needs an init sequence you don't do? > I welcome any critique on the driver code, whether or not