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=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no 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 1AB34C47247 for ; Tue, 5 May 2020 14:21:31 +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 CF64220675 for ; Tue, 5 May 2020 14:21:30 +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="I5K0oWrq"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="SS24jDZX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CF64220675 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1jVyRA-0008T4-8R; Tue, 05 May 2020 10:20:44 -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.92.3) (envelope-from ) id 1jVyR8-0008Sb-Fz for kernelnewbies@kernelnewbies.org; Tue, 05 May 2020 10:20:42 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 021015C00E7; Tue, 5 May 2020 10:20:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 05 May 2020 10:20: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=Nnsxne+W3t0Zv1nTs0T7trCM4Xv lH3i8+X1QfuLhie4=; b=I5K0oWrqVHTvD4KJNSc251zBThv7HQp40yh6kxzNc+D 2f04RNxG/YKiBxBydrpFRxQu91drDworZgbOpjMx664qHfOI3DQchm5e0N2R2GHB OMmLkrJib6sgagAGfcP8nflsRqMEVR2VxQ+vH/C5sFiafMWLjexn6CKr3hU8ixBv 2kBzCfGZ8iVQo8H/SCbEU2UZh5eh1cmMao7LeKonfL0LxJq19N/5LKgSVEkaYsd7 CWNgm3y7reGPDCj9WzCJjRvGwNtsoW2R/AtJ+mRwPXdWRu83u6q0EkB43dxROzk3 nnzJJ0HYyHttBpSzJeRdUYhV3a48G7z2aXdbr3HKqIQ== 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=Nnsxne +W3t0Zv1nTs0T7trCM4XvlH3i8+X1QfuLhie4=; b=SS24jDZXoq2OmNWDtoS6ts abgnlhtyiMB5ne1bcRsPNS/fdCVaY3BWTDWbyrksDpwhLi3kAvGrQXskrStI5uFw ltP57djqWIFbJj4qhZ/onDrLhXFsei5XHkJXIpZOm19DqnF1bLu04+oO8fbq8fq6 I7YxXoeJYjQEJn9q1NMxfto6GWvOaYtcNlMO6rhiiaQ3a/CCC6uF1qCB8bz/7BHH T12yYzYzemeb1B21YPl3emffXfrVQgC7Iw3X87CvvhtlliZI5KFt9X6GnlgpMona cOz/NRQXBmGFhxJi+dOu9Tdb8z7jbNFwkqs5BM2WipHDlSsGscSrkkokUVgNA0VQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrjeeigdejudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttdertd dttddvnecuhfhrohhmpefirhgvghcumffjuceoghhrvghgsehkrhhorghhrdgtohhmqeen ucggtffrrghtthgvrhhnpeevueehjefgfffgiedvudekvdektdelleelgefhleejieeuge egveeuuddukedvteenucfkphepkeefrdekiedrkeelrddutdejnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrdgtoh hm X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id D9CC3328006A; Tue, 5 May 2020 10:20:35 -0400 (EDT) Date: Tue, 5 May 2020 16:20:32 +0200 From: Greg KH To: Jacko Dirks Subject: Re: Location of files for a new driver Message-ID: <20200505142032.GA793696@kroah.com> References: <20200505135828.GA466217@vasteMachine> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200505135828.GA466217@vasteMachine> 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 Tue, May 05, 2020 at 03:58:28PM +0200, Jacko Dirks wrote: > Hello, > > I am starting to work on a new driver. I think the actual driver > (c file) needs to be placed in drivers/staging/subdir (am I > correct?). drivers/staging/ is only for code that needs lots and lots of work to get into the "real" part of the kernel. It also requires a TODO file that lists what is left to do to get it out of that location. If you can write that TODO list, it's almost always easier to just do that work yourself and then get the code merged into the real part of the kernel than to put it into drivers/staging/ > But I also need to edit existing dts and dtsi files and I > also need to introduce a new overlay. Where do I place those changes and > new files? It all depends on what you are writing. What exactly does this code do? That will determine where it goes in the kernel tree. thanks, greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies