It makes no sense to renumber the FT232_1 entry.  That is just creating
churn.

As to the 0x0000 entry, I'm wondering whether it should be named something
like the following, as a historical reminder:

+product FTDI FT232_JERKS   0x0000      Serial

> some time back, FTDI released a driver for their USB RS232 adaptors that
> changed the USB device ID of aftermarket devices to 0x0000, so that they
> wouldn't work  on any machine,  even with  the older FTDI  drivers, from
> then on ([0] has further info on that).
> 
> The fix for that  is relatively simple: Add USB device  ID 0x0000 to our
> uftdi(4).  The patch  below the  signature  does just  that. I've  added
> 0x0000 as  USB_PRODUCT_FTDI_FT232_1 and  moved the previous  _FT232_1 to
> the vacant _FT232_2 slot to preserve the device ID ordering.
> 
> [0]: http://hackaday.com/2014/10/22/w/
> 
> -- 
>       Gregor
> --
> 
> Index: dev/usb/uftdi.c
> ===================================================================
> RCS file: /mnt/media/cvs/src/sys/dev/usb/uftdi.c,v
> retrieving revision 1.74
> diff -u -p -r1.74 uftdi.c
> --- dev/usb/uftdi.c   18 Jun 2015 09:47:16 -0000      1.74
> +++ dev/usb/uftdi.c   21 Feb 2016 16:33:51 -0000
> @@ -232,6 +232,7 @@ static const struct usb_devno uftdi_devs
>       { USB_VENDOR_FTDI, USB_PRODUCT_FTDI_FISCO },
>       { USB_VENDOR_FTDI, USB_PRODUCT_FTDI_FT232RL },
>       { USB_VENDOR_FTDI, USB_PRODUCT_FTDI_FT232_1 },
> +     { USB_VENDOR_FTDI, USB_PRODUCT_FTDI_FT232_2 },
>       { USB_VENDOR_FTDI, USB_PRODUCT_FTDI_FT232_3 },
>       { USB_VENDOR_FTDI, USB_PRODUCT_FTDI_FT232_4 },
>       { USB_VENDOR_FTDI, USB_PRODUCT_FTDI_FT232_5 },
> Index: dev/usb/usbdevs
> ===================================================================
> RCS file: /mnt/media/cvs/src/sys/dev/usb/usbdevs,v
> retrieving revision 1.662
> diff -u -p -r1.662 usbdevs
> --- dev/usb/usbdevs   8 Jan 2016 09:31:32 -0000       1.662
> +++ dev/usb/usbdevs   21 Feb 2016 16:19:45 -0000
> @@ -1761,7 +1761,8 @@ product FOXCONN PIRELLI_DP_L10  0xe003  Pi
>  product FREECOM DVD          0xfc01  Connector for DVD drive
>  
>  /* Future Technology Devices products */
> -product FTDI FT232_1         0x0232  Serial
> +product FTDI FT232_1         0x0000  Serial
> +product FTDI FT232_2         0x0232  Serial
>  product FTDI SERIAL_8U232AM  0x6001  8U232AM Serial
>  product FTDI SERIAL_8U232AM4 0x6004  8U232AM Serial
>  product FTDI FT232_3         0x6006  Serial
> Index: dev/usb/usbdevs.h
> ===================================================================
> RCS file: /mnt/media/cvs/src/sys/dev/usb/usbdevs.h,v
> retrieving revision 1.674
> diff -u -p -r1.674 usbdevs.h
> --- dev/usb/usbdevs.h 8 Jan 2016 09:31:57 -0000       1.674
> +++ dev/usb/usbdevs.h 21 Feb 2016 16:19:59 -0000
> @@ -1,4 +1,4 @@
> -/*   $OpenBSD: usbdevs.h,v 1.674 2016/01/08 09:31:57 mpi Exp $       */
> +/*   $OpenBSD$       */
>  
>  /*
>   * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
> @@ -1768,7 +1768,8 @@
>  #define      USB_PRODUCT_FREECOM_DVD 0xfc01          /* Connector for DVD 
> drive */
>  
>  /* Future Technology Devices products */
> -#define      USB_PRODUCT_FTDI_FT232_1        0x0232          /* Serial */
> +#define      USB_PRODUCT_FTDI_FT232_1        0x0000          /* Serial */
> +#define      USB_PRODUCT_FTDI_FT232_2        0x0232          /* Serial */
>  #define      USB_PRODUCT_FTDI_SERIAL_8U232AM 0x6001          /* 8U232AM 
> Serial */
>  #define      USB_PRODUCT_FTDI_SERIAL_8U232AM4        0x6004          /* 
> 8U232AM Serial */
>  #define      USB_PRODUCT_FTDI_FT232_3        0x6006          /* Serial */
> Index: dev/usb/usbdevs_data.h
> ===================================================================
> RCS file: /mnt/media/cvs/src/sys/dev/usb/usbdevs_data.h,v
> retrieving revision 1.668
> diff -u -p -r1.668 usbdevs_data.h
> --- dev/usb/usbdevs_data.h    8 Jan 2016 09:31:57 -0000       1.668
> +++ dev/usb/usbdevs_data.h    21 Feb 2016 16:19:59 -0000
> @@ -1,4 +1,4 @@
> -/*   $OpenBSD: usbdevs_data.h,v 1.668 2016/01/08 09:31:57 mpi Exp $  */
> +/*   $OpenBSD$       */
>  
>  /*
>   * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
> @@ -3171,6 +3171,10 @@ const struct usb_known_product usb_known
>       },
>       {
>           USB_VENDOR_FTDI, USB_PRODUCT_FTDI_FT232_1,
> +         "Serial",
> +     },
> +     {
> +         USB_VENDOR_FTDI, USB_PRODUCT_FTDI_FT232_2,
>           "Serial",
>       },
>       {
> 

Reply via email to