From nobody Sun Apr 30 06:58:06 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 4Q8HH30bGYz48s8J; Sun, 30 Apr 2023 06:58:07 +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 4Q8HH26qWCz3NQc; Sun, 30 Apr 2023 06:58:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682837887; 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=CxdF1aLH3lsilAHT+7ZqOd6/7fTN5XIEzBTK9WIFXok=; b=D+YAusG7rjCaqHYQbyja5gGP3D+pHje8nW9dF2Fp+NmrU02FC0Io1wCtFkTcGgp+Z2W2u6 rtUfHScd7a0XpZpuhpvQKMJ9OwTZjZHz9BUS0LZUCoMkYTJFXVB581WDx6eha5lt4fVWFt IYXjyOu9kV5mWxLG6B9lic0Mib5eV9znJXhk4FTtfrs90SgdyE/hYFbFniWWtGnlDoJeff EBNj+ms19xSjQ1LKjkdHmR4edYr7Uz0k9/jjuDIGe+IXqYUMPd3GIZ+CC3JEydv+x3/2YY 4tv9R+ITkluSqrk5nrLTnIYKerSDwQBHedljMxRTCNQEZl/wiDtAjgr0M9Ke4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682837887; 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=CxdF1aLH3lsilAHT+7ZqOd6/7fTN5XIEzBTK9WIFXok=; b=lIXmGu1T4PGaMWgeNIfrQvH7JeiqrEyKyBdnA/gc7DcasV9444wj7h5+v7QJZKRGe5WT+C MFMghcFIuIbVYlI+D9Ro/hZZm817hgXI0P+flyFTkOx0G8oIL4NBTl/TSFLzjfNzZsu92v i1n0G22V/K3O18VPwKvYlEbmgZnzjGIUajb5a5O1JZoPFqSCjiuFO3GbqHAmi5gnkx+QP1 rGPFgZhCmNO7rdUbQyp/3rGpohEy7etgprcEKSiPnpIdDAWu/qbCTY7wBpTU50hniaIGkv w/F/47z/mNs3zMhnKbbXefJWl+xU6PuqPW2k5ylzr4dB9aTsOC67MQCA7XN9hw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682837887; a=rsa-sha256; cv=none; b=W6ItyinETBMJu6OrzSecYc6vcrvBDQNhnVm3gxoFQ3v1oTviHTaz9wbKEFi19xaiBEiVWU 6iOnb/2nHzC03xUPtcO1sQonurSTAQeHxVcFxkCFoSur82g63Hu8D4wse6tU5SKMNoNVZ5 2/lVeLAD2GyYiNkvVBL1i0QDbPOrXKlD0/7+gfH7dxKW6aGXU9hsvYuyJnzptIOYeBNrBe 9CEsVxJEnixtICFVKi0ndwrJajBKVkVh/+7y243y/IFnatT4r33rtD2sfhJNEc5Eu/uV0q myrhq3AA648cERFo3xB9TjXGMzqc2CbrHcgM1j4X4FS8aVZxRrHBHKrxLbs4LA== 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 4Q8HH25wQnz1CvH; Sun, 30 Apr 2023 06:58:06 +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 33U6w6Yw071788; Sun, 30 Apr 2023 06:58:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33U6w6Vk071787; Sun, 30 Apr 2023 06:58:06 GMT (envelope-from git) Date: Sun, 30 Apr 2023 06:58:06 GMT Message-Id: <202304300658.33U6w6Vk071787@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Hans Petter Selasky Subject: git: 3890a6eb01c1 - stable/13 - ulpt(4): Add support for Epson TM-U220B. 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: hselasky X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 3890a6eb01c159b8199cee296078863a468a3f22 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=3890a6eb01c159b8199cee296078863a468a3f22 commit 3890a6eb01c159b8199cee296078863a468a3f22 Author: Hans Petter Selasky AuthorDate: 2022-04-02 00:27:48 +0000 Commit: Hans Petter Selasky CommitDate: 2023-04-30 06:56:18 +0000 ulpt(4): Add support for Epson TM-U220B. Submitted by: Archimedes Gaviola Sponsored by: NVIDIA Networking (cherry picked from commit 88162f7abd61206c98432f2c0de869a59be13854) --- sys/dev/usb/serial/ulpt.c | 13 +++++++++++-- sys/dev/usb/usbdevs | 1 + 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/serial/ulpt.c b/sys/dev/usb/serial/ulpt.c index c566da924374..935dc992c6c2 100644 --- a/sys/dev/usb/serial/ulpt.c +++ b/sys/dev/usb/serial/ulpt.c @@ -499,6 +499,13 @@ static const STRUCT_USB_HOST_ID ulpt_devs[] = { {USB_IFACE_CLASS(UICLASS_PRINTER), USB_IFACE_SUBCLASS(UISUBCLASS_PRINTER), USB_IFACE_PROTOCOL(UIPROTO_PRINTER_1284)}, + + /* Epson printer */ + {USB_VENDOR(USB_VENDOR_EPSON), + USB_PRODUCT(USB_PRODUCT_EPSON_TMU220B), + USB_IFACE_CLASS(UICLASS_VENDOR), + USB_IFACE_SUBCLASS(UISUBCLASS_VENDOR), + USB_IFACE_PROTOCOL(UIPROTO_PRINTER_BI)}, }; static int @@ -555,8 +562,10 @@ ulpt_attach(device_t dev) break; } else { alt_index++; - if ((id->bInterfaceClass == UICLASS_PRINTER) && - (id->bInterfaceSubClass == UISUBCLASS_PRINTER) && + if ((id->bInterfaceClass == UICLASS_PRINTER || + id->bInterfaceClass == UICLASS_VENDOR) && + (id->bInterfaceSubClass == UISUBCLASS_PRINTER || + id->bInterfaceSubClass == UISUBCLASS_VENDOR) && (id->bInterfaceProtocol == UIPROTO_PRINTER_BI)) { goto found; } diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs index fb282568935f..bab6d835d417 100644 --- a/sys/dev/usb/usbdevs +++ b/sys/dev/usb/usbdevs @@ -1949,6 +1949,7 @@ product EPSON 1270 0x0120 Perfection 1270 scanner product EPSON 2480 0x0121 Perfection 2480 scanner product EPSON 3590 0x0122 Perfection 3590 scanner product EPSON 4990 0x012a Perfection 4990 Photo scanner +product EPSON TMU220B 0x0202 TM-U220B product EPSON CRESSI_EDY 0x0521 Cressi Edy diving computer product EPSON N2ITION3 0x0522 Zeagle N2iTion3 diving computer product EPSON STYLUS_875DC 0x0601 Stylus Photo 875DC Card Reader