Re: [PATCH] New ID for ftdi_sio

From: Kronos
Date: Sat Apr 10 2004 - 10:42:21 EST


Il Fri, Apr 09, 2004 at 12:14:50PM -0700, Greg KH ha scritto:
> On Thu, Apr 08, 2004 at 06:51:23PM +0200, Kronos wrote:
> > Hi,
> > I have an USB contactless reader which uses a FTDI chip. It works well with the
> > current ftdi_sio driver, it's just a matter of adding an ID:
>
> Ick, this patch doesn't apply due to all of the recent ids being added
> to this driver. Can you re-diff it against the latest -mm tree and
> resend it to me?

Here it is:

--- linux-2.6/drivers/usb/serial/ftdi_sio.h.orig 2004-04-10 17:35:27.000000000 +0200
+++ linux-2.6/drivers/usb/serial/ftdi_sio.h 2004-04-10 17:36:47.000000000 +0200
@@ -191,6 +191,9 @@
#define LINX_FUTURE_1_PID 0xF44B /* Linx future device */
#define LINX_FUTURE_2_PID 0xF44C /* Linx future device */

+/* Inside Accesso contactless reader (http://www.insidefr.com) */
+#define INSIDE_ACCESSO 0xFAD0
+
/* Commands */
#define FTDI_SIO_RESET 0 /* Reset the port */
#define FTDI_SIO_MODEM_CTRL 1 /* Set the modem control register */
--- linux-2.6/drivers/usb/serial/ftdi_sio.c.orig 2004-04-10 17:36:52.000000000 +0200
+++ linux-2.6/drivers/usb/serial/ftdi_sio.c 2004-04-10 17:38:07.000000000 +0200
@@ -354,6 +354,7 @@
{ USB_DEVICE_VER(FTDI_VID, PROTEGO_SPECIAL_3, 0, 0x3ff) },
{ USB_DEVICE_VER(FTDI_VID, PROTEGO_SPECIAL_4, 0, 0x3ff) },
{ USB_DEVICE_VER(FTDI_VID, FTDI_ELV_UO100_PID, 0, 0x3ff) },
+ { USB_DEVICE_VER(FTDI_VID, INSIDE_ACCESSO, 0, 0x3ff) },
{ } /* Terminating entry */
};

@@ -558,6 +559,7 @@
{ USB_DEVICE_VER(FTDI_VID, LINX_FUTURE_0_PID, 0x400, 0xffff) },
{ USB_DEVICE_VER(FTDI_VID, LINX_FUTURE_1_PID, 0x400, 0xffff) },
{ USB_DEVICE_VER(FTDI_VID, LINX_FUTURE_2_PID, 0x400, 0xffff) },
+ { USB_DEVICE(FTDI_VID, INSIDE_ACCESSO) },
{ } /* Terminating entry */
};



Luca
--
Home: http://kronoz.cjb.net
Al termine di un pranzo di nozze mi hanno dato un
amaro alle erbe cosi' schifoso che perfino sull'etichetta
c'era un frate che vomitava.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/