From owner-freebsd-usb@freebsd.org Fri Jan 19 14:05:48 2018 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AF910EB435F for ; Fri, 19 Jan 2018 14:05:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9669382D72 for ; Fri, 19 Jan 2018 14:05:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 8B8F27A88 for ; Fri, 19 Jan 2018 14:05:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w0JE5m1g069051 for ; Fri, 19 Jan 2018 14:05:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w0JE5m4x069050 for freebsd-usb@FreeBSD.org; Fri, 19 Jan 2018 14:05:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 192345] [u3g] [cdce] patch for huawei 4G/LTE modems: E3272, E3372 Date: Fri, 19 Jan 2018 14:05:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: rozhuk.im@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: hselasky@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jan 2018 14:05:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D192345 rozhuk.im@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |--- Status|Closed |In Progress --- Comment #39 from rozhuk.im@gmail.com --- You re implement my first solution, U3G_HUAWEI_IS_CDC() =3D u3g_huawei_is_c= dc() is same. My last patch does not need this function to work. See: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D192345#c28 We do not need compare device id~s, we need only one simple thing: call usbd_set_parent_iface(uaa->device, i, uaa->info.bIfaceIndex); only after some serial sub device is attached. Current code call: usbd_set_parent_iface(uaa->device, i, uaa->info.bIfaceIndex); then try attach and if it fail then device still marked as "no need to driv= er probe". Also my patch on probe() fail return more proper code. --=20 You are receiving this mail because: You are on the CC list for the bug.=