From owner-freebsd-bugs@FreeBSD.ORG Sun Sep 7 14:20:12 2003 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 0796A16A4C2 for ; Sun, 7 Sep 2003 14:20:12 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56E6243FDF for ; Sun, 7 Sep 2003 14:20:08 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h87LK8Up077247 for ; Sun, 7 Sep 2003 14:20:08 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h87LK8a8077246; Sun, 7 Sep 2003 14:20:08 -0700 (PDT) Resent-Date: Sun, 7 Sep 2003 14:20:08 -0700 (PDT) Resent-Message-Id: <200309072120.h87LK8a8077246@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, "Jan L. Peterson" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 01A7616A4BF for ; Sun, 7 Sep 2003 14:17:37 -0700 (PDT) Received: from aurora.peterson.ath.cx (12-254-186-217.client.attbi.com [12.254.186.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6878243FE5 for ; Sun, 7 Sep 2003 14:17:36 -0700 (PDT) (envelope-from jlp@peterson.ath.cx) Received: from peterson.ath.cx (localhost [127.0.0.1]) by aurora.peterson.ath.cx (Postfix) with ESMTP id 5A3D0C5386 for ; Sun, 7 Sep 2003 15:17:35 -0600 (MDT) Received: (from jlp@localhost) by peterson.ath.cx (8.12.6/8.12.6/Submit) id h87LHZ9J002961; Sun, 7 Sep 2003 15:17:35 -0600 (MDT) Message-Id: <200309072117.h87LHZ9J002961@peterson.ath.cx> Date: Sun, 7 Sep 2003 15:17:35 -0600 (MDT) From: "Jan L. Peterson" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/56575: setting in uvisor.c for CLIE_40 is incorrect X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Jan L. Peterson" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2003 21:20:12 -0000 >Number: 56575 >Category: kern >Synopsis: setting in uvisor.c for CLIE_40 is incorrect >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Sep 07 14:20:07 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Jan L. Peterson >Release: FreeBSD 4.9-PRERELEASE i386 >Organization: Peterson Technologies >Environment: System: FreeBSD aurora.peterson.ath.cx 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #4: Sun Sep 7 00:09:12 MDT 2003 root@aurora.peterson.ath.cx:/usr/obj/usr/src/sys/AURORA i386 >Description: I've been trying to get my Sony Clie SJ-30 to connect via USB to my laptop, but been unsuccessful. The system would log messages like this: ucom0: Palm, Inc. Palm Handheld, rev 1.00/1.00, addr 2 ucom0: init failed, STALLED device_probe_and_attach: ucom0 attach returned 6 I found that my device, which reports it's USB vendor code as 0x054c and product code as 0x0066 is actually running PalmOS 4.1. In usbdevs, those vendor and product numbers are associated with PalmOS 4.0 on the Clie, not 4.1. Looking in uvisor.c reveals that the CLIE_41 device does not have the PALM4 flag, while the CLIE_40 device does. Removing the PALM4 flag from the CLIE_40 device line lets my Clie connect and attach as it is supposed to. >How-To-Repeat: Try to sync a Clie SJ-30 with PalmOS 4.1, notice that the ucom device fails to initialize. >Fix: Apply this patch to uvisor.c: *** uvisor.c 14 Aug 2003 00:22:08 -0000 1.7.2.5 --- uvisor.c 7 Sep 2003 19:46:40 -0000 *************** *** 210,216 **** {{ USB_VENDOR_PALM, USB_PRODUCT_PALM_M505 }, PALM4 }, {{ USB_VENDOR_PALM, USB_PRODUCT_PALM_M515 }, PALM4 }, {{ USB_VENDOR_PALM, USB_PRODUCT_PALM_M125 }, PALM4 }, ! {{ USB_VENDOR_SONY, USB_PRODUCT_SONY_CLIE_40 }, PALM4 }, {{ USB_VENDOR_SONY, USB_PRODUCT_SONY_CLIE_41 }, 0 }, /* {{ USB_VENDOR_SONY, USB_PRODUCT_SONY_CLIE_25 }, PALM4 },*/ }; --- 210,216 ---- {{ USB_VENDOR_PALM, USB_PRODUCT_PALM_M505 }, PALM4 }, {{ USB_VENDOR_PALM, USB_PRODUCT_PALM_M515 }, PALM4 }, {{ USB_VENDOR_PALM, USB_PRODUCT_PALM_M125 }, PALM4 }, ! {{ USB_VENDOR_SONY, USB_PRODUCT_SONY_CLIE_40 }, 0 }, {{ USB_VENDOR_SONY, USB_PRODUCT_SONY_CLIE_41 }, 0 }, /* {{ USB_VENDOR_SONY, USB_PRODUCT_SONY_CLIE_25 }, PALM4 },*/ }; Note that I do not know if any other Sony Clie devices actually running PalmOS 4.0 require the PALM4 flag. Making this change works with my Clie. >Release-Note: >Audit-Trail: >Unformatted: