Messages in this thread | | | Date | Mon, 27 Jul 2009 11:15:15 +0100 | From | Alan Cox <> | Subject | Re: [PATCH] [RFC] ark3116: add IrDA support (for Gembird UIR-22) |
| |
> The next step was usbsnoop to find what windows driver does with the device. > The result is the patch below. Now the device works after plugging and running > "irattach /dev/ttyUSB0 -s". > > But how to make it appear as a real IrDA device by itself? Another problem is > mixing IrDA with USB serial driver. Is a separate driver (something like > ark3116-irda) needed?
For standard devices using serial/tty then irattach is the right way to do it. Nothing else should be needed.
> + irda = le16_to_cpu(serial->dev->descriptor.idProduct) == 0x3118; > + if (irda) > + dbg("IrDA mode"); > +
I would split this out into
static int is_irda(serial) { }
just so that anyone who needs to add more irda adapters can find it easily and do so neatly.
Alan
| |