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).

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to