From owner-freebsd-mobile Tue Jan 21 5:27:49 2003 Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FB9737B401 for ; Tue, 21 Jan 2003 05:27:48 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D54243E4A for ; Tue, 21 Jan 2003 05:27:47 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.6/8.12.3) with ESMTP id h0LDRR1e083374; Tue, 21 Jan 2003 06:27:27 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 21 Jan 2003 06:25:54 -0700 (MST) Message-Id: <20030121.062554.53474181.imp@bsdimp.com> To: csp@csperkins.org Cc: mh-freebsd-mobile@free.bsd.net, freebsd-mobile@FreeBSD.ORG Subject: Re: Motorola v.66 on USB with FreeBSD From: "M. Warner Losh" In-Reply-To: <200301202335.h0KNZbOd001113@purple.nge.isi.edu> References: <20020709091959.G73986@free.bsd.net> <200301202335.h0KNZbOd001113@purple.nge.isi.edu> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In message: <200301202335.h0KNZbOd001113@purple.nge.isi.edu> Colin Perkins writes: : I've also been having trouble connecting a Motorola V.66 phone with FreeBSD, : getting exactly the error messages described below. I put together a quick : patch against -STABLE, based on updates NetBSD has made to their umodem driver, : which seems to fix this problem: : : *** umodem.c.orig Mon Jan 20 17:14:33 2003 : --- umodem.c Mon Jan 20 17:18:37 2003 : *************** : *** 319,326 **** : sc->sc_cm_over_data = 1; : } else { : if (sc->sc_cm_cap & USB_CDC_CM_OVER_DATA) { : ! err = umodem_set_comm_feature(sc, UCDC_ABSTRACT_STATE, : ! UCDC_DATA_MULTIPLEXED); : if (err) : goto bad; : sc->sc_cm_over_data = 1; : --- 319,329 ---- : sc->sc_cm_over_data = 1; : } else { : if (sc->sc_cm_cap & USB_CDC_CM_OVER_DATA) { : ! if (sc->sc_acm_cap & USB_CDC_ACM_HAS_FEATURE) { : ! err = umodem_set_comm_feature(sc, UCDC_ABSTRACT_STATE, UCDC_DATA_MULTIPLEXED); : ! } else { : ! err = 0; : ! } : if (err) : goto bad; : sc->sc_cm_over_data = 1; : : : I also submitted this to the PR database as kern/47274. This has already been fixed in -current, but since I have no easy way to test -stable + usb, I've not MFC'd the changes from current to stable. They are rather extensive since I just re-ported the umodem driver. The guts of the patch are the above changes, plus an addition to usb_quirks.c. Do you have a change to usb_quirks.c that you've not included in the PR? I have a Sanyo SCP-4900 that I got to work with FreeBSD this way. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message