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, URIBL_BLOCKED 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 0A155C4332B for ; Sun, 22 Mar 2020 16:38:33 +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 C3D4C20724 for ; Sun, 22 Mar 2020 16:38:32 +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="eH32jeZY"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="BHG/QANv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C3D4C20724 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 1jG3cM-00079p-DM; Sun, 22 Mar 2020 12:38:30 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jG3cK-00079j-TF for kernelnewbies@kernelnewbies.org; Sun, 22 Mar 2020 12:38:28 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 611E75C00F7; Sun, 22 Mar 2020 12:38:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 22 Mar 2020 12:38:28 -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=L79bt3Um4gM7OjhbwQAJ7Efvb04 udF/ahhWi1q5rESY=; b=eH32jeZYI48YuvDzkw1Bqiu+RduE16z5xj69m160nMT bkfBRjuuFUScCGpJ/6MTUfU6R1RTcyqQXDzY04W1wSrT9QtCZwXinj+B8RbDUn/H q94p0hFaJzC9+tEwdKGOahpe4wEb/T/20ndUHHia+diiJKrEylLYkXSelMAAA4wu +42qT6m4i5jWfqT0uoukBWINESeyNi1okK9xUJ5JNHf0y5y21G+5bgSuhOqVBl5h R/FSLHa3VABUN6/LYpatT/M9VVV4h9hTepmzhiDj9RjxJ6FctazS95GEUw6E86ou 2EUs9u6WPUYWNtUl0Q2bh18WlgukrNFqqrWIup7Rzfw== 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=L79bt3 Um4gM7OjhbwQAJ7Efvb04udF/ahhWi1q5rESY=; b=BHG/QANvd+F2qS6lb4FzTV rAuex7sEjYrmQQu+r85lEb/nzibnZ2FTs37YMexHhny7B1VUtKVuD228sCPPxyQv kqIGCrm0Xjs/ZR3ENIiS7e+9qsgB/5OGoA8lbYY3n03SmVFOh9H6gv1x+8EFUe2f txA2vZ0Q5M13r5bLyPhDD7nQ+LFFpBCVZJ8kIaMJZh5eI+K9Me4Y7y9NFwwODKsV uDmvumfLhmLmKWDTil6W451Q0RZQcC5whbDXv4sYiUt18TzVuxvchz4KSIZTR2hm BHwavp1YJNmGY1M4yE0A2iBk74PC2MBghpAq8zmMjGJzVtkw1KmiCpHhlqTEOLpg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudegiedgleefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefirhgvghcu mffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucfkphepkeefrdekiedrkeelrddutd ejnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomhepghhr vghgsehkrhhorghhrdgtohhm 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 F3C9130618C1; Sun, 22 Mar 2020 12:38:27 -0400 (EDT) Date: Sun, 22 Mar 2020 17:38:26 +0100 From: Greg KH To: Tomek The Messenger Subject: Re: the use case of MODULE_SOFTDEP Message-ID: <20200322163826.GC96331@kroah.com> References: 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.org On Sun, Mar 22, 2020 at 05:17:21PM +0100, Tomek The Messenger wrote: > What is the use case of using: > MODULE_SOFTDEP("pre: another-external-kernel-module..."); > because I completely don't understand. > If I have phandle to another-external-kernel-module in dts which is > mandatory in my kernel driver then should I put this line in my kernel > driver code? > If I use function of core.c which is my framework and this is also as > external module then should I put this line in my kernel driver code: > MODULE_SOFTDEP("pre: testframework-core"); > > Who knows please respond as this is black magic for me. If you do not understand what this does, I would not worry about it as that implies that you do not need it :) Just write a simple driver, no need for fancy frameworks or anything else, first. Then worry about optimizing it after you get review from the community. good luck! greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies