From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BD449C433F5 for ; Fri, 27 May 2022 06:15:12 +0000 (UTC) Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1nuTFf-000412-Hr for kernelnewbies@archiver.kernel.org; Fri, 27 May 2022 02:15:11 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nuTDw-00021R-Sg for kernelnewbies@kernelnewbies.org; Fri, 27 May 2022 02:13:25 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 64DCD5C0131; Fri, 27 May 2022 02:13:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 27 May 2022 02:13:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1653632002; x=1653718402; bh=REnV51zBny Xp6v6Vv1LF3HL/FECEbxtgJ8fudXHYUfc=; b=k4N10Xi8ViozzM8LfHR0QQgBaY jax+jgRWeQ3L39JOm8loUyfE4QKmJL2J9XchylXozy3WrqBcIu5p0Dh1Nv6ygFA6 EqCKBX5OGnjQ4YOiaO7W1MsUt4QwqTY/8Zfdws246i6GTmTI55phByB7+tlSvSZy zx1HDgU45ExxrUL0aAf2Ed9ru/1CdJUMLNMQGTqJBQbjtSf/p/B0Zmmd5PFzQeI7 DGNNklhabKJ3gV/2143cBEEnip728kERE2K5QkLu8TupwYAUet56wFtfPhBB7Ek9 eop6uE0jknIBv85zR6qDVlkKy6S/aK0jR/qrKnAzOuj7LfK+F1FEaY7/ztLw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1653632002; x=1653718402; bh=REnV51zBnyXp6v6Vv1LF3HL/FECE bxtgJ8fudXHYUfc=; b=Bb5kVECeSbKeHVKGi6chuqDsx5lLIfAx04KmExuU77Yn /mkDqTkWoeqlfBIxL7KllDPEPNa56c/g2dbYMT3zVTruMG/lJJ8vPfC/IZvkgGKA WvctxQxM1fkothfQg9ewqdCrRvd//GzypQaphD90FzV0TCbLogJ4BNFAw05rcqYt +Guq9+LIDbDEtxrJ4cUO9A3wul65kyDv6fVsDe6XNhCa5y9YFxGo98oy6nam5Fq9 mfAsixcckB5QlOJ8E0j+eZaqsBYmK3o4CyU2WOylUfWKKKUqYfwRvZmAwsAJkxs0 iZrnBmHJb5q1y/rGZNmm/JMgA5ztEtGxT48/JCIQvA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrjeekgddutdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvvefukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpefirhgvghcumffjuceoghhrvghgsehkrhhorghhrdgtohhm qeenucggtffrrghtthgvrhhnpeehgedvvedvleejuefgtdduudfhkeeltdeihfevjeekje euhfdtueefhffgheekteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtghomh X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 27 May 2022 02:13:21 -0400 (EDT) Date: Fri, 27 May 2022 08:13:20 +0200 From: Greg KH To: Matt Silva Subject: Re: Supporting a USB HID device interface that is missing a interrupt input endpoint Message-ID: References: <1sT3lu7QxRdv6jrZycSEE8VsfPtAXiJNL5BBDBp-cMiTG3DbEau-NDI_mo8leikQo5u6KBwPS-mb_6sz0aja8idAVM5hMwg2oQ6dRzjJrXo=@protonmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Cc: "kernelnewbies@kernelnewbies.org" X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces+kernelnewbies=archiver.kernel.org@kernelnewbies.org On Thu, May 26, 2022 at 08:06:46PM +0000, Matt Silva wrote: > Hey, Greg. > > I went ahead and started implementing the changes in libusb as per your recommendation. But I'm following up cause you asked about the usbhid-dump output. > > > But this really is not a HID device, right? > > Well, Windows does decide to recognize it as a HID device. I captured some packets send to the device's control endpoint of unknown transfer type with URB function: URB Function: URB_FUNCTION_GET_MS_FEATURE_DESCRIPTOR (0x002a). Perhaps that has something to do with this as my research says that MS OS Descriptors indicate which driver Windows should use. Ah, yeah, this info, and the hid descriptor dump you provided means this is ment to be controlled from userspace with a vendor-specific program like you are writing using libusb. So you are on the right path, nice work! greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies