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 X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09279C43381 for ; Thu, 14 Mar 2019 20:10:28 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id AEA5520854 for ; Thu, 14 Mar 2019 20:10:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="0IJSP7uT"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ZNk22i8T" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AEA5520854 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.91) (envelope-from ) id 1h4Wfi-0005WP-7p; Thu, 14 Mar 2019 16:09:46 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1h4Wfg-0005WI-8i for kernelnewbies@kernelnewbies.org; Thu, 14 Mar 2019 16:09:44 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E5F4421ACF; Thu, 14 Mar 2019 16:09:39 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 14 Mar 2019 16:09:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=3GIJC4cRJTI1r6USsE4f0PipXtD /XxKrLzT69nOoico=; b=0IJSP7uTWzekf4fPOvRfCLVx7LGZIfgw24zYnMySv8v aIxx3zIo1zWy/2R2f4z2oO/HlcXbj3rzvvppzsbvbn1Fbkn23l7Kf4IXNingiSl6 2OXpJWRNq3IAEAzx3S9GRMdB8s/4kpiOhBhJ2JQ9EbUTzSN8kdf1Sl85TcsI9VJi an0gLM404I90H9Oote3FhzFdq4DtjZrSBBWOv7E/8tMd6knqrEjY57qzwlJ9zu3M cNOPGVUTf+XRG32Lyo7dbjdCb5l5FWp71x0oAmd+E+uBxY2gefKb1c0Pwb5qtX/C RNfpubUyy7RAlHz1QyzP7r4Nv7lj/Bw7cGj/5Hfkh/g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=3GIJC4 cRJTI1r6USsE4f0PipXtD/XxKrLzT69nOoico=; b=ZNk22i8Tw4K9HP0W/RRNqB KodMYuyThlGafua2rFgco6rfTC3fQlgv5MmUArAtgcliyrucCt3wVeVaItAYJ+e7 LuudtjgDCpcgOWcA3nTNKbfTBL+4vmpqPOEc/p9R0TLa2HtXwRClxmMbkqWmkVpm NiOl6oOyLhrkwSX0YrFQD9l0NMqNb2Sy6/R9gYzagZ+MfWTkA/hL1IlFKykuTzbN 0XM2+IF2/Qz9gWbb5BD3+HDjOA8ltJl7pVODNQeqLr9w4gcCGueC9jitzASxl52z RF7MNBd89A3rOOqlxrPgbfraox01OEeSmRD4hSkiRhwXCN0fOq2TYf0/zdqeOb2g == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrheefgdegvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjfgesthdtre dttdervdenucfhrhhomhepifhrvghgucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheq necukfhppeduvddrvdejrdeihedrvddvudenucfrrghrrghmpehmrghilhhfrhhomhepgh hrvghgsehkrhhorghhrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from localhost (unknown [12.27.65.221]) by mail.messagingengine.com (Postfix) with ESMTPA id 3613410310; Thu, 14 Mar 2019 16:09:39 -0400 (EDT) Date: Thu, 14 Mar 2019 13:09:38 -0700 From: Greg KH To: Pratyush Das Subject: Re: HID Driver Message-ID: <20190314200938.GA16742@kroah.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) 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.org On Thu, Mar 14, 2019 at 11:18:34PM +0530, Pratyush Das wrote: > Hi, > > I have a device operated via an Arduino UNO board. I would like to write a > driver for it so that my computer running linux recognises it natively. > > I have no experience writing drivers. Where should I start to specifically > do something like this? Are there any templates or guides for drivers for > this sort of thing specifically? > > Do I need to start over from scratch - learning how to write drivers? If > so, could you recommend any resources in particular which would take me on > the path to write drivers for HIDs in particular(to begin with)? You should not need to write any kernel driver for Linux to support a HID device, it's all included already. HAve you tried using your device on Linux? What did, or did not, work for you? thanks, greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies