public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: ppc: fix up pmac IDE driver for driver core changes
       [not found] <200411132203.iADM3Lwb004846@hera.kernel.org>
@ 2004-11-14  2:26 ` Benjamin Herrenschmidt
  2004-11-14  4:36   ` Linus Torvalds
  0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Herrenschmidt @ 2004-11-14  2:26 UTC (permalink / raw)
  To: Linux Kernel list; +Cc: Linus Torvalds, Linux-pm mailing list

On Sat, 2004-11-13 at 20:53 +0000, Linux Kernel Mailing List wrote:
> ChangeSet 1.2115, 2004/11/13 12:53:51-08:00, torvalds@ppc970.osdl.org
> 
> 	ppc: fix up pmac IDE driver for driver core changes
> 	
> 	device power state is in "dev.power.power_state" now, rather than
> 	in "dev.power_state".
> 

Hrm... Missed that core change, where does it come from ? doesn't quite
go in the direction we have been discussing on linux-pm lately, which
is rather to remove this power_state field entirely since it's mostly
meaningless at this point (or rather, it's semantics are confuse and the
userland interface to it is means pretty much nothing).

While having a power_state field here for internal use of the driver may
be "useful" (avoiding the need for drivers to maintain something
equivalent locally), it's pretty much impossible to have a generic
abstract power_state that has globally defined semantics, at least not
with our current scheme.

Ben.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ppc: fix up pmac IDE driver for driver core changes
  2004-11-14  2:26 ` ppc: fix up pmac IDE driver for driver core changes Benjamin Herrenschmidt
@ 2004-11-14  4:36   ` Linus Torvalds
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Torvalds @ 2004-11-14  4:36 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: Linux Kernel list, Linux-pm mailing list



On Sun, 14 Nov 2004, Benjamin Herrenschmidt wrote:
> On Sat, 2004-11-13 at 20:53 +0000, Linux Kernel Mailing List wrote:
> > ChangeSet 1.2115, 2004/11/13 12:53:51-08:00, torvalds@ppc970.osdl.org
> > 
> > 	ppc: fix up pmac IDE driver for driver core changes
> > 	
> > 	device power state is in "dev.power.power_state" now, rather than
> > 	in "dev.power_state".
> > 
> 
> Hrm... Missed that core change, where does it come from ?

It's the core "struct device" shrinkage patch:

	ChangeSet@1.2092.3.1, 2004-11-12 11:41:25-08:00, david-b@pacbell.net
	  [PATCH] driver core: shrink struct device a bit
  
	  This patch removes two fields from "struct device" that are duplicated
	  in "struct dev_pm_info":  power_state (which should probably vanish)
	  and "saved_state".  There were only two "real" uses of saved_state;
	  both are now switched over to use dev_pm_info.
  
	  Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
	  Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>

so I think the people involved agree with you on moving it ever outwards..

		Linus

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-14  4:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200411132203.iADM3Lwb004846@hera.kernel.org>
2004-11-14  2:26 ` ppc: fix up pmac IDE driver for driver core changes Benjamin Herrenschmidt
2004-11-14  4:36   ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox