Skip to contentSkip to conversation

platform_bus: Allow runtime PM by default

PATCH/RFC Mark Brown 5 participants 39 messages Mar 26, 2010 – May 11, 2010 Driver core

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

Currently the default runtime PM callbacks for platform devices return -ENOSYS, preventing the use of runtime PM platforms until they have provided at least a default implementation. This hinders the use of runtime PM by devices which work with many platforms such as memory mapped devices, MFDs and on chip IPs shared by multiple architectures.

Change the default implementation to the standard pm_generic_runtime one, allowing drivers to use runtime PM without per-architecture changes.

---

I'm not 100% sure why the curret implementation returns -ENOSYS - I've got a horrible feeling I might be breaking something somewhere.

 drivers/base/platform.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/base/platform.c +3 -3
index 43479a9..eb0f8d9 100644
@@ -967,17 +967,17 @@ static int platform_pm_restore_noirq(struct device *dev)
 
 int __weak platform_pm_runtime_suspend(struct device *dev)
 {
-	return -ENOSYS;
+	return pm_generic_runtime_suspend(dev);
 };
 
 int __weak platform_pm_runtime_resume(struct device *dev)
 {
-	return -ENOSYS;
+	return pm_generic_runtime_resume(dev);
 };
 
 int __weak platform_pm_runtime_idle(struct device *dev)
 {
-	return -ENOSYS;
+	return pm_generic_runtime_idle(dev);
 };
 
 #else /* !CONFIG_PM_RUNTIME */
Signature · 1 line
1.7.0.2
#1 lore raw
Quoted 11 lines · Mark Brown

Currently the default runtime PM callbacks for platform devices return -ENOSYS, preventing the use of runtime PM platforms until they have provided at least a default implementation. This hinders the use of runtime PM by devices which work with many platforms such as memory mapped devices, MFDs and on chip IPs shared by multiple architectures.

Change the default implementation to the standard pm_generic_runtime one, allowing drivers to use runtime PM without per-architecture changes.

Is it very urgent?

Rafael

Quoted 34 lines

---

I'm not 100% sure why the curret implementation returns -ENOSYS - I've got a horrible feeling I might be breaking something somewhere.

 drivers/base/platform.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/base/platform.c +3 -3
index 43479a9..eb0f8d9 100644
@@ -967,17 +967,17 @@ static int platform_pm_restore_noirq(struct device *dev)
 
 int __weak platform_pm_runtime_suspend(struct device *dev)
 {
-	return -ENOSYS;
+	return pm_generic_runtime_suspend(dev);
 };
 
 int __weak platform_pm_runtime_resume(struct device *dev)
 {
-	return -ENOSYS;
+	return pm_generic_runtime_resume(dev);
 };
 
 int __weak platform_pm_runtime_idle(struct device *dev)
 {
-	return -ENOSYS;
+	return pm_generic_runtime_idle(dev);
 };
 
 #else /* !CONFIG_PM_RUNTIME */
#6 lore raw
In reply to Mark Brown
Quoted 11 lines · Mark Brown

Currently the default runtime PM callbacks for platform devices return -ENOSYS, preventing the use of runtime PM platforms until they have provided at least a default implementation. This hinders the use of runtime PM by devices which work with many platforms such as memory mapped devices, MFDs and on chip IPs shared by multiple architectures.

Change the default implementation to the standard pm_generic_runtime one, allowing drivers to use runtime PM without per-architecture changes.

Is it very urgent?

Rafael

Quoted 34 lines

---

I'm not 100% sure why the curret implementation returns -ENOSYS - I've got a horrible feeling I might be breaking something somewhere.

 drivers/base/platform.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/base/platform.c +3 -3
index 43479a9..eb0f8d9 100644
@@ -967,17 +967,17 @@ static int platform_pm_restore_noirq(struct device *dev)
 
 int __weak platform_pm_runtime_suspend(struct device *dev)
 {
-	return -ENOSYS;
+	return pm_generic_runtime_suspend(dev);
 };
 
 int __weak platform_pm_runtime_resume(struct device *dev)
 {
-	return -ENOSYS;
+	return pm_generic_runtime_resume(dev);
 };
 
 int __weak platform_pm_runtime_idle(struct device *dev)
 {
-	return -ENOSYS;
+	return pm_generic_runtime_idle(dev);
 };
 
 #else /* !CONFIG_PM_RUNTIME */
author
#2 lore raw
In reply to Rafael J. Wysocki
Quoted 11 lines · Rafael J. Wysocki
Quoted 10 lines · Mark Brown

Currently the default runtime PM callbacks for platform devices return -ENOSYS, preventing the use of runtime PM platforms until they have provided at least a default implementation. This hinders the use of runtime PM by devices which work with many platforms such as memory mapped devices, MFDs and on chip IPs shared by multiple architectures.

Change the default implementation to the standard pm_generic_runtime one, allowing drivers to use runtime PM without per-architecture changes.

Quoted 5 lines
Quoted 1 line

Is it very urgent?

Not especially - worst case you just don't get devices suspending which isn't the end of the world and there's no build time dependencies introduced.

Quoted 40 lines

Rafael

Quoted 35 lines

---

I'm not 100% sure why the curret implementation returns -ENOSYS - I've got a horrible feeling I might be breaking something somewhere.

drivers/base/platform.c | 6 +++---

1 files changed, 3 insertions(+), 3 deletions(-)
drivers/base/platform.c +3 -3
index 43479a9..eb0f8d9 100644
@@ -967,17 +967,17 @@ static int platform_pm_restore_noirq(struct  
 device *dev)
 
 int __weak platform_pm_runtime_suspend(struct device *dev)
 {
-    return -ENOSYS;
+    return pm_generic_runtime_suspend(dev);
 };
 
 int __weak platform_pm_runtime_resume(struct device *dev)
 {
-    return -ENOSYS;
+    return pm_generic_runtime_resume(dev);
 };
 
 int __weak platform_pm_runtime_idle(struct device *dev)
 {
-    return -ENOSYS;
+    return pm_generic_runtime_idle(dev);
 };
 

#else /* !CONFIG_PM_RUNTIME */

author
#5 lore raw
In reply to Rafael J. Wysocki
Quoted 13 lines · Rafael J. Wysocki
Quoted 12 lines · Mark Brown

Currently the default runtime PM callbacks for platform devices return
-ENOSYS, preventing the use of runtime PM platforms until they have provided at least a default implementation. This hinders the use of runtime PM by devices which work with many platforms such as memory mapped devices, MFDs and on chip IPs shared by multiple architectures.

Change the default implementation to the standard pm_generic_runtime one, allowing drivers to use runtime PM without per-architecture changes.

Quoted 5 lines
Quoted 1 line

Is it very urgent?

Not especially - worst case you just don't get devices suspending which isn't the end of the world and there's no build time dependencies introduced.

Quoted 41 lines

Rafael

Quoted 36 lines

---

I'm not 100% sure why the curret implementation returns -ENOSYS - I've
got a horrible feeling I might be breaking something somewhere.

drivers/base/platform.c | 6 +++---

1 files changed, 3 insertions(+), 3 deletions(-)
drivers/base/platform.c +3 -3
index 43479a9..eb0f8d9 100644
@@ -967,17 +967,17 @@ static int platform_pm_restore_noirq(struct  
 device *dev)
 
 int __weak platform_pm_runtime_suspend(struct device *dev)
 {
-    return -ENOSYS;
+    return pm_generic_runtime_suspend(dev);
 };
 
 int __weak platform_pm_runtime_resume(struct device *dev)
 {
-    return -ENOSYS;
+    return pm_generic_runtime_resume(dev);
 };
 
 int __weak platform_pm_runtime_idle(struct device *dev)
 {
-    return -ENOSYS;
+    return pm_generic_runtime_idle(dev);
 };
 

#else /* !CONFIG_PM_RUNTIME */

#3 lore raw
In reply to Mark Brown
Quoted 17 lines · Mark Brown
Quoted 15 lines · Rafael J. Wysocki
Quoted 13 lines · Mark Brown

Currently the default runtime PM callbacks for platform devices return
-ENOSYS, preventing the use of runtime PM platforms until they have provided at least a default implementation. This hinders the use of runtime PM by devices which work with many platforms such as memory mapped devices, MFDs and on chip IPs shared by multiple architectures.

Change the default implementation to the standard pm_generic_runtime one, allowing drivers to use runtime PM without per-architecture changes.

Quoted 7 lines
Quoted 3 lines

Is it very urgent?

Not especially - worst case you just don't get devices suspending which isn't the end of the world and there's no build time dependencies introduced.

OK, so I guess it will be sufficient if Greg queues it for .35.

Rafael

#4 lore raw
In reply to Mark Brown
Quoted 17 lines · Mark Brown
Quoted 15 lines · Rafael J. Wysocki
Quoted 13 lines · Mark Brown

Currently the default runtime PM callbacks for platform devices return
-ENOSYS, preventing the use of runtime PM platforms until they have provided at least a default implementation. This hinders the use of runtime PM by devices which work with many platforms such as memory mapped devices, MFDs and on chip IPs shared by multiple architectures.

Change the default implementation to the standard pm_generic_runtime one, allowing drivers to use runtime PM without per-architecture changes.

Quoted 7 lines
Quoted 3 lines

Is it very urgent?

Not especially - worst case you just don't get devices suspending which isn't the end of the world and there's no build time dependencies introduced.

OK, so I guess it will be sufficient if Greg queues it for .35.

Rafael

#7 lore raw
In reply to Mark Brown
Quoted 10 lines · Mark Brown

Currently the default runtime PM callbacks for platform devices return -ENOSYS, preventing the use of runtime PM platforms until they have provided at least a default implementation. This hinders the use of runtime PM by devices which work with many platforms such as memory mapped devices, MFDs and on chip IPs shared by multiple architectures.

Change the default implementation to the standard pm_generic_runtime one, allowing drivers to use runtime PM without per-architecture changes.

That's nice, but it breaks the build on my system:
CC drivers/base/platform.o
drivers/base/platform.c: In function ‘platform_pm_runtime_suspend’:
drivers/base/platform.c:970: error: implicit declaration of function ‘pm_generic_runtime_suspend’ drivers/base/platform.c: In function ‘platform_pm_runtime_resume’:
drivers/base/platform.c:975: error: implicit declaration of function ‘pm_generic_runtime_resume’ drivers/base/platform.c: In function ‘platform_pm_runtime_idle’:
drivers/base/platform.c:980: error: implicit declaration of function ‘pm_generic_runtime_idle’ make[1]: *** [drivers/base/platform.o] Error 1
make: *** [_module_drivers/base] Error 2

Care to fix it up?

thanks,

greg k-h
_______________________________________________
linux-pm mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

author
#8 lore raw
Quoted 17 lines · Greg KH
Quoted 3 lines · Mark Brown

Change the default implementation to the standard pm_generic_runtime one, allowing drivers to use runtime PM without per-architecture changes.

That's nice, but it breaks the build on my system:
CC drivers/base/platform.o
drivers/base/platform.c: In function ‘platform_pm_runtime_suspend’:
drivers/base/platform.c:970: error: implicit declaration of function ‘pm_generic_runtime_suspend’ drivers/base/platform.c: In function ‘platform_pm_runtime_resume’:
drivers/base/platform.c:975: error: implicit declaration of function ‘pm_generic_runtime_resume’ drivers/base/platform.c: In function ‘platform_pm_runtime_idle’:
drivers/base/platform.c:980: error: implicit declaration of function ‘pm_generic_runtime_idle’ make[1]: *** [drivers/base/platform.o] Error 1
make: *** [_module_drivers/base] Error 2

Quoted 1 line

Care to fix it up?

This depends on "PM: Provide generic subsystem-level callbacks" which is in Linus' tree - which kernel version are you building against and with what config? Things work fine for me in -next...
_______________________________________________
linux-pm mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

author
#9 lore raw
In reply to Greg KH
Quoted 17 lines · Greg KH
Quoted 3 lines · Mark Brown

Change the default implementation to the standard pm_generic_runtime one, allowing drivers to use runtime PM without per-architecture changes.

That's nice, but it breaks the build on my system:
CC drivers/base/platform.o
drivers/base/platform.c: In function ‘platform_pm_runtime_suspend’:
drivers/base/platform.c:970: error: implicit declaration of function ‘pm_generic_runtime_suspend’ drivers/base/platform.c: In function ‘platform_pm_runtime_resume’:
drivers/base/platform.c:975: error: implicit declaration of function ‘pm_generic_runtime_resume’ drivers/base/platform.c: In function ‘platform_pm_runtime_idle’:
drivers/base/platform.c:980: error: implicit declaration of function ‘pm_generic_runtime_idle’ make[1]: *** [drivers/base/platform.o] Error 1
make: *** [_module_drivers/base] Error 2

Quoted 1 line

Care to fix it up?

This depends on "PM: Provide generic subsystem-level callbacks" which is in Linus' tree - which kernel version are you building against and with what config? Things work fine for me in -next...

#10 lore raw
Quoted 18 lines · Mark Brown
Quoted 16 lines · Greg KH
Quoted 3 lines · Mark Brown

Change the default implementation to the standard pm_generic_runtime one, allowing drivers to use runtime PM without per-architecture changes.

That's nice, but it breaks the build on my system:
CC drivers/base/platform.o
drivers/base/platform.c: In function ???platform_pm_runtime_suspend???:
drivers/base/platform.c:970: error: implicit declaration of function ???pm_generic_runtime_suspend??? drivers/base/platform.c: In function ???platform_pm_runtime_resume???:
drivers/base/platform.c:975: error: implicit declaration of function ???pm_generic_runtime_resume??? drivers/base/platform.c: In function ???platform_pm_runtime_idle???:
drivers/base/platform.c:980: error: implicit declaration of function ???pm_generic_runtime_idle??? make[1]: *** [drivers/base/platform.o] Error 1
make: *** [_module_drivers/base] Error 2

Quoted 5 lines
Quoted 1 line

Care to fix it up?

This depends on "PM: Provide generic subsystem-level callbacks" which is in Linus' tree - which kernel version are you building against and with what config? Things work fine for me in -next...

I was using Linus's latest tree as of yesterday when this failed. Are you relying on something in -next that is not in Linus's tree?

thanks,

greg k-h

#38 lore raw
In reply to Mark Brown
Quoted 18 lines · Mark Brown
Quoted 16 lines · Greg KH
Quoted 3 lines · Mark Brown

Change the default implementation to the standard pm_generic_runtime one, allowing drivers to use runtime PM without per-architecture changes.

That's nice, but it breaks the build on my system:
CC drivers/base/platform.o
drivers/base/platform.c: In function ???platform_pm_runtime_suspend???:
drivers/base/platform.c:970: error: implicit declaration of function ???pm_generic_runtime_suspend??? drivers/base/platform.c: In function ???platform_pm_runtime_resume???:
drivers/base/platform.c:975: error: implicit declaration of function ???pm_generic_runtime_resume??? drivers/base/platform.c: In function ???platform_pm_runtime_idle???:
drivers/base/platform.c:980: error: implicit declaration of function ???pm_generic_runtime_idle??? make[1]: *** [drivers/base/platform.o] Error 1
make: *** [_module_drivers/base] Error 2

Quoted 5 lines
Quoted 1 line

Care to fix it up?

This depends on "PM: Provide generic subsystem-level callbacks" which is in Linus' tree - which kernel version are you building against and with what config? Things work fine for me in -next...

I was using Linus's latest tree as of yesterday when this failed. Are you relying on something in -next that is not in Linus's tree?

thanks,

greg k-h

author
#11 lore raw
In reply to Greg KH
Quoted 8 lines · Greg KH
Quoted 3 lines · Mark Brown

This depends on "PM: Provide generic subsystem-level callbacks" which is in Linus' tree - which kernel version are you building against and with what config? Things work fine for me in -next...

I was using Linus's latest tree as of yesterday when this failed. Are you relying on something in -next that is not in Linus's tree?

Not intentionally - it's also possible that it's specific to some option in .config, either an option or something that gets included by default due to the arch.

#12 lore raw
Quoted 7 lines · Mark Brown
Quoted 5 lines · Greg KH
Quoted 3 lines · Mark Brown

This depends on "PM: Provide generic subsystem-level callbacks" which is in Linus' tree - which kernel version are you building against and with what config? Things work fine for me in -next...

Quoted 6 lines
Quoted 2 lines

I was using Linus's latest tree as of yesterday when this failed. Are you relying on something in -next that is not in Linus's tree?

Not intentionally - it's also possible that it's specific to some option in .config, either an option or something that gets included by default due to the arch.

x86-64 is a pretty common arch :)

Attached is my .config file.

thanks,

greg k-h

author
#14 lore raw
In reply to Greg KH
Quoted 10 lines · Greg KH
Quoted 5 lines · Mark Brown
Quoted 1 line

Care to fix it up?

This depends on "PM: Provide generic subsystem-level callbacks" which is in Linus' tree - which kernel version are you building against and with what config? Things work fine for me in -next...

I was using Linus's latest tree as of yesterday when this failed. Are you relying on something in -next that is not in Linus's tree?

Turns out it's commit ad53012 "i2c: Fix bus-level power management callbacks" in the PM tree that it depends on. Does it make sense to merge this via there rather than via your tree?

author
#15 lore raw
In reply to Greg KH
Quoted 10 lines · Greg KH
Quoted 5 lines · Mark Brown
Quoted 1 line

Care to fix it up?

This depends on "PM: Provide generic subsystem-level callbacks" which is in Linus' tree - which kernel version are you building against and with what config? Things work fine for me in -next...

I was using Linus's latest tree as of yesterday when this failed. Are you relying on something in -next that is not in Linus's tree?

Turns out it's commit ad53012 "i2c: Fix bus-level power management callbacks" in the PM tree that it depends on. Does it make sense to merge this via there rather than via your tree?

#13 lore raw
In reply to Mark Brown
Quoted 7 lines · Mark Brown
Quoted 5 lines · Greg KH
Quoted 3 lines · Mark Brown

This depends on "PM: Provide generic subsystem-level callbacks" which is in Linus' tree - which kernel version are you building against and with what config? Things work fine for me in -next...

Quoted 6 lines
Quoted 2 lines

I was using Linus's latest tree as of yesterday when this failed. Are you relying on something in -next that is not in Linus's tree?

Not intentionally - it's also possible that it's specific to some option in .config, either an option or something that gets included by default due to the arch.

x86-64 is a pretty common arch :)

Attached is my .config file.

thanks,

greg k-h

#16 lore raw
In reply to Mark Brown
Quoted 9 lines · Mark Brown
Quoted 7 lines · Greg KH
Quoted 5 lines · Mark Brown
Quoted 1 line

Care to fix it up?

This depends on "PM: Provide generic subsystem-level callbacks" which is in Linus' tree - which kernel version are you building against and with what config? Things work fine for me in -next...

Quoted 6 lines
Quoted 2 lines

I was using Linus's latest tree as of yesterday when this failed. Are you relying on something in -next that is not in Linus's tree?

Turns out it's commit ad53012 "i2c: Fix bus-level power management callbacks" in the PM tree that it depends on. Does it make sense to merge this via there rather than via your tree?

Why would an i2c specific patch be needed here? Do you have a pointer to that patch?

And yes, if it depends on something else in the PM tree, feel free to send this patch also through it, I have no objection to that. Rafael, care to pick it up? Mark, you might have to resend it to him.

thanks,

greg k-h

#17 lore raw
In reply to Mark Brown
Quoted 9 lines · Mark Brown
Quoted 7 lines · Greg KH
Quoted 5 lines · Mark Brown
Quoted 1 line

Care to fix it up?

This depends on "PM: Provide generic subsystem-level callbacks" which is in Linus' tree - which kernel version are you building against and with what config? Things work fine for me in -next...

Quoted 6 lines
Quoted 2 lines

I was using Linus's latest tree as of yesterday when this failed. Are you relying on something in -next that is not in Linus's tree?

Turns out it's commit ad53012 "i2c: Fix bus-level power management callbacks" in the PM tree that it depends on. Does it make sense to merge this via there rather than via your tree?

Why would an i2c specific patch be needed here? Do you have a pointer to that patch?

And yes, if it depends on something else in the PM tree, feel free to send this patch also through it, I have no objection to that. Rafael, care to pick it up? Mark, you might have to resend it to him.

thanks,

greg k-h

author
#18 lore raw
Quoted 8 lines · Greg KH
Quoted 3 lines · Mark Brown

Turns out it's commit ad53012 "i2c: Fix bus-level power management callbacks" in the PM tree that it depends on. Does it make sense to merge this via there rather than via your tree?

Why would an i2c specific patch be needed here? Do you have a pointer to that patch?

Despite the patch title being I2C specific it actually includes exposing some of the runtime PM implementation to external users - I2C being the first user of the generic PM runtime callbacks that I'm trying to use in the platform device implementation.

http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=ad530128cd302e5df930b6eb4d4c7e162c40fcb2;hp=b938b00444e900f1c86e754539e3d00f172c184e
http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=d690b2cd222afc75320b9b8e9da7df02e9e630ca

Quoted 3 lines

And yes, if it depends on something else in the PM tree, feel free to send this patch also through it, I have no objection to that. Rafael, care to pick it up? Mark, you might have to resend it to him.

OK, Raphael please let me know if you need a resend. Greg, I guess I can add your Acked-by to that?

author
#19 lore raw
In reply to Greg KH
Quoted 8 lines · Greg KH
Quoted 3 lines · Mark Brown

Turns out it's commit ad53012 "i2c: Fix bus-level power management callbacks" in the PM tree that it depends on. Does it make sense to merge this via there rather than via your tree?

Why would an i2c specific patch be needed here? Do you have a pointer to that patch?

Despite the patch title being I2C specific it actually includes exposing some of the runtime PM implementation to external users - I2C being the first user of the generic PM runtime callbacks that I'm trying to use in the platform device implementation.

http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=ad530128cd302e5df930b6eb4d4c7e162c40fcb2;hp=b938b00444e900f1c86e754539e3d00f172c184e
http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=d690b2cd222afc75320b9b8e9da7df02e9e630ca

Quoted 3 lines

And yes, if it depends on something else in the PM tree, feel free to send this patch also through it, I have no objection to that. Rafael, care to pick it up? Mark, you might have to resend it to him.

OK, Raphael please let me know if you need a resend. Greg, I guess I can add your Acked-by to that?

#20 lore raw
Quoted 18 lines · Mark Brown
Quoted 8 lines · Greg KH
Quoted 3 lines · Mark Brown

Turns out it's commit ad53012 "i2c: Fix bus-level power management callbacks" in the PM tree that it depends on. Does it make sense to merge this via there rather than via your tree?

Why would an i2c specific patch be needed here? Do you have a pointer to that patch?

Despite the patch title being I2C specific it actually includes exposing some of the runtime PM implementation to external users - I2C being the first user of the generic PM runtime callbacks that I'm trying to use in the platform device implementation.

http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=ad530128cd302e5df930b6eb4d4c7e162c40fcb2;hp=b938b00444e900f1c86e754539e3d00f172c184e
http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=d690b2cd222afc75320b9b8e9da7df02e9e630ca

Quoted 6 lines
Quoted 3 lines

And yes, if it depends on something else in the PM tree, feel free to send this patch also through it, I have no objection to that. Rafael, care to pick it up? Mark, you might have to resend it to him.

OK, Raphael please let me know if you need a resend. Greg, I guess I can add your Acked-by to that?

Yes, please feel free to add it.

thanks,

greg k-h

#21 lore raw
In reply to Mark Brown
Quoted 18 lines · Mark Brown
Quoted 8 lines · Greg KH
Quoted 3 lines · Mark Brown

Turns out it's commit ad53012 "i2c: Fix bus-level power management callbacks" in the PM tree that it depends on. Does it make sense to merge this via there rather than via your tree?

Why would an i2c specific patch be needed here? Do you have a pointer to that patch?

Despite the patch title being I2C specific it actually includes exposing some of the runtime PM implementation to external users - I2C being the first user of the generic PM runtime callbacks that I'm trying to use in the platform device implementation.

http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=ad530128cd302e5df930b6eb4d4c7e162c40fcb2;hp=b938b00444e900f1c86e754539e3d00f172c184e
http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=d690b2cd222afc75320b9b8e9da7df02e9e630ca

Quoted 6 lines
Quoted 3 lines

And yes, if it depends on something else in the PM tree, feel free to send this patch also through it, I have no objection to that. Rafael, care to pick it up? Mark, you might have to resend it to him.

OK, Raphael please let me know if you need a resend. Greg, I guess I can add your Acked-by to that?

Yes, please feel free to add it.

thanks,

greg k-h

#22 lore raw
In reply to Mark Brown
Quoted 15 lines · Mark Brown
Quoted 8 lines · Greg KH
Quoted 3 lines · Mark Brown

Turns out it's commit ad53012 "i2c: Fix bus-level power management callbacks" in the PM tree that it depends on. Does it make sense to merge this via there rather than via your tree?

Why would an i2c specific patch be needed here? Do you have a pointer to that patch?

Despite the patch title being I2C specific it actually includes exposing some of the runtime PM implementation to external users - I2C being the first user of the generic PM runtime callbacks that I'm trying to use in the platform device implementation.

Quoted 8 lines

http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=ad530128cd302e5df930b6eb4d4c7e162c40fcb2;hp=b938b00444e900f1c86e754539e3d00f172c184e
http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=d690b2cd222afc75320b9b8e9da7df02e9e630ca

Quoted 3 lines

And yes, if it depends on something else in the PM tree, feel free to send this patch also through it, I have no objection to that. Rafael, care to pick it up? Mark, you might have to resend it to him.

OK, Raphael please let me know if you need a resend.

No, thanks, I have your original post.

Rafael

#37 lore raw
In reply to Mark Brown
Quoted 15 lines · Mark Brown
Quoted 8 lines · Greg KH
Quoted 3 lines · Mark Brown

Turns out it's commit ad53012 "i2c: Fix bus-level power management callbacks" in the PM tree that it depends on. Does it make sense to merge this via there rather than via your tree?

Why would an i2c specific patch be needed here? Do you have a pointer to that patch?

Despite the patch title being I2C specific it actually includes exposing some of the runtime PM implementation to external users - I2C being the first user of the generic PM runtime callbacks that I'm trying to use in the platform device implementation.

Quoted 8 lines

http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=ad530128cd302e5df930b6eb4d4c7e162c40fcb2;hp=b938b00444e900f1c86e754539e3d00f172c184e
http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=d690b2cd222afc75320b9b8e9da7df02e9e630ca

Quoted 3 lines

And yes, if it depends on something else in the PM tree, feel free to send this patch also through it, I have no objection to that. Rafael, care to pick it up? Mark, you might have to resend it to him.

OK, Raphael please let me know if you need a resend.

No, thanks, I have your original post.

Rafael

#23 lore raw
In reply to Rafael J. Wysocki
Quoted 19 lines · Rafael J. Wysocki
Quoted 18 lines · Mark Brown
Quoted 8 lines · Greg KH
Quoted 3 lines · Mark Brown

Turns out it's commit ad53012 "i2c: Fix bus-level power management callbacks" in the PM tree that it depends on. Does it make sense to merge this via there rather than via your tree?

Why would an i2c specific patch be needed here? Do you have a pointer to that patch?

Despite the patch title being I2C specific it actually includes exposing some of the runtime PM implementation to external users - I2C being the first user of the generic PM runtime callbacks that I'm trying to use in the platform device implementation.

http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=ad530128cd302e5df930b6eb4d4c7e162c40fcb2;hp=b938b00444e900f1c86e754539e3d00f172c184e
http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=d690b2cd222afc75320b9b8e9da7df02e9e630ca

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

And yes, if it depends on something else in the PM tree, feel free to send this patch also through it, I have no objection to that. Rafael, care to pick it up? Mark, you might have to resend it to him.

OK, Raphael please let me know if you need a resend.

No, thanks, I have your original post.

Now applied to suspend-2.6/linux-next .

Thanks,
Rafael

#36 lore raw
In reply to Rafael J. Wysocki
Quoted 19 lines · Rafael J. Wysocki
Quoted 18 lines · Mark Brown
Quoted 8 lines · Greg KH
Quoted 3 lines · Mark Brown

Turns out it's commit ad53012 "i2c: Fix bus-level power management callbacks" in the PM tree that it depends on. Does it make sense to merge this via there rather than via your tree?

Why would an i2c specific patch be needed here? Do you have a pointer to that patch?

Despite the patch title being I2C specific it actually includes exposing some of the runtime PM implementation to external users - I2C being the first user of the generic PM runtime callbacks that I'm trying to use in the platform device implementation.

http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=ad530128cd302e5df930b6eb4d4c7e162c40fcb2;hp=b938b00444e900f1c86e754539e3d00f172c184e
http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=d690b2cd222afc75320b9b8e9da7df02e9e630ca

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

And yes, if it depends on something else in the PM tree, feel free to send this patch also through it, I have no objection to that. Rafael, care to pick it up? Mark, you might have to resend it to him.

OK, Raphael please let me know if you need a resend.

No, thanks, I have your original post.

Now applied to suspend-2.6/linux-next .

Thanks,
Rafael

#24 lore raw
In reply to Rafael J. Wysocki
Quoted 24 lines · Rafael J. Wysocki
Quoted 23 lines · Rafael J. Wysocki
Quoted 22 lines · Mark Brown
Quoted 8 lines · Greg KH
Quoted 3 lines · Mark Brown

Turns out it's commit ad53012 "i2c: Fix bus-level power management callbacks" in the PM tree that it depends on. Does it make sense to merge this via there rather than via your tree?

Why would an i2c specific patch be needed here? Do you have a pointer to that patch?

Despite the patch title being I2C specific it actually includes exposing some of the runtime PM implementation to external users - I2C being the first user of the generic PM runtime callbacks that I'm trying to use in the platform device implementation.

http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=ad530128cd302e5df930b6eb4d4c7e162c40fcb2;hp=b938b00444e900f1c86e754539e3d00f172c184e
http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=d690b2cd222afc75320b9b8e9da7df02e9e630ca

Quoted 3 lines

And yes, if it depends on something else in the PM tree, feel free to send this patch also through it, I have no objection to that. Rafael, care to pick it up? Mark, you might have to resend it to him.

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

OK, Raphael please let me know if you need a resend.

No, thanks, I have your original post.

Now applied to suspend-2.6/linux-next .

Reverted, sorry.

The i2c patch is not in my tree, it's in the i2c tree. Perhaps I can handle the both of them.

Jean, the patch we're discussing depends on the
"i2c: Fix bus-level power management callbacks" patch that's in your tree right now. Would it be possible to move the i2c patch to my tree, or alternatively would it be acceptable for you to merge a core PM patch through your tree?

Rafael

#25 lore raw
In reply to Rafael J. Wysocki
Quoted 24 lines · Rafael J. Wysocki
Quoted 23 lines · Rafael J. Wysocki
Quoted 22 lines · Mark Brown
Quoted 8 lines · Greg KH
Quoted 3 lines · Mark Brown

Turns out it's commit ad53012 "i2c: Fix bus-level power management callbacks" in the PM tree that it depends on. Does it make sense to merge this via there rather than via your tree?

Why would an i2c specific patch be needed here? Do you have a pointer to that patch?

Despite the patch title being I2C specific it actually includes exposing some of the runtime PM implementation to external users - I2C being the first user of the generic PM runtime callbacks that I'm trying to use in the platform device implementation.

http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=ad530128cd302e5df930b6eb4d4c7e162c40fcb2;hp=b938b00444e900f1c86e754539e3d00f172c184e
http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=d690b2cd222afc75320b9b8e9da7df02e9e630ca

Quoted 3 lines

And yes, if it depends on something else in the PM tree, feel free to send this patch also through it, I have no objection to that. Rafael, care to pick it up? Mark, you might have to resend it to him.

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

OK, Raphael please let me know if you need a resend.

No, thanks, I have your original post.

Now applied to suspend-2.6/linux-next .

Reverted, sorry.

The i2c patch is not in my tree, it's in the i2c tree. Perhaps I can handle the both of them.

Jean, the patch we're discussing depends on the
"i2c: Fix bus-level power management callbacks" patch that's in your tree right now. Would it be possible to move the i2c patch to my tree, or alternatively would it be acceptable for you to merge a core PM patch through your tree?

Rafael

author
#26 lore raw
Quoted 4 lines · Rafael J. Wysocki

Jean, the patch we're discussing depends on the
"i2c: Fix bus-level power management callbacks" patch that's in your tree right now. Would it be possible to move the i2c patch to my tree, or alternatively would it be acceptable for you to merge a core PM patch through your tree?

Jean, any updates on this?

author
#27 lore raw
In reply to Rafael J. Wysocki
Quoted 4 lines · Rafael J. Wysocki

Jean, the patch we're discussing depends on the
"i2c: Fix bus-level power management callbacks" patch that's in your tree right now. Would it be possible to move the i2c patch to my tree, or alternatively would it be acceptable for you to merge a core PM patch through your tree?

Jean, any updates on this?

#28 lore raw

Hi Mark,

Quoted 8 lines · Mark Brown
Quoted 4 lines · Rafael J. Wysocki

Jean, the patch we're discussing depends on the
"i2c: Fix bus-level power management callbacks" patch that's in your tree right now. Would it be possible to move the i2c patch to my tree, or alternatively would it be acceptable for you to merge a core PM patch through your tree?

Jean, any updates on this?

I'm sorry, I never received Rafael's initial message. I just checked through my mailbox and it isn't there.

The current status is that patch "i2c: Fix bus-level power management
callbacks" is currently queued in my i2c tree at:
ftp://ftp.kernel.org/pub/linux/kernel/people/jdelvare/linux-2.6/jdelvare-i2c/i2c-fix-bus-level-power-management-callbacks.patch and is scheduled to be merged in 2.6.35-rc1. If this isn't OK, we can
change the plan.

Merging a core PM patch through the i2c tree would be quite confusing, I think, and might draw even more odd dependencies. So I'd rather have the i2c patch moved to the PM staging tree (or whatever tree the dependent patch lives in.) Just let me know and I'll drop my copy.

Signature · 1 line
Jean Delvare
#29 lore raw
In reply to Mark Brown

Hi Mark,

Quoted 8 lines · Mark Brown
Quoted 4 lines · Rafael J. Wysocki

Jean, the patch we're discussing depends on the
"i2c: Fix bus-level power management callbacks" patch that's in your tree right now. Would it be possible to move the i2c patch to my tree, or alternatively would it be acceptable for you to merge a core PM patch through your tree?

Jean, any updates on this?

I'm sorry, I never received Rafael's initial message. I just checked through my mailbox and it isn't there.

The current status is that patch "i2c: Fix bus-level power management
callbacks" is currently queued in my i2c tree at:
ftp://ftp.kernel.org/pub/linux/kernel/people/jdelvare/linux-2.6/jdelvare-i2c/i2c-fix-bus-level-power-management-callbacks.patch and is scheduled to be merged in 2.6.35-rc1. If this isn't OK, we can
change the plan.

Merging a core PM patch through the i2c tree would be quite confusing, I think, and might draw even more odd dependencies. So I'd rather have the i2c patch moved to the PM staging tree (or whatever tree the dependent patch lives in.) Just let me know and I'll drop my copy.

Signature · 1 line
Jean Delvare
#30 lore raw
Quoted 21 lines · Jean Delvare

Hi Mark,

Quoted 8 lines · Mark Brown
Quoted 4 lines · Rafael J. Wysocki

Jean, the patch we're discussing depends on the
"i2c: Fix bus-level power management callbacks" patch that's in your tree right now. Would it be possible to move the i2c patch to my tree, or alternatively would it be acceptable for you to merge a core PM patch through your tree?

Jean, any updates on this?

I'm sorry, I never received Rafael's initial message. I just checked through my mailbox and it isn't there.

The current status is that patch "i2c: Fix bus-level power management
callbacks" is currently queued in my i2c tree at:
ftp://ftp.kernel.org/pub/linux/kernel/people/jdelvare/linux-2.6/jdelvare-i2c/i2c-fix-bus-level-power-management-callbacks.patch and is scheduled to be merged in 2.6.35-rc1. If this isn't OK, we can
change the plan.

Quoted 4 lines

Merging a core PM patch through the i2c tree would be quite confusing, I think, and might draw even more odd dependencies. So I'd rather have the i2c patch moved to the PM staging tree (or whatever tree the dependent patch lives in.) Just let me know and I'll drop my copy.

The patch above has been applied to suspend-2.6/linux-next along with the Mark's $subject patch.

I have converted your sign-off into an ack, hope that's fine.

Thanks,
Rafael

#35 lore raw
In reply to Jean Delvare
Quoted 21 lines · Jean Delvare

Hi Mark,

Quoted 8 lines · Mark Brown
Quoted 4 lines · Rafael J. Wysocki

Jean, the patch we're discussing depends on the
"i2c: Fix bus-level power management callbacks" patch that's in your tree right now. Would it be possible to move the i2c patch to my tree, or alternatively would it be acceptable for you to merge a core PM patch through your tree?

Jean, any updates on this?

I'm sorry, I never received Rafael's initial message. I just checked through my mailbox and it isn't there.

The current status is that patch "i2c: Fix bus-level power management
callbacks" is currently queued in my i2c tree at:
ftp://ftp.kernel.org/pub/linux/kernel/people/jdelvare/linux-2.6/jdelvare-i2c/i2c-fix-bus-level-power-management-callbacks.patch and is scheduled to be merged in 2.6.35-rc1. If this isn't OK, we can
change the plan.

Quoted 4 lines

Merging a core PM patch through the i2c tree would be quite confusing, I think, and might draw even more odd dependencies. So I'd rather have the i2c patch moved to the PM staging tree (or whatever tree the dependent patch lives in.) Just let me know and I'll drop my copy.

The patch above has been applied to suspend-2.6/linux-next along with the Mark's $subject patch.

I have converted your sign-off into an ack, hope that's fine.

Thanks,
Rafael

#31 lore raw
In reply to Rafael J. Wysocki
Quoted 10 lines · Rafael J. Wysocki
Quoted 9 lines · Jean Delvare

I'm sorry, I never received Rafael's initial message. I just checked through my mailbox and it isn't there.

The current status is that patch "i2c: Fix bus-level power management
callbacks" is currently queued in my i2c tree at:
ftp://ftp.kernel.org/pub/linux/kernel/people/jdelvare/linux-2.6/jdelvare-i2c/i2c-fix-bus-level-power-management-callbacks.patch and is scheduled to be merged in 2.6.35-rc1. If this isn't OK, we can
change the plan.

Quoted 7 lines
Quoted 4 lines

Merging a core PM patch through the i2c tree would be quite confusing, I think, and might draw even more odd dependencies. So I'd rather have the i2c patch moved to the PM staging tree (or whatever tree the dependent patch lives in.) Just let me know and I'll drop my copy.

The patch above has been applied to suspend-2.6/linux-next along with the Mark's $subject patch.

OK, I've dropped it from my i2c tree.

Quoted 1 line

I have converted your sign-off into an ack, hope that's fine.

Perfectly fine, yes, thanks.

Signature · 1 line
Jean Delvare
#32 lore raw
In reply to Rafael J. Wysocki
Quoted 10 lines · Rafael J. Wysocki
Quoted 9 lines · Jean Delvare

I'm sorry, I never received Rafael's initial message. I just checked through my mailbox and it isn't there.

The current status is that patch "i2c: Fix bus-level power management
callbacks" is currently queued in my i2c tree at:
ftp://ftp.kernel.org/pub/linux/kernel/people/jdelvare/linux-2.6/jdelvare-i2c/i2c-fix-bus-level-power-management-callbacks.patch and is scheduled to be merged in 2.6.35-rc1. If this isn't OK, we can
change the plan.

Quoted 7 lines
Quoted 4 lines

Merging a core PM patch through the i2c tree would be quite confusing, I think, and might draw even more odd dependencies. So I'd rather have the i2c patch moved to the PM staging tree (or whatever tree the dependent patch lives in.) Just let me know and I'll drop my copy.

The patch above has been applied to suspend-2.6/linux-next along with the Mark's $subject patch.

OK, I've dropped it from my i2c tree.

Quoted 1 line

I have converted your sign-off into an ack, hope that's fine.

Perfectly fine, yes, thanks.

Signature · 1 line
Jean Delvare
author
#33 lore raw
Quoted 10 lines · Jean Delvare
Quoted 2 lines · Rafael J. Wysocki

The patch above has been applied to suspend-2.6/linux-next along with the Mark's $subject patch.

OK, I've dropped it from my i2c tree.

Quoted 1 line

I have converted your sign-off into an ack, hope that's fine.

Perfectly fine, yes, thanks.

Thanks to both of you for sorting this out!

author
#34 lore raw
In reply to Jean Delvare
Quoted 10 lines · Jean Delvare
Quoted 2 lines · Rafael J. Wysocki

The patch above has been applied to suspend-2.6/linux-next along with the Mark's $subject patch.

OK, I've dropped it from my i2c tree.

Quoted 1 line

I have converted your sign-off into an ack, hope that's fine.

Perfectly fine, yes, thanks.

Thanks to both of you for sorting this out!