Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Dec 2004 08:01:07 -0600 (CST)
From:      Sean Welch <Sean_Welch@alum.wofford.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/74849: [patch] Samsung SPH-i500 does not attach properly as usb modem/Palm device under 5.3-RELEASE
Message-ID:  <200412081401.iB8E17Dv005493@NitroPhys.welchsmnet.net>
Resent-Message-ID: <200412081410.iB8EA7oG054955@freefall.freebsd.org>

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

>Number:         74849
>Category:       kern
>Synopsis:       [patch] Samsung SPH-i500 does not attach properly as usb modem/Palm device under 5.3-RELEASE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 08 14:10:07 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Sean Welch
>Release:        FreeBSD 5.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD NitroPhys.welchsmnet.net 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Sat Dec 4 10:45:39 CST 2004 welchsm@NitroPhys.welchsmnet.net:/usr/obj/usr/src/sys/NITROPHYS i386

Dell Inspiron 8000 w/ PIII 1GHz processor and vanilla install of 5.3-RELEASE
with umodem.ko and uvisor.ko kldloaded

>Description:
When attached via the usb cradle the OS attempts to attach the device
to ucom0 but gets a "device_attach: ucom0 attach returned 6" message.
Pressing the sync button gives a similar message.  /dev/ucom0 does not
get created.

>How-To-Repeat:
Attach the SPH-i500 cradle to a stock install of 5.3-RELEASE with both
umodem.ko and uvisor.ko loaded, then plug the phone into the cradle.
ucom0 will fail to attach.  Pressing the sync button will cause the
phone to switch to Palm mode (with different device IDs) and ucom0
will again fail to attach.

>Fix:

Patch for usbdevs, usb_quirks.c, and uvisor.c attached.  After these
patches are applied the above procedure results in ucom0 attaching
both as a modem (no sync button push) and as a Palm device (when the
sync button is pushed).  umodem attaches to the device (as ucom0)
initially.  When the sync button is pushed umodem detaches and uvisor
attaches (again as ucom0).  When the sync operation is completed,
uvisor detaches and umodem reattaches (once again as ucom0 -- all of
this is assuming of course that this is the only usb device on the
system).  Normal ppp can be used with speed of 230400 with this phone
as a modem and ports/palm/jpilot will sync the the device as a Palm4
organizer.

--- samsung_i500_patch.diff begins here ---
--- usbdevs.orig	Wed Dec  8 07:31:29 2004
+++ usbdevs	Sat Dec  4 09:44:13 2004
@@ -1158,6 +1158,7 @@
 
 /* Samsung products */
 product SAMSUNG ML6060		0x3008	ML-6060 laser printer
+product SAMSUNG I500		0x6601	I500 Palm USB Phone
 
 /* SanDisk products */
 product SANDISK SDDR05A		0x0001	ImageMate SDDR-05a
--- usb_quirks.c.orig	Wed Dec  8 07:31:50 2004
+++ usb_quirks.c	Sat Dec  4 09:49:34 2004
@@ -99,6 +99,8 @@
 	ANY, { UQ_ASSUME_CM_OVER_DATA }},
  { USB_VENDOR_QUALCOMM2, USB_PRODUCT_QUALCOMM_CDMA_MSM,
 	ANY, { UQ_ASSUME_CM_OVER_DATA }},
+ { USB_VENDOR_SAMSUNG, USB_PRODUCT_SAMSUNG_I500,
+	ANY, { UQ_ASSUME_CM_OVER_DATA }},
  { USB_VENDOR_SUNTAC, USB_PRODUCT_SUNTAC_AS64LX,
 	0x100, { UQ_ASSUME_CM_OVER_DATA }},
  { 0, 0, 0, { 0 } }
--- uvisor.c.orig	Wed Dec  8 07:32:13 2004
+++ uvisor.c	Sat Dec  4 11:20:34 2004
@@ -222,6 +222,7 @@
 	{{ USB_VENDOR_PALM, USB_PRODUCT_PALM_TUNGSTEN_T }, PALM4 },
 	{{ USB_VENDOR_PALM, USB_PRODUCT_PALM_ZIRE }, PALM4 },
 	{{ USB_VENDOR_PALM, USB_PRODUCT_PALM_ZIRE31 }, PALM4 },
+	{{ USB_VENDOR_SAMSUNG, USB_PRODUCT_SAMSUNG_I500 }, PALM4 },
 	{{ USB_VENDOR_SONY, USB_PRODUCT_SONY_CLIE_40 }, 0 },
 	{{ USB_VENDOR_SONY, USB_PRODUCT_SONY_CLIE_41 }, PALM4 },
 	{{ USB_VENDOR_SONY, USB_PRODUCT_SONY_CLIE_S360 }, PALM4 },
--- samsung_i500_patch.diff ends here ---


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



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