From jlp@peterson.ath.cx  Sun Sep  7 14:17:37 2003
Return-Path: <jlp@peterson.ath.cx>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 01A7616A4BF
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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" <jlp@softhome.net>
Reply-To: "Jan L. Peterson" <jlp@softhome.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: setting in uvisor.c for CLIE_40 is incorrect
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         56575
>Category:       kern
>Synopsis:       setting in uvisor.c for CLIE_40 is incorrect
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    joe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 07 14:20:07 PDT 2003
>Closed-Date:    Thu Nov 13 15:39:30 PST 2003
>Last-Modified:  Thu Nov 13 15:39:30 PST 2003
>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:
Responsible-Changed-From-To: freebsd-bugs->joe 
Responsible-Changed-By: kris 
Responsible-Changed-When: Wed Oct 8 14:46:49 PDT 2003 
Responsible-Changed-Why:  
Assign to USB maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=56575 
State-Changed-From-To: open->analyzed 
State-Changed-By: joe 
State-Changed-When: Sat Nov 8 03:18:25 PST 2003 
State-Changed-Why:  
I've committed this change to -current and will MFC it to -stable 
in a few days time. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=56575 
State-Changed-From-To: analyzed->closed 
State-Changed-By: joe 
State-Changed-When: Thu Nov 13 15:39:15 PST 2003 
State-Changed-Why:  
I've committed this to -stable. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=56575 
>Unformatted:
