usb/138879: [uftdi] [patch] Patch to add support for CTI
USB-Mini 485 and USB-Nano 485
Hans Petter Selasky
hselasky at c2i.net
Wed Sep 16 21:53:30 UTC 2009
Hi,
Is this patched in 9-current?
--HPS
On Wednesday 16 September 2009 15:21:39 Arrigo Marchiori wrote:
> >Number: 138879
> >Category: usb
> >Synopsis: [uftdi] [patch] Patch to add support for CTI USB-Mini 485
> > and USB-Nano 485 Confidential: no
> >Severity: non-critical
> >Priority: low
> >Responsible: freebsd-usb
> >State: open
> >Quarter:
> >Keywords:
> >Date-Required:
> >Class: change-request
> >Submitter-Id: current-users
> >Arrival-Date: Wed Sep 16 13:30:06 UTC 2009
> >Closed-Date:
> >Last-Modified:
> >Originator: Arrigo Marchiori
> >Release: 7-STABLE
> >Organization:
> >Environment:
>
> FreeBSD diavoletto 7.2-STABLE FreeBSD 7.2-STABLE #2: Wed Sep 16 12:31:09
> CEST 2009 root at diavoletto:/usr/obj/usr/src/sys/GENERIC i386
>
> >Description:
>
> The attached patch adds support for the following USB-RS485 converters:
> - CTI USB-Nano 485
> - CTI USB-Mini 485
>
> The patch simply adds them to the list of supported FTDI USB converters:
> the driver seems not to need other changes.
>
> >How-To-Repeat:
> >
> >Fix:
>
> Patch attached with submission follows:
>
> diff -ru original/sys/dev/usb/uftdi.c patched/sys/dev/usb/uftdi.c
> --- original/sys/dev/usb/uftdi.c 2009-09-16 15:05:16.000000000 +0200
> +++ patched/sys/dev/usb/uftdi.c 2009-09-16 15:04:51.000000000 +0200
> @@ -169,7 +169,9 @@
> uaa->product == USB_PRODUCT_FTDI_UOPTBR ||
> uaa->product == USB_PRODUCT_FTDI_EMCU2D ||
> uaa->product == USB_PRODUCT_FTDI_PCMSFU ||
> - uaa->product == USB_PRODUCT_FTDI_EMCU2H ))
> + uaa->product == USB_PRODUCT_FTDI_EMCU2H ||
> + uaa->product == USB_PRODUCT_FTDI_CTI_USB_NANO_485 ||
> + uaa->product == USB_PRODUCT_FTDI_CTI_USB_MINI_485 ))
> return (UMATCH_VENDOR_PRODUCT);
> if (uaa->vendor == USB_VENDOR_SIIG2 &&
> (uaa->product == USB_PRODUCT_SIIG2_US2308))
> @@ -255,6 +257,8 @@
> case USB_PRODUCT_FTDI_EMCU2D:
> case USB_PRODUCT_FTDI_PCMSFU:
> case USB_PRODUCT_FTDI_EMCU2H:
> + case USB_PRODUCT_FTDI_CTI_USB_NANO_485:
> + case USB_PRODUCT_FTDI_CTI_USB_MINI_485:
> sc->sc_type = UFTDI_TYPE_8U232AM;
> sc->sc_hdrlen = 0;
> break;
> diff -ru original/sys/dev/usb/usbdevs patched/sys/dev/usb/usbdevs
> --- original/sys/dev/usb/usbdevs 2009-09-16 15:05:20.000000000 +0200
> +++ patched/sys/dev/usb/usbdevs 2009-09-16 15:04:51.000000000 +0200
> @@ -1310,6 +1310,10 @@
> product FTDI CFA_631 0xfc0c Crystalfontz CFA-631 USB LCD
> product FTDI CFA_635 0xfc0d Crystalfontz CFA-635 USB LCD
> product FTDI SEMC_DSS20 0xfc82 SEMC DSS-20 SyncStation
> +/* Commerzielle und Technische Informationssysteme GmbH products also use
> + FTDI's id: */
> +product FTDI CTI_USB_NANO_485 0xf60b CTI USB-Nano 485
> +product FTDI CTI_USB_MINI_485 0xf608 CTI USB-Mini 485
>
> /* Fuji photo products */
> product FUJIPHOTO MASS0100 0x0100 Mass Storage
>
> >Release-Note:
> >Audit-Trail:
> >Unformatted:
>
> _______________________________________________
> freebsd-usb at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-usb
> To unsubscribe, send any mail to "freebsd-usb-unsubscribe at freebsd.org"
More information about the freebsd-usb
mailing list