kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: kernelnewbies@kernelnewbies.org
Subject: Re: platform device as parent of a miscdevice
Date: Tue, 30 Mar 2021 18:49:14 +0200	[thread overview]
Message-ID: <YGNWitB8BYfS12NP@kroah.com> (raw)
In-Reply-To: <20210330160409.upnyaoyhbu4lll7b@viti.kaiser.cx>

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

  reply	other threads:[~2021-03-30 16:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-30 16:04 platform device as parent of a miscdevice Martin Kaiser
2021-03-30 16:49 ` Greg KH [this message]
2021-03-30 19:27   ` Martin Kaiser
2021-03-30 20:09     ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YGNWitB8BYfS12NP@kroah.com \
    --to=greg@kroah.com \
    --cc=kernelnewbies@kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).