* [RFC 0/7] Runtime PM updates for autosuspend @ 2010-09-23 21:22 Alan Stern 2010-09-23 22:44 ` Rafael J. Wysocki 0 siblings, 1 reply; 5+ messages in thread From: Alan Stern @ 2010-09-23 21:22 UTC (permalink / raw) To: Rafael J. Wysocki, Greg KH; +Cc: Linux-pm mailing list Rafael and Greg: The following series of emails contains my proposed patches for the runtime PM core, leading up to a general "autosuspend" implementation. This is going to be one of those difficult cross-subsystem things, because the first patch in the series affects sysfs whereas the rest affect PM. (In addition, there are two other patches I'm not going to include here that update USB to take advantage of the new PM facilities. Ultimately there will be changes to the SCSI, block, and IDE layers as well -- they're not written yet.) We can decide on the best plan for merging these later on. For now I would simply like to post them for review and comments. These are not yet necessarily in final form, but I think they are pretty close. They apply on top of 2.6.36-rc5. Alan Stern 1/7: Add sysfs_merge_group() and sysfs_unmerge_group() routines for later use by PM and USB. 2/7: Move the runtime PM accounting routines away from the functions that do the actual work. 3/7: Replace runtime PM boolean arguments with bitflags. 4/7: Merge the synchronous and asynchronous runtime PM routines. 5/7: Regroup the public entry points for runtime PM into three simple functions. 6/7: Add the "no_callbacks" flag. 7/7: Implement autosuspend. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC 0/7] Runtime PM updates for autosuspend 2010-09-23 21:22 [RFC 0/7] Runtime PM updates for autosuspend Alan Stern @ 2010-09-23 22:44 ` Rafael J. Wysocki 2010-09-24 15:25 ` Alan Stern 0 siblings, 1 reply; 5+ messages in thread From: Rafael J. Wysocki @ 2010-09-23 22:44 UTC (permalink / raw) To: Alan Stern; +Cc: Linux-pm mailing list On Thursday, September 23, 2010, Alan Stern wrote: > Rafael and Greg: Hi, > The following series of emails contains my proposed patches for the > runtime PM core, leading up to a general "autosuspend" implementation. > This is going to be one of those difficult cross-subsystem things, > because the first patch in the series affects sysfs whereas the rest > affect PM. (In addition, there are two other patches I'm not going to > include here that update USB to take advantage of the new PM > facilities. Ultimately there will be changes to the SCSI, block, and > IDE layers as well -- they're not written yet.) > > We can decide on the best plan for merging these later on. For now I > would simply like to post them for review and comments. These are not > yet necessarily in final form, but I think they are pretty close. They > apply on top of 2.6.36-rc5. > > Alan Stern > > > 1/7: Add sysfs_merge_group() and sysfs_unmerge_group() routines > for later use by PM and USB. > > 2/7: Move the runtime PM accounting routines away from the functions > that do the actual work. > > 3/7: Replace runtime PM boolean arguments with bitflags. > > 4/7: Merge the synchronous and asynchronous runtime PM routines. > > 5/7: Regroup the public entry points for runtime PM into three > simple functions. > > 6/7: Add the "no_callbacks" flag. > > 7/7: Implement autosuspend. The series generally looks good to me, except for a few comments, mostly related to the names of various things I sent in my replies to the specific patches. Thanks, Rafael ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC 0/7] Runtime PM updates for autosuspend 2010-09-23 22:44 ` Rafael J. Wysocki @ 2010-09-24 15:25 ` Alan Stern 2010-09-24 20:06 ` Rafael J. Wysocki 0 siblings, 1 reply; 5+ messages in thread From: Alan Stern @ 2010-09-24 15:25 UTC (permalink / raw) To: Rafael J. Wysocki; +Cc: Linux-pm mailing list On Fri, 24 Sep 2010, Rafael J. Wysocki wrote: > On Thursday, September 23, 2010, Alan Stern wrote: > > Rafael and Greg: > > Hi, > > > The following series of emails contains my proposed patches for the > > runtime PM core, leading up to a general "autosuspend" implementation. > > This is going to be one of those difficult cross-subsystem things, > > because the first patch in the series affects sysfs whereas the rest > > affect PM. (In addition, there are two other patches I'm not going to > > include here that update USB to take advantage of the new PM > > facilities. Ultimately there will be changes to the SCSI, block, and > > IDE layers as well -- they're not written yet.) > > > > We can decide on the best plan for merging these later on. For now I > > would simply like to post them for review and comments. These are not > > yet necessarily in final form, but I think they are pretty close. They > > apply on top of 2.6.36-rc5. > > > > Alan Stern > > > > > > 1/7: Add sysfs_merge_group() and sysfs_unmerge_group() routines > > for later use by PM and USB. > > > > 2/7: Move the runtime PM accounting routines away from the functions > > that do the actual work. > > > > 3/7: Replace runtime PM boolean arguments with bitflags. > > > > 4/7: Merge the synchronous and asynchronous runtime PM routines. > > > > 5/7: Regroup the public entry points for runtime PM into three > > simple functions. > > > > 6/7: Add the "no_callbacks" flag. > > > > 7/7: Implement autosuspend. > > The series generally looks good to me, except for a few comments, mostly > related to the names of various things I sent in my replies to the specific > patches. Your points were all well taken. I'll revise the patches and submit them. Do you think it's too late for them to appear in the next merge window? Alan Stern ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC 0/7] Runtime PM updates for autosuspend 2010-09-24 15:25 ` Alan Stern @ 2010-09-24 20:06 ` Rafael J. Wysocki 2010-09-24 20:38 ` Alan Stern 0 siblings, 1 reply; 5+ messages in thread From: Rafael J. Wysocki @ 2010-09-24 20:06 UTC (permalink / raw) To: Alan Stern; +Cc: Linux-pm mailing list On Friday, September 24, 2010, Alan Stern wrote: > On Fri, 24 Sep 2010, Rafael J. Wysocki wrote: > > > On Thursday, September 23, 2010, Alan Stern wrote: > > > Rafael and Greg: > > > > Hi, > > > > > The following series of emails contains my proposed patches for the > > > runtime PM core, leading up to a general "autosuspend" implementation. > > > This is going to be one of those difficult cross-subsystem things, > > > because the first patch in the series affects sysfs whereas the rest > > > affect PM. (In addition, there are two other patches I'm not going to > > > include here that update USB to take advantage of the new PM > > > facilities. Ultimately there will be changes to the SCSI, block, and > > > IDE layers as well -- they're not written yet.) > > > > > > We can decide on the best plan for merging these later on. For now I > > > would simply like to post them for review and comments. These are not > > > yet necessarily in final form, but I think they are pretty close. They > > > apply on top of 2.6.36-rc5. > > > > > > Alan Stern > > > > > > > > > 1/7: Add sysfs_merge_group() and sysfs_unmerge_group() routines > > > for later use by PM and USB. > > > > > > 2/7: Move the runtime PM accounting routines away from the functions > > > that do the actual work. > > > > > > 3/7: Replace runtime PM boolean arguments with bitflags. > > > > > > 4/7: Merge the synchronous and asynchronous runtime PM routines. > > > > > > 5/7: Regroup the public entry points for runtime PM into three > > > simple functions. > > > > > > 6/7: Add the "no_callbacks" flag. > > > > > > 7/7: Implement autosuspend. > > > > The series generally looks good to me, except for a few comments, mostly > > related to the names of various things I sent in my replies to the specific > > patches. > > Your points were all well taken. I'll revise the patches and submit > them. Do you think it's too late for them to appear in the next merge > window? No, it's not. I actually would like to push them for .37. Thanks, Rafael ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC 0/7] Runtime PM updates for autosuspend 2010-09-24 20:06 ` Rafael J. Wysocki @ 2010-09-24 20:38 ` Alan Stern 0 siblings, 0 replies; 5+ messages in thread From: Alan Stern @ 2010-09-24 20:38 UTC (permalink / raw) To: Rafael J. Wysocki; +Cc: Linux-pm mailing list On Fri, 24 Sep 2010, Rafael J. Wysocki wrote: > On Friday, September 24, 2010, Alan Stern wrote: > > On Fri, 24 Sep 2010, Rafael J. Wysocki wrote: > > > > > On Thursday, September 23, 2010, Alan Stern wrote: > > > > Rafael and Greg: > > > > > > Hi, > > > > > > > The following series of emails contains my proposed patches for the > > > > runtime PM core, leading up to a general "autosuspend" implementation. > > > > This is going to be one of those difficult cross-subsystem things, > > > > because the first patch in the series affects sysfs whereas the rest > > > > affect PM. (In addition, there are two other patches I'm not going to > > > > include here that update USB to take advantage of the new PM > > > > facilities. Ultimately there will be changes to the SCSI, block, and > > > > IDE layers as well -- they're not written yet.) > > > > > > > > We can decide on the best plan for merging these later on. For now I > > > > would simply like to post them for review and comments. These are not > > > > yet necessarily in final form, but I think they are pretty close. They > > > > apply on top of 2.6.36-rc5. > > > > > > > > Alan Stern > > > > > > > > > > > > 1/7: Add sysfs_merge_group() and sysfs_unmerge_group() routines > > > > for later use by PM and USB. > > > > > > > > 2/7: Move the runtime PM accounting routines away from the functions > > > > that do the actual work. > > > > > > > > 3/7: Replace runtime PM boolean arguments with bitflags. > > > > > > > > 4/7: Merge the synchronous and asynchronous runtime PM routines. > > > > > > > > 5/7: Regroup the public entry points for runtime PM into three > > > > simple functions. > > > > > > > > 6/7: Add the "no_callbacks" flag. > > > > > > > > 7/7: Implement autosuspend. > > > > > > The series generally looks good to me, except for a few comments, mostly > > > related to the names of various things I sent in my replies to the specific > > > patches. > > > > Your points were all well taken. I'll revise the patches and submit > > them. Do you think it's too late for them to appear in the next merge > > window? > > No, it's not. I actually would like to push them for .37. Okay, here they come. I'll skip the 0/7 message; this thread can serve in its place. Alan Stern ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-09-24 20:38 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-09-23 21:22 [RFC 0/7] Runtime PM updates for autosuspend Alan Stern 2010-09-23 22:44 ` Rafael J. Wysocki 2010-09-24 15:25 ` Alan Stern 2010-09-24 20:06 ` Rafael J. Wysocki 2010-09-24 20:38 ` Alan Stern
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox