mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source
Subsystems (4)
PATCH 1/5 mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source
No longer use custom property to define poweroff capability, use the standard DT property instead.
--- drivers/mfd/tps65910.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/mfd/tps65910.c +1 -2
@@ -423,8 +423,7 @@ static struct tps65910_board *tps65910_parse_dt(struct i2c_client *client, board_info->irq = client->irq; board_info->irq_base =-1 ; - board_info->pm_off =of_property_read_bool (np, -"ti,system-power-controller" ); + board_info->pm_off =of_system_has_poweroff_source (np);return board_info; }
Signature · 1 line
1.9.1
PATCH 2/5 ARM: dts: tegra: Use poweroff-source DT property in tps65911 for tegra30 apalis
--- arch/arm/boot/dts/tegra30-apalis.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/tegra30-apalis.dtsi +1 -1
@@ -412,7 +412,7 @@ #interrupt-cells = <2>; interrupt-controller; - ti,system-power-controller; + poweroff-source; #gpio-cells = <2>; gpio-controller;
Signature · 1 line
1.9.1
PATCH 3/5 ARM: dts: tegra: Use poweroff-source DT property in tps65911 for tegra30 beaver
In reply to Romain Perier--- arch/arm/boot/dts/tegra30-beaver.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/tegra30-beaver.dts +1 -1
@@ -188,7 +188,7 @@ #interrupt-cells = <2>; interrupt-controller; - ti,system-power-controller; + poweroff-source; #gpio-cells = <2>; gpio-controller;
Signature · 1 line
1.9.1
PATCH 4/5 ARM: dts: tegra: Use poweroff-source DT property in tps65911 for tegra30 cardhu
In reply to Romain Perier--- arch/arm/boot/dts/tegra30-cardhu.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/tegra30-cardhu.dtsi +1 -1
@@ -232,7 +232,7 @@ #interrupt-cells = <2>; interrupt-controller; - ti,system-power-controller; + poweroff-source; #gpio-cells = <2>; gpio-controller;
Signature · 1 line
1.9.1
PATCH 5/5 ARM: dts: tegra: Use poweroff-source DT property in tps65911 for tegra30 colibri
In reply to Romain Perier--- arch/arm/boot/dts/tegra30-colibri.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/tegra30-colibri.dtsi +1 -1
@@ -190,7 +190,7 @@ #interrupt-cells = <2>; interrupt-controller; - ti,system-power-controller; + poweroff-source; #gpio-cells = <2>; gpio-controller;
Signature · 1 line
1.9.1
This is related to the following subject "[RFC v3 PATCH 1/5] of: Add standard property for poweroff capability" and depends on the corresponding patch.
2014-10-22 17:26 GMT+02:00 Romain Perier <[email protected]>:
Quoted 25 lines
No longer use custom property to define poweroff capability, use the standard DT property instead.
Signed-off-by Romain Perier <[email protected]>--- drivers/mfd/tps65910.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/mfd/tps65910.c +1
-3@@ -423,8 +423,7 @@ static struct tps65910_board *tps65910_parse_dt(struct i2c_client *client, board_info->irq = client->irq; board_info->irq_base =-1 ; - board_info->pm_off =of_property_read_bool (np, -"ti,system-power-controller" ); + board_info->pm_off =of_system_has_poweroff_source (np);return board_info; } --1.9.1
Quoted 3 lines · PERIER Romain
This is related to the following subject "[RFC v3 PATCH 1/5] of: Add standard property for poweroff capability" and depends on the corresponding patch.
Then it should be sent in the same patch-set.
There's nothing I can do with this patch as is.
Quoted 24 lines
2014-10-22 17:26 GMT+02:00 Romain Perier <[email protected]>:
Quoted 23 lines
No longer use custom property to define poweroff capability, use the standard DT property instead.
Signed-off-by Romain Perier <[email protected]>--- drivers/mfd/tps65910.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/mfd/tps65910.c +1
-2@@ -423,8 +423,7 @@ static struct tps65910_board *tps65910_parse_dt(struct i2c_client *client, board_info->irq = client->irq; board_info->irq_base =-1 ; - board_info->pm_off =of_property_read_bool (np, -"ti,system-power-controller" ); + board_info->pm_off =of_system_has_poweroff_source (np);return board_info; }
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org ? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
2014-10-22 17:50 GMT+02:00 Lee Jones <[email protected]>:
Quoted 10 lines · PERIER Romain
Quoted 4 lines
This is related to the following subject "[RFC v3 PATCH 1/5] of: Add standard property for poweroff capability" and depends on the corresponding patch.
Then it should be sent in the same patch-set.
There's nothing I can do with this patch as is.
Even if this patch is already commited and present in "linux-next" ? (or in Mark Brown's regulator tree)
Romain
Quoted 7 lines · PERIER Romain
2014-10-22 17:50 GMT+02:00 Lee Jones <[email protected]>:
Quoted 6 lines · PERIER Romain
Quoted 4 lines
This is related to the following subject "[RFC v3 PATCH 1/5] of: Add standard property for poweroff capability" and depends on the corresponding patch.
Quoted 7 lines
Quoted 4 lines
Then it should be sent in the same patch-set.
There's nothing I can do with this patch as is.
Even if this patch is already commited and present in "linux-next" ? (or in Mark Brown's regulator tree)
Usually it wouldn't be possible to take this, as it would be difficult to ensure bisectability. The way we usually deal with this is to have a shared immutable branch between the effected subsystems, but we can only do this if the patches are sent as a set. However, it appears as though Mark has "of: Add standard property for poweroff capability" on a tagged branch on its own. This means, after checking with Mark that this branch in indeed stable, I can merge it in and base this commit on top of it. Not many people setup their repos like Mark does, so I guess you are lucky this time.
Once I've heard back from Mark, I'll let you know when I apply the patch.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org ? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Quoted 3 lines · Romain Perier
No longer use custom property to define poweroff capability, use the standard DT property instead.
This breaks DT ABI stability right? An existing device tree using ti,system-power-controller won't work anymore after this patch right? I don't think that's acceptable.
CHeers,
Peter.
Hi Peter,
2014-10-23 10:12 GMT+02:00 Peter De Schrijver <[email protected]>:
Quoted 2 lines
This breaks DT ABI stability right? An existing device tree using ti,system-power-controller won't work anymore after this patch right? I don't think that's acceptable.
This is why I converted all dts which use "ti,system-power-controller" and tps65910/tps65911 to the new property (everything is in the patches serie). However, with an existing dtb it will no longer work, yes.
What do you suggest ? keep these two properties in the driver ? :/
I mean, this is a standardization, so all the corresponding dts must be updated and rebuilt... Like when you change something in a dt-binding, you should update and rebuilt the dts... I Don't compute.
Romain
Quoted 12 lines · PERIER Romain
Hi Peter,
2014-10-23 10:12 GMT+02:00 Peter De Schrijver <[email protected]>:
Quoted 2 lines
This breaks DT ABI stability right? An existing device tree using ti,system-power-controller won't work anymore after this patch right? I don't think that's acceptable.
This is why I converted all dts which use "ti,system-power-controller" and tps65910/tps65911 to the new property (everything is in the patches serie). However, with an existing dtb it will no longer work, yes.
What do you suggest ? keep these two properties in the driver ? :/
Quoted 3 lines
I mean, this is a standardization, so all the corresponding dts must be updated and rebuilt... Like when you change something in a dt-binding, you should update and rebuilt the dts... I Don't compute.
DT ABI stability rule: any DTB that worked with kernel x must also work with kernel x+1. It seems like this patch would break that rule.
It's ok to manage new properties and to deprecate the use of older ones if it makes sense (and in this case it seems like it does). But the old property must still be handled for compatibility reasons.
PATCH 1/5 mfd: tps65910: Convert ti, system-power-controller DT property to poweroff-source
In reply to PERIER RomainQuoted 12 lines · PERIER Romain
Hi Peter,
2014-10-23 10:12 GMT+02:00 Peter De Schrijver <[email protected]>:
Quoted 2 lines
This breaks DT ABI stability right? An existing device tree using ti,system-power-controller won't work anymore after this patch right? I don't think that's acceptable.
This is why I converted all dts which use "ti,system-power-controller" and tps65910/tps65911 to the new property (everything is in the patches serie). However, with an existing dtb it will no longer work, yes.
What do you suggest ? keep these two properties in the driver ? :/
Yes. Existing DTs should work with new kernels. So there's no other choice than leaving support for the existing property in place. Obviously DTs for new boards can use the new standardized property.
Cheers,
Peter.
Okay, will do these changes.
2014-10-24 10:02 GMT+02:00 Peter De Schrijver <[email protected]>:
Quoted 21 lines · PERIER Romain
Quoted 12 lines
Hi Peter,
2014-10-23 10:12 GMT+02:00 Peter De Schrijver <[email protected]>:
Quoted 2 lines
This breaks DT ABI stability right? An existing device tree using ti,system-power-controller won't work anymore after this patch right? I don't think that's acceptable.
This is why I converted all dts which use "ti,system-power-controller" and tps65910/tps65911 to the new property (everything is in the patches serie). However, with an existing dtb it will no longer work, yes.
What do you suggest ? keep these two properties in the driver ? :/Yes. Existing DTs should work with new kernels. So there's no other choice than leaving support for the existing property in place. Obviously DTs for new boards can use the new standardized property.
Cheers,
Peter.