From nobody Thu Mar 31 13:52:59 2022 X-Original-To: freebsd-arm@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 A9FBE1A3E49D for ; Thu, 31 Mar 2022 13:53:18 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KTlBP6Qjsz3jyx for ; Thu, 31 Mar 2022 13:53:17 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: by mail-ej1-x62d.google.com with SMTP id bq8so34314955ejb.10 for ; Thu, 31 Mar 2022 06:53:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jFr/JYFzsGbVyuaBx4yhDeGNU96+8E0h78z9O1Gjhtg=; b=JpfBwnjCcf9LUiZrJ0YuMijSgZ7/mEBbRLL8dMvc7kPKYyEeR9G+7ITEHQnx3lqs7h rZT3ctcCfhvPSjjuM7An2ZDQR/LKQZl5ikXu4pIpGMzSwT9OPhOzepLmFGwiXur7iarv mxNFuNuRkpQ4nhdyEI6K0BNDnLebj1mLRPzq2JQbMO9OKe/yYiNtUlbNpM897tW1o76N /DLyTH9oBv9UVqI3I6F8rVFFL1Me3tc5CAG/Y4QJbMIA9rPYAoV+KTO3wS4gQxHmwZIc 0eEznCVKaoZXsb2KXkymf11Hbb2U4eoJkSxhng2wxzSBjr/rWJSLMLUIPyFLgJilFSCQ sCnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jFr/JYFzsGbVyuaBx4yhDeGNU96+8E0h78z9O1Gjhtg=; b=n+evpfeX2aLHrsRb5wqJlq2PyTwSL4P5EaGUvIMwD6v0ls5k6eINJF5t+V8DSRbYxk CdRPHGQkmqJ64f/o1LGjJbrQyWYVRcxS5KsUt8MyGaA8IOsTOP9UtStjESkynMMrcbQK b4Ul2xdNZIQbQdjlD+BKAg/SNJ7GCuH0RESSD5UhpAhwDNjBZECOftM5B6sd3vaakx8X i8sFVK2u+9vB1IqVBxhvF+FUWNfqioUmJOFXp13q8t6MEby3FsCSn1pOOpGhgf7tGWey vyJUq8WOWjorhtNJo8CSyr/OotYizU8kd2JkKn7Yd2Ms4mLjBj78sV9cXM9Yz1yxOwQS la1w== X-Gm-Message-State: AOAM530wVqEBtthiENZm8b+5fTiiE7kuGKQLKTofO5mmlEhmKWaYB6bf n1/Dsscz4xgMULbjepDr4liTUpuzFh7lqwjBEu8tqBebywH6cQ== X-Google-Smtp-Source: ABdhPJwOihPbdWpSUJ8j9e3K56EVbMmLPe6i9ocLxgNF6QZhHZBACKGGaYTaZTZdlwrJgWgEoH3/aU9Tq7e1ktB4EUw= X-Received: by 2002:a17:906:7304:b0:6e0:6918:ef6f with SMTP id di4-20020a170906730400b006e06918ef6fmr5028367ejc.370.1648734790659; Thu, 31 Mar 2022 06:53:10 -0700 (PDT) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 References: <7c67118e-f6ec-c87d-9a81-3ee6a5952f49@selasky.org> <60f98b10-dcdc-cdf4-3d7a-fe9fd4dff223@selasky.org> <8226461b-5740-9c19-0575-2740bd952e16@selasky.org> <5fcece51-b014-330e-b701-fd75fa1ac204@selasky.org> In-Reply-To: From: Archimedes Gaviola Date: Thu, 31 Mar 2022 21:52:59 +0800 Message-ID: Subject: Re: Raspberry Pi 3B USB Printing Issue To: Hans Petter Selasky Cc: freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="00000000000086b3f505db83fb90" X-Rspamd-Queue-Id: 4KTlBP6Qjsz3jyx X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=JpfBwnjC; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of archimedesgaviola@gmail.com designates 2a00:1450:4864:20::62d as permitted sender) smtp.mailfrom=archimedesgaviola@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62d:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --00000000000086b3f505db83fb90 Content-Type: text/plain; charset="UTF-8" On Thu, Mar 31, 2022 at 9:22 PM Hans Petter Selasky wrote: > On 3/31/22 13:52, Archimedes Gaviola wrote: > > + /* Bi-directional USB vendor specific */ > > + {USB_IFACE_CLASS(UICLASS_VENDOR), > > + USB_IFACE_SUBCLASS(UISUBCLASS_VENDOR), > > + USB_IFACE_PROTOCOL(UIPROTO_PRINTER_BI)}, > > Can you use the product ID and vendor ID in addition to the IFACE_CLASS > in the match? Then it will be safe for other devices too, and I can > upstream it. > Are you pertaining to this code Hans, the one you've shared to me previously? + /* Epson printer */ + {USB_VPI(USB_VENDOR_EPSON, USB_PRODUCT_EPSON_TMU220B, 0)}, --00000000000086b3f505db83fb90 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Thu, Mar 31, 2022 at 9:22 PM Hans = Petter Selasky <hps@selasky.org&g= t; wrote:
On 3/3= 1/22 13:52, Archimedes Gaviola wrote:
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0/* Bi-directional USB vendor specific */ > +=C2=A0 =C2=A0 =C2=A0 =C2=A0{USB_IFACE_CLASS(UICLASS_VENDOR),
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 USB_IFACE_SUBCLASS(UISUBCLASS_VENDOR), > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 USB_IFACE_PROTOCOL(UIPROTO_PRINTER_BI)},<= br>
Can you use the product ID and vendor ID in addition to the IFACE_CLASS in the match? Then it will be safe for other devices too, and I can
upstream it.

Are you pertaining to this co= de Hans, the one you've shared to me previously?

+ =C2=A0 =C2=A0 =C2=A0 /= * Epson printer */
+ =C2=A0 =C2=A0 =C2=A0 {USB_VPI(USB_VENDOR_EPSON, USB= _PRODUCT_EPSON_TMU220B, 0)},



--00000000000086b3f505db83fb90--