[Bug 192345] [u3g] [cdce] patch for huawei 4G/LTE modems: E3272, E3372

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Dec 2 22:48:37 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192345

--- Comment #28 from rozhuk.im at gmail.com ---
First modem interface in huawei cases is serial.
FBSD call probe() and u3g wins.
FBSD call attach() and u3g attach to all interfaces.
No more probe() call, all interfaces marked as u3g child.

There is 3 ways:
1. Now I move usbd_set_parent_iface(uaa->device, i, uaa->info.bIfaceIndex);
after usbd_transfer_setup(), witch probably success only with serial devices.

2. u3g will atach only to one device per attach() call, so some modems will
generate fews u3g devices.

3. Add check, that will call cdce probe() from u3g and on success will skip
interface.
(Same thing was done in first patch, but instead of cdce probe() call code with
dev check was duplicated)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-usb mailing list