ksummit.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Mauro Carvalho Chehab <m.chehab@samsung.com>
Cc: Shuah Khan <shuah.kh@samsung.com>,
	ksummit-discuss@lists.linuxfoundation.org
Subject: Re: [Ksummit-discuss] [Unconference] PM dependencies
Date: Mon, 25 Aug 2014 07:49:13 -0700	[thread overview]
Message-ID: <20140825144913.GB14325@kroah.com> (raw)
In-Reply-To: <20140819150808.34bcca65.m.chehab@samsung.com>

On Tue, Aug 19, 2014 at 03:08:08PM -0500, Mauro Carvalho Chehab wrote:
> 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?

As we discussed in person later on that day, this will not work due to
linking vs. module issues, and lots of other things.

People have been asking for "priorities" of driver binding/matching for
over a decade, but no one has come up with a way to solve the issues
involved, sorry.

greg k-h

      reply	other threads:[~2014-08-25 14:49 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
2014-08-25 14:49   ` Greg Kroah-Hartman [this message]

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=20140825144913.GB14325@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=ksummit-discuss@lists.linuxfoundation.org \
    --cc=m.chehab@samsung.com \
    --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