From nobody Wed Mar 1 14:07:59 2023 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 4PRbfl2tjfz3tts1; Wed, 1 Mar 2023 14:07:59 +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 4PRbfl2PJhz3Gl5; Wed, 1 Mar 2023 14:07:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677679679; 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=DsDTalW9x5K8glFGFX85ylnKA1OsyXoHTTbx8GUwfw8=; b=m7ud3Ti9wMppS46e3X9uHjPeaK/4pwJBFnTPC3rxY6TOuZx0IeDFkQxfWfe5YAzo1jID0x GHS6f4zqQLE5FkJZuyrt/dBNFhBluEgCc7VK1IB1dNFeJz0n8W/FZlaNYn4yr2+R1oSrGi +TolWgIF3s0W9XSUSm1His6W2nkSk6nlBPFlyZ+GCnraYzFMrSoyNlGeeGG6T0RxV5nFEO E+1vTJ6vs5O6swTsyBJAPm8VX6F011fbJnfW4WC9bBHJAouDaCK7P/OiY/GpMZGI2VYcx0 Sa12NJ/YUiFx9P7S5xJz6r9Y/K8p0G/URUyj0npJqP+OSFztqbjPAHlpjwGcyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677679679; 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=DsDTalW9x5K8glFGFX85ylnKA1OsyXoHTTbx8GUwfw8=; b=WbJ8tTqJhY4ehGszMd2vs26SQK3YmlBdYhILhqKHAx6Y+5iJGUzis+1HV7FeOzKm/P3GYC SMFTocfcJpkrPX004ypHdBaR4l0ZlMA6SpVfEKewt5uuVt31EGlEO7mWETUhBbWB1mn8dm XQf0fWq5Tst0a1T86wjfYn3SxQ+O+BO3HWEK34SoRdKo3kEIlcUHBSPTEdogWobXFfJ92l Uhb0TR0gdFDpdE2NleufpN7szayAn34RfMuG9em7qU8lg19Dco05hgYVOr2aCNa0/4Snz4 RcWzNgpTOJtc79n1TO0OPjpKxJh9q2bSvaLjlsKCvcEbCdYpdwS4Qpj86a1XnA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677679679; a=rsa-sha256; cv=none; b=WzjA96Sz2BTbZMpE62HIS7/IzkJIRHd2iF6GvzIWhugOZmVpZv9yVSq7skVzHcQ5sKhLNZ DWhY4AMFTDU6HMw7OOQq7YyIgHpHXeuGGjj7m4yI4Rnv1UU2KAny4Z8PHmK94K0b0c0pnr 9+HU/U82losOTqgyTcHsTjN2vKTrou79BVB2NmXc8+ze3o95fFWC07gZR1lzjqkL691IkF J0QhhI9NiJNg38pxNEN/R6Qh0U8ZzYR4HwOWCETMcMwUW7rz5lVkVS12jJYmCygO/JEQGN V+rNpid1cnABBrYgWKJ0BDQZiS1BwOAzTwqPmzmOAKMyat4VVnWajCedvXutOA== 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 4PRbfl1812zcgK; Wed, 1 Mar 2023 14:07:59 +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 321E7xXR055375; Wed, 1 Mar 2023 14:07:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 321E7xv1055374; Wed, 1 Mar 2023 14:07:59 GMT (envelope-from git) Date: Wed, 1 Mar 2023 14:07:59 GMT Message-Id: <202303011407.321E7xv1055374@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Allan Jude Subject: git: 71af885af9c8 - main - u3g(4): Add device ID for the Quectel EM160R 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: allanjude X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 71af885af9c86a900beec09d98fb9d305c303744 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by allanjude: URL: https://cgit.FreeBSD.org/src/commit/?id=71af885af9c86a900beec09d98fb9d305c303744 commit 71af885af9c86a900beec09d98fb9d305c303744 Author: Allan Jude AuthorDate: 2023-03-01 14:01:19 +0000 Commit: Allan Jude CommitDate: 2023-03-01 14:05:24 +0000 u3g(4): Add device ID for the Quectel EM160R Also add the EM160R to the man page, noting the work-around required to make it function properly in PPP mode. MFC-After: 1 week Sponsored by: Metify Inc. Sponsored by: Klara Inc. --- share/man/man4/u3g.4 | 10 ++++++++++ sys/dev/usb/serial/u3g.c | 1 + sys/dev/usb/usbdevs | 1 + 3 files changed, 12 insertions(+) diff --git a/share/man/man4/u3g.4 b/share/man/man4/u3g.4 index b5ad77d21c39..e8990968fd7b 100644 --- a/share/man/man4/u3g.4 +++ b/share/man/man4/u3g.4 @@ -74,6 +74,8 @@ Qualcomm Inc. GOBI 1000, 2000 and 3000 devices with MDM1000 or MDM2000 chipsets .It QUECTEL EC25, EM05, EM12-G, EP06-E. .It +Quectel EM160R (see CAVEATS) +.It Huawei B190, E180v, E220, E3372, E3372v153, E5573Cs322, ('') .It Novatel U740, MC950D, X950D, etc. @@ -149,6 +151,14 @@ driver was written by and .An Nick Hibma Aq Mt n_hibma@FreeBSD.org . Hardware for testing was provided by AnyWi Technologies, Leiden, NL. +.Sh CAVEATS +The Quectel EM160R is not officially supported in PPP mode. +In order to use it in PPP mode, the ctsrts option needs to be turned off, +for example, by adding: +.Dl set ctsrts off +to +.Pa /etc/ppp/ppp.conf +in the correct section. .Sh BUGS The automatic mode switch from disk mode to modem mode does not work unless the driver is either built into the kernel or loaded before the device is diff --git a/sys/dev/usb/serial/u3g.c b/sys/dev/usb/serial/u3g.c index 8bcc99d5c61d..1cdc28d93de4 100644 --- a/sys/dev/usb/serial/u3g.c +++ b/sys/dev/usb/serial/u3g.c @@ -517,6 +517,7 @@ static const STRUCT_USB_HOST_ID u3g_devs[] = { U3G_DEV(QUECTEL, EM05, 0), U3G_DEV(QUECTEL, EM12_G, 0), U3G_DEV(QUECTEL, EP06_E, 0), + U3G_DEV(QUECTEL, EM160R, 0), U3G_DEV(SIERRA, AC402, 0), U3G_DEV(SIERRA, AC595U, 0), U3G_DEV(SIERRA, AC313U, 0), diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs index 637b49d5e399..54f0a4ace3a2 100644 --- a/sys/dev/usb/usbdevs +++ b/sys/dev/usb/usbdevs @@ -3988,6 +3988,7 @@ product QUECTEL EC25 0x0125 LTE modem product QUECTEL EM05 0x0127 LTE modem product QUECTEL EP06_E 0x0306 LTE modem product QUECTEL EM12_G 0x0512 LTE modem +product QUECTEL EM160R 0x0620 LTE modem /* Quickshot products */ product QUICKSHOT STRIKEPAD 0x6238 USB StrikePad