Bug 197753 - Add support for ZTE MF730M 3G modem
Summary: Add support for ZTE MF730M 3G modem
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 9.3-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: Hans Petter Selasky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-17 00:53 UTC by Gary
Modified: 2015-03-25 11:14 UTC (History)
1 user (show)

See Also:


Attachments
Tested patch (1.66 KB, patch)
2015-02-17 00:53 UTC, Gary
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gary 2015-02-17 00:53:21 UTC
Created attachment 153095 [details]
Tested patch

See attached patch.  Tested and works on 9.3-RELEASE-p9
Comment 1 Hans Petter Selasky freebsd_committer freebsd_triage 2015-02-17 10:32:34 UTC
Hi,

Can you re-test using 9-stable. Is the mass storage quirk really needed?

--HPS
Comment 2 Gary 2015-02-17 18:42:17 UTC
100% unaltered 9-stable kernel (9.3-STABLE r278894) shows:

usb_alloc_device: Found possible auto-install disk (trying next config)
ugen1.2: <ZTE,Incorporated> at usbus1
umass0: <Mass Storage> on usbus1
umass0:  SCSI over Bulk-Only; quirks = 0x0000
umass0: Get Max Lun not supported (USB_ERR_STALLED)
umass0:6:0:-1: Attached to scbus6
run_interrupt_driven_hooks: still waiting after 60 seconds for xpt_config
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command
run_interrupt_driven_hooks: still waiting after 120 seconds for xpt_config
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command
run_interrupt_driven_hooks: still waiting after 180 seconds for xpt_config
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command
run_interrupt_driven_hooks: still waiting after 240 seconds for xpt_config
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command
run_interrupt_driven_hooks: still waiting after 300 seconds for xpt_config
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Error 5, Retries exhausted

boot hung for over 5 minutes waiting for that


After adding the U3G and usbdevs entries, I couldn't get it to hang like that again, but it also didn't present the rndis device

dmesg shows:

usb_alloc_device: Found possible auto-install disk (trying next config)
ugen1.2: <ZTE,Incorporated> at usbus1

% /sbin/ifconfig -a | grep ue0
%
Comment 3 Hans Petter Selasky freebsd_committer freebsd_triage 2015-02-26 09:55:41 UTC
One final question:

Does your patch work without the "UQ_CFG_INDEX_0" in the mass storage quirk?

--HPS
Comment 4 commit-hook freebsd_committer freebsd_triage 2015-03-07 17:11:25 UTC
A commit references this bug:

Author: hselasky
Date: Sat Mar  7 17:11:09 UTC 2015
New revision: 279725
URL: https://svnweb.freebsd.org/changeset/base/279725

Log:
  Add more USB IDs.

  PR:		197753
  MFC after:	1 week

Changes:
  head/sys/dev/usb/quirk/usb_quirk.c
  head/sys/dev/usb/serial/u3g.c
  head/sys/dev/usb/usbdevs
Comment 5 commit-hook freebsd_committer freebsd_triage 2015-03-25 11:13:49 UTC
A commit references this bug:

Author: hselasky
Date: Wed Mar 25 11:12:49 UTC 2015
New revision: 280569
URL: https://svnweb.freebsd.org/changeset/base/280569

Log:
  MFC r279725:
  Add more USB IDs.

  PR:		197753

Changes:
_U  stable/10/
  stable/10/sys/dev/usb/quirk/usb_quirk.c
  stable/10/sys/dev/usb/serial/u3g.c
  stable/10/sys/dev/usb/usbdevs
Comment 6 commit-hook freebsd_committer freebsd_triage 2015-03-25 11:14:50 UTC
A commit references this bug:

Author: hselasky
Date: Wed Mar 25 11:14:19 UTC 2015
New revision: 280570
URL: https://svnweb.freebsd.org/changeset/base/280570

Log:
  MFC r279725:
  Add more USB IDs.

  PR:		197753

Changes:
_U  stable/9/sys/
_U  stable/9/sys/dev/
  stable/9/sys/dev/usb/quirk/usb_quirk.c
  stable/9/sys/dev/usb/serial/u3g.c
  stable/9/sys/dev/usb/usbdevs