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=-3.5 required=3.0 tests=BAYES_00,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 87306C433DB for ; Tue, 30 Mar 2021 16:49:37 +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 E92AB61994 for ; Tue, 30 Mar 2021 16:49:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E92AB61994 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.94) (envelope-from ) id 1lRHYP-00069a-LX; Tue, 30 Mar 2021 12:49:21 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lRHYM-00069V-UT for kernelnewbies@kernelnewbies.org; Tue, 30 Mar 2021 12:49:19 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 2F37F5C0110 for ; Tue, 30 Mar 2021 12:49:17 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Tue, 30 Mar 2021 12:49:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=Zogw0bYdxFFJyR0ZkGgNFMC3r+e WO0Mh4S6hKZExGlE=; b=joSeLwG4s3ThZsMi/MxqwG3PLEfWbclcqqpBDboamVb CmVNc5GuRq1ZtufAhfMI+JPaF1dGH8e9dXpc2wuCCxwXRO1Pk1IXsUt7880xh4ki 9wMtHJjZKoEneN3cK3q0fEIE2f+B+iqkGyP1KB7wFQCp3NywVPbNmI5Sb2+Lhb62 xdcECE6OwYf2/7gA+swetDr0QwT+7tJ5SIISUVSMCtOcz49vbgXegRr7/L/3QJRx r+NETPxkUgKZ0Bb1iPEXKe8qvKv8zBtotyOrDLTLI4fCrJoALrgezij1y7pYsxZR jF206qNJAwRQT9pSid2D2bKsBmrJLihRCOh7KiLfyTg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=Zogw0b YdxFFJyR0ZkGgNFMC3r+eWO0Mh4S6hKZExGlE=; b=q9WK4GwHxzUO57usJRIQ/l 939F59CV15xSINTaQ7sfKN3E+Jp34BDt3wkZRFQmlFKRqTmHPuBSBzG+IKdyvhdT 4xOvqecAIHbPt8sO9yvgTesbhUUJH5UU3rJbZYKgBraAInk2syYzwJ7so6Hvq+9w WkmuR48H3DhqY0mLVCE8EqDc6sLWLTrQO8wy0b91ZFarONublm2PsFHVobCfFPh2 1UKr9D2UYCtXw1saI+xgIOzTiH1JcM3iNvRbczCSwOjcwctEt/7AEcMWr6UAY3oC UaqldeVyyNUYCmwr7XdBoUFl+ILJwyIYxUfsmgedRd46bg3BiQKuR3e2cUdpcKhg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudeitddguddthecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpefirhgvghcumffjuceoghhrvghgsehkrhhorghhrdgtohhm qeenucggtffrrghtthgvrhhnpeevueehjefgfffgiedvudekvdektdelleelgefhleejie eugeegveeuuddukedvteenucfkphepkeefrdekiedrjeegrdeigeenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtg homh X-ME-Proxy: Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) by mail.messagingengine.com (Postfix) with ESMTPA id 87DC024005C; Tue, 30 Mar 2021 12:49:16 -0400 (EDT) Date: Tue, 30 Mar 2021 18:49:14 +0200 From: Greg KH To: kernelnewbies@kernelnewbies.org Subject: Re: platform device as parent of a miscdevice Message-ID: References: <20210330160409.upnyaoyhbu4lll7b@viti.kaiser.cx> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210330160409.upnyaoyhbu4lll7b@viti.kaiser.cx> 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, Mar 30, 2021 at 06:04:09PM +0200, Martin Kaiser wrote: > Yet again, this seems to work ok. I was surprised to see that there's > very few (if any) mainline drivers that do something similar. Does this > approach make sense? Does it have any implications that I should be > aware of (e.g. does the link between pdev and miscdevice cause problems > for suspend/resume)? Not at all, this is what you should be done, and is what many misc devices do, that's why the parent pointer is there :) What in-kernel misc drivers do not do that that you feel should? thanks, greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies