ksummit.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <m.chehab@samsung.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Shuah Khan <shuah.kh@samsung.com>,
	ksummit-discuss@lists.linuxfoundation.org
Subject: Re: [Ksummit-discuss] [Unconference] PM dependencies
Date: Tue, 19 Aug 2014 15:08:08 -0500	[thread overview]
Message-ID: <20140819150808.34bcca65.m.chehab@samsung.com> (raw)
In-Reply-To: <15653604.eanYCV9OmK@avalon>

Em Mon, 18 Aug 2014 15:08:05 +0200
Laurent Pinchart <laurent.pinchart@ideasonboard.com> escreveu:

> Hello,
> 
> As we still haven't hammered out PM dependencies I propose discussing it in 
> the unconference track. Shuah and Mauro have reminded me of their interest in 
> the topic, does anyone else want to discuss it ?
> 
> The unconference slots are 30 minutes long only. We should avoid spending all 
> the allocated time presenting the problems, so please post your use case(s) in 
> a reply to this mail thread if you plan to participate.
> 
Greg,

I'm thinking that one solution that won't sound too hacky would be to add
a module init macro that would mark a driver to be the first one to be
probed, to be handled by the device core. If the device core
finds a USB (PCI) ID for a table initialized this way, it will only call
one device driver. This device will be the master device for that USB ID,
and he will call some init function that will do the probing of the other
device drivers associated with that specific device, being allowed to
replace the drivers specific fops by their own internal ones.

This way, at resume time, it can call each driver's specific .resume code
on the right order.

Would that work?

Regards,
Mauro

  parent reply	other threads:[~2014-08-19 20:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-18 13:08 Laurent Pinchart
2014-08-18 14:11 ` Linus Walleij
2014-08-19  2:46   ` Shuah Khan
2014-08-19  3:50 ` Mauro Carvalho Chehab
2014-08-19 20:08 ` Mauro Carvalho Chehab [this message]
2014-08-25 14:49   ` Greg Kroah-Hartman

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=20140819150808.34bcca65.m.chehab@samsung.com \
    --to=m.chehab@samsung.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=ksummit-discuss@lists.linuxfoundation.org \
    --cc=shuah.kh@samsung.com \
    /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