From nobody Sat Apr 02 00:29:38 2022 X-Original-To: dev-commits-src-main@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 8FE381A46550; Sat, 2 Apr 2022 00:29:38 +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 4KVdGB3dYHz3DNM; Sat, 2 Apr 2022 00:29:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648859378; 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=QLbzU42pOBTOOPIp+JWGFbBtclcq4FmGFLTZ4TUc1AE=; b=Y4oHKOjhwxBoFBrKOWfD2SI1+8cX4KoR2CoGbVL1gEYFZW0r9W6CE15/pqLQTYdui0vQwC 79jMowP/wZs7EgMuame8k+6NEO6PusBHmAyw6ufvxYsG/bLqd2bt+3EArdtNNmNt/bcZd3 /JfpBWozoOfRSvy9sqpIDESQiP3bI6lxbxfh8IWwBsYzKcnCoXUSMxAp+/iU6SV2eJ9CAV DNirJOlKjWmDsURFAIDCjArJExSCMFfj/9iku9/2uNF0VdU6Ay5NGSyvQLAR6MHNyGMSKv cK9ZGW0ge27lFx4qf9VBbrtomlwbma/rEBucBq9oM6t6dPg84D8jJS0eQrKLYg== 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 56ED31E171; Sat, 2 Apr 2022 00:29:38 +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 2320Tcg4020038; Sat, 2 Apr 2022 00:29:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2320TcJ6020037; Sat, 2 Apr 2022 00:29:38 GMT (envelope-from git) Date: Sat, 2 Apr 2022 00:29:38 GMT Message-Id: <202204020029.2320TcJ6020037@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Hans Petter Selasky Subject: git: 88162f7abd61 - main - ulpt(4): Add support for Epson TM-U220B. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 88162f7abd61206c98432f2c0de869a59be13854 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648859378; 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=QLbzU42pOBTOOPIp+JWGFbBtclcq4FmGFLTZ4TUc1AE=; b=wGQAxI4GJ7bNdQ0tkM2XayMqC8oDv/W2ane9RAvjHBZ7FoiVsM2fR1NgAjRTSLUQXUywKV iXJpY1Yln1JylnBXrrquYUzPfrQuOAEeu3WCsLVTqOO2VmdwdfoKe8N8fUF9L9zj2nygHt F6Qzaf8VMCrCWkqF0IsjjCc6BxLyqMlQqYzVhd2A84DdCZV69RC4e+qQ7uOhfkSTWgIkbv s00vLdSv5GBQWpogf0nRbO+1NbuSq8GZLVODFyDF2mYLxOTbf7yZvy7oXygl/n5vsoT+oT 23Ll0ky/On6d4GSJHhkvbLExGwdUBrdB1oSsMSl9mFDKX13rq8AP+l6z0XRBHA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648859378; a=rsa-sha256; cv=none; b=nF53JKFMae7NRVpfIdpyc733eps0mjAw5FXUhot9CIw7Fm4hLGoTnVPT4lnt610/UHb3ZR 7jxy9dXuT+6gLepQqsesUtf62MvYpcATJ19RJ7tKp8+Zvqir3QMJaMaDjsTf6q/i06Dpus reWUCYPBbZearLG3V8t64zrAYsLYQWSLS3Rr+PoHGaBBTMb1nPTvGKO/m/WRMzK9NDT1uk 7GEhIywukMTdj4+WPVYgoyp8fQon627NCG6h/2QZNgqLaSAdMzzW9OtB04v9ooW20MKWql u94Wtm1KE8KVKhXVFXNeUD1Y1BkJ75l33/8bxtTdVbe7sfThR57K411kBtdUww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=88162f7abd61206c98432f2c0de869a59be13854 commit 88162f7abd61206c98432f2c0de869a59be13854 Author: Hans Petter Selasky AuthorDate: 2022-04-02 00:27:48 +0000 Commit: Hans Petter Selasky CommitDate: 2022-04-02 00:29:05 +0000 ulpt(4): Add support for Epson TM-U220B. Submitted by: Archimedes Gaviola MFC after: 1 week Sponsored by: NVIDIA Networking --- 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 3b7ea2b9c1b4..6faaca058b96 100644 --- a/sys/dev/usb/usbdevs +++ b/sys/dev/usb/usbdevs @@ -1941,6 +1941,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