* Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source
[not found] ` <1413991587-11110-1-git-send-email-romain.perier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2014-10-22 15:25 ` PERIER Romain
2014-10-22 15:50 ` Lee Jones
2014-10-22 15:26 ` [PATCH v1 5/5] ARM: dts: tegra: Use poweroff-source DT property in tps65911 for tegra30 colibri Romain Perier
1 sibling, 1 reply; 14+ messages in thread
From: PERIER Romain @ 2014-10-22 15:25 UTC (permalink / raw)
To: sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org
Cc: Lee Jones, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll,
mark.rutland-5wv7dgnIgG8, ijc+devicetree, galak,
Russell King - ARM Linux, swarren, thierry.reding, gnurou,
Grant Likely, Linux Kernel Mailing List, devicetree,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Mark Brown
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 <romain.perier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> No longer use custom property to define poweroff capability, use the standard
> DT property instead.
>
> Signed-off-by: Romain Perier <romain.perier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> ---
> drivers/mfd/tps65910.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c
> index 7612d89..b8dca8a 100644
> --- a/drivers/mfd/tps65910.c
> +++ b/drivers/mfd/tps65910.c
> @@ -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
>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source
@ 2014-10-22 15:26 Romain Perier
[not found] ` <1413991587-11110-1-git-send-email-romain.perier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
` (4 more replies)
0 siblings, 5 replies; 14+ messages in thread
From: Romain Perier @ 2014-10-22 15:26 UTC (permalink / raw)
To: sameo-VuQAYsv1563Yd54FQh9/CA
Cc: lee.jones-QSEj5FYQhm4dnm+yROfE0A, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8,
ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
galak-sgV2jX0FEOL9JmXXK+q4OQ, linux-lFZ/pmaqli7XmaaqVzeoHQ,
swarren-3lzwWm7+Weoh9ZMKESR00Q,
thierry.reding-Re5JQEeQqe8AvxtiuMwx3w,
gnurou-Re5JQEeQqe8AvxtiuMwx3w,
grant.likely-QSEj5FYQhm4dnm+yROfE0A,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-tegra-u79uwXL29TY76Z2rM5mHXA,
broonie-DgEjT+Ai2ygdnm+yROfE0A
No longer use custom property to define poweroff capability, use the standard
DT property instead.
Signed-off-by: Romain Perier <romain.perier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
drivers/mfd/tps65910.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c
index 7612d89..b8dca8a 100644
--- a/drivers/mfd/tps65910.c
+++ b/drivers/mfd/tps65910.c
@@ -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
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v1 2/5] ARM: dts: tegra: Use poweroff-source DT property in tps65911 for tegra30 apalis
2014-10-22 15:26 [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source Romain Perier
[not found] ` <1413991587-11110-1-git-send-email-romain.perier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2014-10-22 15:26 ` Romain Perier
2014-10-22 15:26 ` [PATCH v1 3/5] ARM: dts: tegra: Use poweroff-source DT property in tps65911 for tegra30 beaver Romain Perier
` (2 subsequent siblings)
4 siblings, 0 replies; 14+ messages in thread
From: Romain Perier @ 2014-10-22 15:26 UTC (permalink / raw)
To: sameo
Cc: lee.jones, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, linux, swarren, thierry.reding, gnurou, grant.likely,
linux-kernel, devicetree, linux-arm-kernel, linux-tegra, broonie
Signed-off-by: Romain Perier <romain.perier@gmail.com>
---
arch/arm/boot/dts/tegra30-apalis.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/tegra30-apalis.dtsi b/arch/arm/boot/dts/tegra30-apalis.dtsi
index a5446cb..796e83b 100644
--- a/arch/arm/boot/dts/tegra30-apalis.dtsi
+++ b/arch/arm/boot/dts/tegra30-apalis.dtsi
@@ -412,7 +412,7 @@
#interrupt-cells = <2>;
interrupt-controller;
- ti,system-power-controller;
+ poweroff-source;
#gpio-cells = <2>;
gpio-controller;
--
1.9.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v1 3/5] ARM: dts: tegra: Use poweroff-source DT property in tps65911 for tegra30 beaver
2014-10-22 15:26 [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source Romain Perier
[not found] ` <1413991587-11110-1-git-send-email-romain.perier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-10-22 15:26 ` [PATCH v1 2/5] ARM: dts: tegra: Use poweroff-source DT property in tps65911 for tegra30 apalis Romain Perier
@ 2014-10-22 15:26 ` Romain Perier
2014-10-22 15:26 ` [PATCH v1 4/5] ARM: dts: tegra: Use poweroff-source DT property in tps65911 for tegra30 cardhu Romain Perier
2014-10-23 8:12 ` [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source Peter De Schrijver
4 siblings, 0 replies; 14+ messages in thread
From: Romain Perier @ 2014-10-22 15:26 UTC (permalink / raw)
To: sameo
Cc: lee.jones, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, linux, swarren, thierry.reding, gnurou, grant.likely,
linux-kernel, devicetree, linux-arm-kernel, linux-tegra, broonie
Signed-off-by: Romain Perier <romain.perier@gmail.com>
---
arch/arm/boot/dts/tegra30-beaver.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/tegra30-beaver.dts b/arch/arm/boot/dts/tegra30-beaver.dts
index cee8f22..47e01b6 100644
--- a/arch/arm/boot/dts/tegra30-beaver.dts
+++ b/arch/arm/boot/dts/tegra30-beaver.dts
@@ -188,7 +188,7 @@
#interrupt-cells = <2>;
interrupt-controller;
- ti,system-power-controller;
+ poweroff-source;
#gpio-cells = <2>;
gpio-controller;
--
1.9.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v1 4/5] ARM: dts: tegra: Use poweroff-source DT property in tps65911 for tegra30 cardhu
2014-10-22 15:26 [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source Romain Perier
` (2 preceding siblings ...)
2014-10-22 15:26 ` [PATCH v1 3/5] ARM: dts: tegra: Use poweroff-source DT property in tps65911 for tegra30 beaver Romain Perier
@ 2014-10-22 15:26 ` Romain Perier
2014-10-23 8:12 ` [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source Peter De Schrijver
4 siblings, 0 replies; 14+ messages in thread
From: Romain Perier @ 2014-10-22 15:26 UTC (permalink / raw)
To: sameo
Cc: lee.jones, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, linux, swarren, thierry.reding, gnurou, grant.likely,
linux-kernel, devicetree, linux-arm-kernel, linux-tegra, broonie
Signed-off-by: Romain Perier <romain.perier@gmail.com>
---
arch/arm/boot/dts/tegra30-cardhu.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi b/arch/arm/boot/dts/tegra30-cardhu.dtsi
index 2063795..276784d 100644
--- a/arch/arm/boot/dts/tegra30-cardhu.dtsi
+++ b/arch/arm/boot/dts/tegra30-cardhu.dtsi
@@ -232,7 +232,7 @@
#interrupt-cells = <2>;
interrupt-controller;
- ti,system-power-controller;
+ poweroff-source;
#gpio-cells = <2>;
gpio-controller;
--
1.9.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v1 5/5] ARM: dts: tegra: Use poweroff-source DT property in tps65911 for tegra30 colibri
[not found] ` <1413991587-11110-1-git-send-email-romain.perier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-10-22 15:25 ` PERIER Romain
@ 2014-10-22 15:26 ` Romain Perier
1 sibling, 0 replies; 14+ messages in thread
From: Romain Perier @ 2014-10-22 15:26 UTC (permalink / raw)
To: sameo-VuQAYsv1563Yd54FQh9/CA
Cc: lee.jones-QSEj5FYQhm4dnm+yROfE0A, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8,
ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
galak-sgV2jX0FEOL9JmXXK+q4OQ, linux-lFZ/pmaqli7XmaaqVzeoHQ,
swarren-3lzwWm7+Weoh9ZMKESR00Q,
thierry.reding-Re5JQEeQqe8AvxtiuMwx3w,
gnurou-Re5JQEeQqe8AvxtiuMwx3w,
grant.likely-QSEj5FYQhm4dnm+yROfE0A,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-tegra-u79uwXL29TY76Z2rM5mHXA,
broonie-DgEjT+Ai2ygdnm+yROfE0A
Signed-off-by: Romain Perier <romain.perier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
arch/arm/boot/dts/tegra30-colibri.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/tegra30-colibri.dtsi b/arch/arm/boot/dts/tegra30-colibri.dtsi
index c4ed1be..e35c4d4 100644
--- a/arch/arm/boot/dts/tegra30-colibri.dtsi
+++ b/arch/arm/boot/dts/tegra30-colibri.dtsi
@@ -190,7 +190,7 @@
#interrupt-cells = <2>;
interrupt-controller;
- ti,system-power-controller;
+ poweroff-source;
#gpio-cells = <2>;
gpio-controller;
--
1.9.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source
2014-10-22 15:25 ` PERIER Romain
@ 2014-10-22 15:50 ` Lee Jones
2014-10-23 7:30 ` PERIER Romain
0 siblings, 1 reply; 14+ messages in thread
From: Lee Jones @ 2014-10-22 15:50 UTC (permalink / raw)
To: PERIER Romain
Cc: sameo@linux.intel.com, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, Russell King - ARM Linux, swarren,
thierry.reding, gnurou, Grant Likely, Linux Kernel Mailing List,
devicetree, linux-arm-kernel, linux-tegra@vger.kernel.org,
Mark Brown
On Wed, 22 Oct 2014, PERIER Romain wrote:
> 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.
> 2014-10-22 17:26 GMT+02:00 Romain Perier <romain.perier@gmail.com>:
> > No longer use custom property to define poweroff capability, use the standard
> > DT property instead.
> >
> > Signed-off-by: Romain Perier <romain.perier@gmail.com>
> > ---
> > drivers/mfd/tps65910.c | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c
> > index 7612d89..b8dca8a 100644
> > --- a/drivers/mfd/tps65910.c
> > +++ b/drivers/mfd/tps65910.c
> > @@ -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;
> > }
> >
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source
2014-10-22 15:50 ` Lee Jones
@ 2014-10-23 7:30 ` PERIER Romain
[not found] ` <CABgxDoJSLrAOMMA7=ZGd4F6z7_FkojCdjUNi52wbocZk7yJowQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 14+ messages in thread
From: PERIER Romain @ 2014-10-23 7:30 UTC (permalink / raw)
To: Lee Jones
Cc: sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll,
mark.rutland-5wv7dgnIgG8, ijc+devicetree, galak,
Russell King - ARM Linux, swarren, thierry.reding, gnurou,
Grant Likely, Linux Kernel Mailing List, devicetree,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Mark Brown
2014-10-22 17:50 GMT+02:00 Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>:
> On Wed, 22 Oct 2014, PERIER Romain wrote:
>
>> 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source
2014-10-22 15:26 [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source Romain Perier
` (3 preceding siblings ...)
2014-10-22 15:26 ` [PATCH v1 4/5] ARM: dts: tegra: Use poweroff-source DT property in tps65911 for tegra30 cardhu Romain Perier
@ 2014-10-23 8:12 ` Peter De Schrijver
[not found] ` <20141023081230.GK32045-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>
4 siblings, 1 reply; 14+ messages in thread
From: Peter De Schrijver @ 2014-10-23 8:12 UTC (permalink / raw)
To: Romain Perier
Cc: sameo, lee.jones, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, linux, swarren, thierry.reding, gnurou,
grant.likely, linux-kernel, devicetree, linux-arm-kernel,
linux-tegra, broonie
On Wed, Oct 22, 2014 at 03:26:23PM +0000, Romain Perier wrote:
> 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.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source
[not found] ` <20141023081230.GK32045-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>
@ 2014-10-23 9:39 ` PERIER Romain
2014-10-24 2:11 ` Alexandre Courbot
2014-10-24 8:02 ` [PATCH v1 1/5] mfd: tps65910: Convert ti, system-power-controller " Peter De Schrijver
0 siblings, 2 replies; 14+ messages in thread
From: PERIER Romain @ 2014-10-23 9:39 UTC (permalink / raw)
To: Peter De Schrijver
Cc: sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org, Lee Jones,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll,
mark.rutland-5wv7dgnIgG8, ijc+devicetree, Kumar Gala,
Russell King - ARM Linux, Stephen Warren, Thierry Reding,
Alexandre Courbot, Grant Likely, Linux Kernel Mailing List,
devicetree, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Mark Brown
Hi Peter,
2014-10-23 10:12 GMT+02:00 Peter De Schrijver <pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>:
> 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source
[not found] ` <CABgxDoJSLrAOMMA7=ZGd4F6z7_FkojCdjUNi52wbocZk7yJowQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-10-23 10:02 ` Lee Jones
0 siblings, 0 replies; 14+ messages in thread
From: Lee Jones @ 2014-10-23 10:02 UTC (permalink / raw)
To: PERIER Romain
Cc: sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll,
mark.rutland-5wv7dgnIgG8, ijc+devicetree, galak,
Russell King - ARM Linux, swarren, thierry.reding, gnurou,
Grant Likely, Linux Kernel Mailing List, devicetree,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Mark Brown
On Thu, 23 Oct 2014, PERIER Romain wrote:
> 2014-10-22 17:50 GMT+02:00 Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>:
> > On Wed, 22 Oct 2014, PERIER Romain wrote:
> >
> >> 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)
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.
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source
2014-10-23 9:39 ` PERIER Romain
@ 2014-10-24 2:11 ` Alexandre Courbot
2014-10-24 8:02 ` [PATCH v1 1/5] mfd: tps65910: Convert ti, system-power-controller " Peter De Schrijver
1 sibling, 0 replies; 14+ messages in thread
From: Alexandre Courbot @ 2014-10-24 2:11 UTC (permalink / raw)
To: PERIER Romain
Cc: Peter De Schrijver, sameo@linux.intel.com, Lee Jones, Rob Herring,
pawel.moll, Mark Rutland, ijc+devicetree, Kumar Gala,
Russell King - ARM Linux, Stephen Warren, Thierry Reding,
Grant Likely, Linux Kernel Mailing List, devicetree,
linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org,
Mark Brown
On Thu, Oct 23, 2014 at 6:39 PM, PERIER Romain <romain.perier@gmail.com> wrote:
> Hi Peter,
>
> 2014-10-23 10:12 GMT+02:00 Peter De Schrijver <pdeschrijver@nvidia.com>:
>> 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.
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.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v1 1/5] mfd: tps65910: Convert ti, system-power-controller DT property to poweroff-source
2014-10-23 9:39 ` PERIER Romain
2014-10-24 2:11 ` Alexandre Courbot
@ 2014-10-24 8:02 ` Peter De Schrijver
2014-10-24 9:04 ` [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller " Romain Perier
1 sibling, 1 reply; 14+ messages in thread
From: Peter De Schrijver @ 2014-10-24 8:02 UTC (permalink / raw)
To: PERIER Romain
Cc: mark.rutland, Alexandre Courbot, Russell King - ARM Linux,
sameo@linux.intel.com, pawel.moll, ijc+devicetree, Mark Brown,
Stephen Warren, Linux Kernel Mailing List,
linux-tegra@vger.kernel.org, devicetree, robh+dt, Thierry Reding,
Kumar Gala, Grant Likely, Lee Jones, linux-arm-kernel
On Thu, Oct 23, 2014 at 11:39:34AM +0200, PERIER Romain wrote:
> Hi Peter,
>
> 2014-10-23 10:12 GMT+02:00 Peter De Schrijver <pdeschrijver@nvidia.com>:
> > 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.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source
2014-10-24 8:02 ` [PATCH v1 1/5] mfd: tps65910: Convert ti, system-power-controller " Peter De Schrijver
@ 2014-10-24 9:04 ` Romain Perier
0 siblings, 0 replies; 14+ messages in thread
From: Romain Perier @ 2014-10-24 9:04 UTC (permalink / raw)
To: Peter De Schrijver
Cc: sameo@linux.intel.com, Lee Jones, robh+dt, pawel.moll,
mark.rutland, ijc+devicetree, Kumar Gala,
Russell King - ARM Linux, Stephen Warren, Thierry Reding,
Alexandre Courbot, Grant Likely, Linux Kernel Mailing List,
devicetree, linux-arm-kernel, linux-tegra@vger.kernel.org,
Mark Brown
Okay, will do these changes.
2014-10-24 10:02 GMT+02:00 Peter De Schrijver <pdeschrijver@nvidia.com>:
> On Thu, Oct 23, 2014 at 11:39:34AM +0200, PERIER Romain wrote:
>> Hi Peter,
>>
>> 2014-10-23 10:12 GMT+02:00 Peter De Schrijver <pdeschrijver@nvidia.com>:
>> > 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.
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2014-10-24 9:04 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-22 15:26 [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source Romain Perier
[not found] ` <1413991587-11110-1-git-send-email-romain.perier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-10-22 15:25 ` PERIER Romain
2014-10-22 15:50 ` Lee Jones
2014-10-23 7:30 ` PERIER Romain
[not found] ` <CABgxDoJSLrAOMMA7=ZGd4F6z7_FkojCdjUNi52wbocZk7yJowQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-10-23 10:02 ` Lee Jones
2014-10-22 15:26 ` [PATCH v1 5/5] ARM: dts: tegra: Use poweroff-source DT property in tps65911 for tegra30 colibri Romain Perier
2014-10-22 15:26 ` [PATCH v1 2/5] ARM: dts: tegra: Use poweroff-source DT property in tps65911 for tegra30 apalis Romain Perier
2014-10-22 15:26 ` [PATCH v1 3/5] ARM: dts: tegra: Use poweroff-source DT property in tps65911 for tegra30 beaver Romain Perier
2014-10-22 15:26 ` [PATCH v1 4/5] ARM: dts: tegra: Use poweroff-source DT property in tps65911 for tegra30 cardhu Romain Perier
2014-10-23 8:12 ` [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source Peter De Schrijver
[not found] ` <20141023081230.GK32045-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>
2014-10-23 9:39 ` PERIER Romain
2014-10-24 2:11 ` Alexandre Courbot
2014-10-24 8:02 ` [PATCH v1 1/5] mfd: tps65910: Convert ti, system-power-controller " Peter De Schrijver
2014-10-24 9:04 ` [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller " Romain Perier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).