Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source

2014-10-24 Thread Romain Perier
Okay, will do these changes.

2014-10-24 10:02 GMT+02:00 Peter De Schrijver :
> 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 :
>> > 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source

2014-10-24 Thread Romain Perier
Okay, will do these changes.

2014-10-24 10:02 GMT+02:00 Peter De Schrijver pdeschrij...@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 pdeschrij...@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.
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source

2014-10-23 Thread Alexandre Courbot
On Thu, Oct 23, 2014 at 6:39 PM, PERIER Romain  wrote:
> Hi Peter,
>
> 2014-10-23 10:12 GMT+02:00 Peter De Schrijver :
>> 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source

2014-10-23 Thread Lee Jones
On Thu, 23 Oct 2014, PERIER Romain wrote:

> 2014-10-22 17:50 GMT+02:00 Lee Jones :
> > 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 linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source

2014-10-23 Thread PERIER Romain
Hi Peter,

2014-10-23 10:12 GMT+02:00 Peter De Schrijver :
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source

2014-10-23 Thread Peter De Schrijver
On Wed, Oct 22, 2014 at 03:26:23PM +, 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source

2014-10-23 Thread PERIER Romain
2014-10-22 17:50 GMT+02:00 Lee Jones :
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source

2014-10-23 Thread PERIER Romain
2014-10-22 17:50 GMT+02:00 Lee Jones lee.jo...@linaro.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
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source

2014-10-23 Thread Peter De Schrijver
On Wed, Oct 22, 2014 at 03:26:23PM +, 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.
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source

2014-10-23 Thread PERIER Romain
Hi Peter,

2014-10-23 10:12 GMT+02:00 Peter De Schrijver pdeschrij...@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.

Romain
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source

2014-10-23 Thread Lee Jones
On Thu, 23 Oct 2014, PERIER Romain wrote:

 2014-10-22 17:50 GMT+02:00 Lee Jones lee.jo...@linaro.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 linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source

2014-10-23 Thread Alexandre Courbot
On Thu, Oct 23, 2014 at 6:39 PM, PERIER Romain romain.per...@gmail.com wrote:
 Hi Peter,

 2014-10-23 10:12 GMT+02:00 Peter De Schrijver pdeschrij...@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.
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source

2014-10-22 Thread Lee Jones
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 :
> > No longer use custom property to define poweroff capability, use the 
> > standard
> > DT property instead.
> >
> > Signed-off-by: Romain Perier 
> > ---
> >  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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source

2014-10-22 Thread 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.

2014-10-22 17:26 GMT+02:00 Romain Perier :
> No longer use custom property to define poweroff capability, use the standard
> DT property instead.
>
> Signed-off-by: Romain Perier 
> ---
>  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 linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source

2014-10-22 Thread Romain Perier
No longer use custom property to define poweroff capability, use the standard
DT property instead.

Signed-off-by: Romain Perier 
---
 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 linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source

2014-10-22 Thread Romain Perier
No longer use custom property to define poweroff capability, use the standard
DT property instead.

Signed-off-by: Romain Perier romain.per...@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;
 }
-- 
1.9.1

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source

2014-10-22 Thread 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.

2014-10-22 17:26 GMT+02:00 Romain Perier romain.per...@gmail.com:
 No longer use custom property to define poweroff capability, use the standard
 DT property instead.

 Signed-off-by: Romain Perier romain.per...@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;
  }
 --
 1.9.1

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v1 1/5] mfd: tps65910: Convert ti,system-power-controller DT property to poweroff-source

2014-10-22 Thread Lee Jones
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.per...@gmail.com:
  No longer use custom property to define poweroff capability, use the 
  standard
  DT property instead.
 
  Signed-off-by: Romain Perier romain.per...@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
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/