Re: [linux-pm] [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
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux