From welchsm@earthlink.net Wed Dec 8 14:01:51 2004 Return-Path: Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8A6616A4CE for ; Wed, 8 Dec 2004 14:01:51 +0000 (GMT) Received: from smtpauth09.mail.atl.earthlink.net (smtpauth09.mail.atl.earthlink.net [209.86.89.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id 553E043D2F for ; Wed, 8 Dec 2004 14:01:51 +0000 (GMT) (envelope-from welchsm@earthlink.net) Received: from [66.41.102.215] (helo=NitroPhys.welchsmnet.net) by smtpauth09.mail.atl.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1Cc2O6-0004ry-IP for FreeBSD-gnats-submit@freebsd.org; Wed, 08 Dec 2004 09:01:50 -0500 Received: from NitroPhys.welchsmnet.net (localhost [127.0.0.1]) by NitroPhys.welchsmnet.net (8.13.1/8.12.10) with ESMTP id iB8E17Av005494 for ; Wed, 8 Dec 2004 08:01:07 -0600 (CST) (envelope-from welchsm@localhost.welchsmnet.net) Received: (from welchsm@localhost) by NitroPhys.welchsmnet.net (8.13.1/8.13.1/Submit) id iB8E17Dv005493; Wed, 8 Dec 2004 08:01:07 -0600 (CST) (envelope-from welchsm) Message-Id: <200412081401.iB8E17Dv005493@NitroPhys.welchsmnet.net> Date: Wed, 8 Dec 2004 08:01:07 -0600 (CST) From: Sean Welch Reply-To: Sean Welch To: FreeBSD-gnats-submit@freebsd.org Cc: Subject: [patch] Samsung SPH-i500 does not attach properly as usb modem/Palm device under 5.3-RELEASE X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 74849 >Category: usb >Synopsis: [uvisor] [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: imp >State: closed >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Dec 08 14:10:07 GMT 2004 >Closed-Date: Mon Apr 13 09:50:04 MDT 2009 >Last-Modified: Mon Apr 13 09:50:04 MDT 2009 >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: Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Tue Sep 13 23:29:19 GMT 2005 Responsible-Changed-Why: Reassign. http://www.freebsd.org/cgi/query-pr.cgi?pr=74849 Responsible-Changed-From-To: freebsd-usb->imp Responsible-Changed-By: imp Responsible-Changed-When: Thu Jun 21 10:51:52 MDT 2007 Responsible-Changed-Why: I fixed the UQ_ASSUME_CM_OVER_DATA thing and have these patches in my tree. http://www.freebsd.org/cgi/query-pr.cgi?pr=74849 From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/74849: commit references a PR Date: Thu, 21 Jun 2007 17:55:35 +0000 (UTC) imp 2007-06-21 17:55:28 UTC FreeBSD src repository Modified files: sys/dev/usb if_aue.c usbdevs uvisor.c Log: Fix two PRs by adding vendor IDs: PR 108097: ADMtek 851X USB-to-LAN adapter PR 74849: Samsung SPH-i500 does not attach properly as usb modem/Palm device PR: 108097, 74849 Approved by: re@ (kensmith trivial usb blanket) Revision Changes Path 1.114 +1 -0 src/sys/dev/usb/if_aue.c 1.297 +3 -1 src/sys/dev/usb/usbdevs 1.37 +1 -0 src/sys/dev/usb/uvisor.c _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" State-Changed-From-To: open->patched State-Changed-By: linimon State-Changed-When: Sat Jun 30 06:14:10 UTC 2007 State-Changed-Why: Note that there was a commit 2007-06-21. http://www.freebsd.org/cgi/query-pr.cgi?pr=74849 From: Volker To: bug-followup@FreeBSD.org, Sean_Welch@alum.wofford.org Cc: Subject: Re: usb/74849: [usbdevs] [patch] Samsung SPH-i500 does not attach properly as usb modem/Palm device under 5.3-RELEASE Date: Sat, 23 Feb 2008 20:05:07 +0100 Sean, patches to your problem have been committed in cvs to HEAD and are now in RELENG_7 (7.0). I'm wondering if you're already running a 7.x version and can confirm your device is working fine now. note to maintainer: while this has been patched, the patches haven't been MFC'd. Please MFC so we can close this PR. State-Changed-From-To: patched->closed State-Changed-By: imp State-Changed-When: Mon Apr 13 09:50:00 MDT 2009 State-Changed-Why: These have been in a release... http://www.freebsd.org/cgi/query-pr.cgi?pr=74849 >Unformatted: