From nobody Thu Apr 28 06:42:40 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id AE5B01AB60E9; Thu, 28 Apr 2022 06:42:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KpmJc4L3Bz4X4L; Thu, 28 Apr 2022 06:42:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651128160; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bRmHvasSndpiMMPS45AjcLniSPo85eJSCjEufWCI0Ro=; b=oyPieqLEE6lq3x5rnNmd/cLoBTvflgeC47ZKn4TL8odUSuY5xJozi8ckl/M03fkA3Wo6+9 37PXvKl2r9EpF7S6xg7c8ld6BhP7wSqZ1ODJDU6nbbzIIsbReZO1lywUgFMPp838bdC8Ix dhGy2gjOWIRqOK45PPy0evOh51NtM+foQ0/CefAcYMgim48zL1XvUM4Mm+TcBqI0fD/sMx V4VCAZIRTSEvv3g9KVaXvRlvX8CRXG1k2g2DNisPt7FtsS6GY17ZItUA+GtvOQEY4RWfFW GvjbU2955TnNc0joGoEetLBj3x5GF8NUrjMGdzx1RCOXEcVDBDfZTV2+z4/vcA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 614CF13D6E; Thu, 28 Apr 2022 06:42:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23S6gedS066209; Thu, 28 Apr 2022 06:42:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23S6geL1066208; Thu, 28 Apr 2022 06:42:40 GMT (envelope-from git) Date: Thu, 28 Apr 2022 06:42:40 GMT Message-Id: <202204280642.23S6geL1066208@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Wojciech Macek Subject: git: 0923ff82fb38 - main - Add USB ID and quirks for Huawei E3372 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wma X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0923ff82fb383a755b2402bbf2cfece4c199a86c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651128160; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bRmHvasSndpiMMPS45AjcLniSPo85eJSCjEufWCI0Ro=; b=fyZD4p0O5GEJ7c+xomk/IU+wYpSPwtrk3N6037nCL9fQpQcZ0wo/ECLuwvHYGxQ0NemMMk wh3QuasTqF9+ow4pblspaARoSlHkA3ZdT7TRwsap0aS2shd8c90gWUAehyXXrU0lqhoMm+ A6K9A7CUbFOJxKRBExaFdxqjfB7il52bzCiJUiVtbdRWx4i9Q9HXZarqMN3XOBHpgi1FEj 3I1Sbsq44XDPVQbrNA9VAbfxO9gLxFTjpXdwcbUYNj/AzwJcZ/62JsfcVTUjDQTSP8S9Az cFXXxk4fjvVZg/Arh84L5AyU1xtkhRqqru2dXFldwrR5ovZUNXnP4a4EBTu8KQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651128160; a=rsa-sha256; cv=none; b=v283qXuyboM+wzdGL0tj4guoMtapSFhCGj7lDSNRyfYglStewI2WONjoPG8t/6G6eh1RXO WB9FGoVMhigsr7MDDHHyEXJv2MvClJ5VKmHOTtmMmZmQy9CxHlCcfAUUvjStvLfUxU9TSY voywt09sGVcyTory3FWaOb7gjaXR2KVnPl0ljgE0r/jqFDG3M+aSLuvLIA7ctzlgMJBbpz NRfWMgJMbcDj5jjp5ZnmkO7/MVZziKMxLZvEDh4Lvw0goFXs6WNX6dsry70u0kh9tbx29K 4nA3QR3bG0QDVxKsPb3tv4ZgNrAW0rssxRVWWXhsmnatYUoylysBHYnGak/v0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by wma: URL: https://cgit.FreeBSD.org/src/commit/?id=0923ff82fb383a755b2402bbf2cfece4c199a86c commit 0923ff82fb383a755b2402bbf2cfece4c199a86c Author: Kornel Duleba AuthorDate: 2022-04-26 12:11:50 +0000 Commit: Wojciech Macek CommitDate: 2022-04-28 06:42:30 +0000 Add USB ID and quirks for Huawei E3372 Set UQ_MSC_NO_INQUIRY and UQ_MSC_NO_GETMAXLUN quirks for mass storage, which is the initial mode of this dongle. The modem is shipped with at least two firmware versions: 10.X and 11.X, without ability to update to the newer one. The 11.X version works more or less fine, but the 10.X one resets after receiving either an SCSI INQUIRY, or a get_max_lun command. Since both of those are used for automatic quirk detection, this leads to a reset cycle making the device somewhat unusable. Sponsored by: Stormshield Obtained from: Semihalf Reviewed by: hps, wma Differential Revision: https://reviews.freebsd.org/D35076 --- sys/dev/usb/quirk/usb_quirk.c | 2 ++ sys/dev/usb/usbdevs | 1 + 2 files changed, 3 insertions(+) diff --git a/sys/dev/usb/quirk/usb_quirk.c b/sys/dev/usb/quirk/usb_quirk.c index d86ca5643515..60baed81863d 100644 --- a/sys/dev/usb/quirk/usb_quirk.c +++ b/sys/dev/usb/quirk/usb_quirk.c @@ -270,6 +270,8 @@ static struct usb_quirk_entry usb_quirks[USB_DEV_QUIRKS_MAX] = { USB_QUIRK(HP, CDW8200, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_CBI_I, UQ_MSC_FORCE_PROTO_ATAPI, UQ_MSC_NO_TEST_UNIT_READY, UQ_MSC_NO_START_STOP), + USB_QUIRK(HUAWEI, E3372_INIT, 0, 0xffff, UQ_MSC_NO_INQUIRY, + UQ_MSC_NO_GETMAXLUN), USB_QUIRK(IMAGINATION, DBX1, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_WRONG_CSWSIG), USB_QUIRK(INSYSTEM, USBCABLE, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_CBI, diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs index 6faaca058b96..f69dacb5fb9b 100644 --- a/sys/dev/usb/usbdevs +++ b/sys/dev/usb/usbdevs @@ -2557,6 +2557,7 @@ product HUAWEI ETS2055 0x1803 CDMA modem product HUAWEI E173 0x1c05 3G modem product HUAWEI E173_INIT 0x1c0b 3G modem initial product HUAWEI E3272 0x1c1e LTE modem +product HUAWEI E3372_INIT 0x1f01 LTE modem initial /* HUAWEI 3com products */ product HUAWEI3COM WUB320G 0x0009 Aolynk WUB320g