From owner-freebsd-mobile Tue Jan 21 9:34:47 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 33E3437B401 for ; Tue, 21 Jan 2003 09:34:45 -0800 (PST) Received: from chiron.nge.isi.edu (chiron.nge.isi.edu [65.114.169.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32DB543ED8 for ; Tue, 21 Jan 2003 09:34:45 -0800 (PST) (envelope-from csp@isi.edu) Received: from chiron (csp@localhost) by chiron.nge.isi.edu (8.11.6/8.11.6) with ESMTP id h0LHYcm18445; Tue, 21 Jan 2003 12:34:38 -0500 Message-Id: <200301211734.h0LHYcm18445@chiron.nge.isi.edu> To: "M. Warner Losh" Cc: mh-freebsd-mobile@free.bsd.net, freebsd-mobile@FreeBSD.ORG Subject: Re: Motorola v.66 on USB with FreeBSD In-Reply-To: Your message of "Tue, 21 Jan 2003 06:25:54 MST." <20030121.062554.53474181.imp@bsdimp.com> Date: Tue, 21 Jan 2003 12:34:38 -0500 From: Colin Perkins 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 --> "M. Warner Losh" writes: >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_MULTIPL >EXED); >: ! } 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? No, the changes to umodem.c were sufficient to get the v66 phone working. Colin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message