Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Sep 2009 21:13:44 GMT
From:      Maks Verver <maksverver@geocities.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   usb/138915: [patch] add support for SheevaPlug serial interface to uftdi driver
Message-ID:  <200909172113.n8HLDieo096639@www.freebsd.org>
Resent-Message-ID: <200909172120.n8HLK0QR064437@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         138915
>Category:       usb
>Synopsis:       [patch] add support for SheevaPlug serial interface to uftdi driver
>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:   Thu Sep 17 21:20:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Maks Verver
>Release:        FreeBSD 9.0-CURRENT i386
>Organization:
>Environment:
>Description:
I have a Marvell SheevaPlug that I tried to interface with FreeBSD. It has an FTDI based USB-to-serial adapter for this purpose, and the existing uftdi driver seems to work fine, except that the USB device is currently not recognized by the driver.
>How-To-Repeat:

>Fix:
I've attached a patch to add the vendor and product id for the Marvell
SheevaPlug to the USB device list, add it to the uftdi source, and update the
uftdi man page accordingly.

Patch attached with submission follows:

diff -ur sys.bak/dev/usb/serial/uftdi.c sys/dev/usb/serial/uftdi.c
--- sys.bak/dev/usb/serial/uftdi.c	2009-09-17 22:36:04.000000000 +0200
+++ sys/dev/usb/serial/uftdi.c	2009-09-17 21:55:11.000000000 +0200
@@ -246,6 +246,7 @@
 	{USB_VPI(USB_VENDOR_INTREPIDCS, USB_PRODUCT_INTREPIDCS_NEOVI, UFTDI_TYPE_8U232AM)},
 	{USB_VPI(USB_VENDOR_BBELECTRONICS, USB_PRODUCT_BBELECTRONICS_USOTL4, UFTDI_TYPE_8U232AM)},
 	{USB_VPI(USB_VENDOR_MELCO, USB_PRODUCT_MELCO_PCOPRS1, UFTDI_TYPE_8U232AM)},
+	{USB_VPI(USB_VENDOR_MARVELL, USB_PRODUCT_MARVELL_SHEEVAPLUG, UFTDI_TYPE_8U232AM)},
 };
 
 static int
diff -ur sys.bak/dev/usb/usbdevs sys/dev/usb/usbdevs
--- sys.bak/dev/usb/usbdevs	2009-09-17 22:36:05.000000000 +0200
+++ sys/dev/usb/usbdevs	2009-09-17 21:54:03.000000000 +0200
@@ -659,6 +659,7 @@
 vendor INTEL		0x8086	Intel
 vendor SITECOM2		0x9016	Sitecom
 vendor MOSCHIP		0x9710	MosChip Semiconductor
+vendor MARVELL		0x9e88  Marvell Technology Group Ltd.
 vendor 3COM3		0xa727	3Com
 vendor HP2		0xf003	Hewlett Packard
 vendor USRP		0xfffe	GNU Radio USRP
@@ -1691,6 +1692,9 @@
 /* Macally products */
 product MACALLY MOUSE1		0x0101	mouse
 
+/* Marvell Technology Group, Ltd. products */
+product MARVELL SHEEVAPLUG	0x9e8f	SheevaPlug serial interface
+
 /* MCT Corp. */
 product MCT HUB0100		0x0100	Hub
 product MCT DU_H3SP_USB232	0x0200	D-Link DU-H3SP USB BAY Hub
diff -r share.bak/man/man4/uftdi.4 share/man/man4/uftdi.4
89a90,91
> .It
> Marvell SheevaPlug serial interface 


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909172113.n8HLDieo096639>