From owner-freebsd-bugs@FreeBSD.ORG Wed Dec 8 14:10:07 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA3DC16A4CE for ; Wed, 8 Dec 2004 14:10:07 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C38743D48 for ; Wed, 8 Dec 2004 14:10:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iB8EA7Xd054957 for ; Wed, 8 Dec 2004 14:10:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iB8EA7oG054955; Wed, 8 Dec 2004 14:10:07 GMT (envelope-from gnats) Resent-Date: Wed, 8 Dec 2004 14:10:07 GMT Resent-Message-Id: <200412081410.iB8EA7oG054955@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sean Welch 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]) 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/74849: [patch] Samsung SPH-i500 does not attach properly as usb modem/Palm device under 5.3-RELEASE X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sean Welch List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Dec 2004 14:10:07 -0000 >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: