[Ksummit-discuss] [Unconference] PM dependencies

Mauro Carvalho Chehab m.chehab at samsung.com
Tue Aug 19 20:08:08 UTC 2014


Em Mon, 18 Aug 2014 15:08:05 +0200
Laurent Pinchart <laurent.pinchart at 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


More information about the Ksummit-discuss mailing list