Re: Motorola v.66 on USB with FreeBSD

"M. Warner Losh" <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
In message: <[email protected]>
            Colin Perkins <[email protected]> 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 [email protected]
with "unsubscribe freebsd-mobile" in the body of the message
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.