Re: [PATCH] i2c: Use generic subsystem-level power management callbacks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 15 March 2010, Alan Stern wrote:
> On Mon, 15 Mar 2010, Rafael J. Wysocki wrote:
> 
> > In fact, I'd like the "legacy" callbacks to go, at least at the subsystem
> > level, so I'd prefer not to make it easier to keep them around.
> > 
> > How many bus types are there and how many of them actually implement power
> > management callbacks?  I don't really think the issue is so big.
> 
> I have no idea.  But I'm in the middle of implementing runtime PM for
> SCSI.  SCSI already has bus-level legacy callbacks, so to add the
> runtime methods without changing the existing system sleep behavior
> requires something like this.
> 
> The alternative is to write a bunch of tiny "shim" functions, sort of
> like what I ended up doing in the USB stack (see usb_dev_prepare() and
> the following routines in drivers/usb/core/usb.c).

I prefer this approach to changing the core.  If we changed the core, it would
defeat the whole purpose of introducing the new framework.

Rafael
_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux