Re: [PATCH v2] power_supply: fix return value of get_property

2016-06-22 Thread Sebastian Reichel
Hi, On Tue, Jun 21, 2016 at 02:08:05PM -0400, Rhyland Klein wrote: > On 6/16/2016 11:40 AM, Rhyland Klein wrote: > > On 6/16/2016 4:43 AM, Krzysztof Kozlowski wrote: > >> On 06/16/2016 12:13 AM, Rhyland Klein wrote: > >>> power_supply_get_property() should ideally return -EAGAIN if it is > >>>

Re: [PATCH v2] power_supply: fix return value of get_property

2016-06-22 Thread Sebastian Reichel
Hi, On Tue, Jun 21, 2016 at 02:08:05PM -0400, Rhyland Klein wrote: > On 6/16/2016 11:40 AM, Rhyland Klein wrote: > > On 6/16/2016 4:43 AM, Krzysztof Kozlowski wrote: > >> On 06/16/2016 12:13 AM, Rhyland Klein wrote: > >>> power_supply_get_property() should ideally return -EAGAIN if it is > >>>

Re: [PATCH v2] power_supply: fix return value of get_property

2016-06-21 Thread Rhyland Klein
On 6/16/2016 11:40 AM, Rhyland Klein wrote: > On 6/16/2016 4:43 AM, Krzysztof Kozlowski wrote: >> On 06/16/2016 12:13 AM, Rhyland Klein wrote: >>> power_supply_get_property() should ideally return -EAGAIN if it is >>> called while the power_supply is being registered. There was no way >>>

Re: [PATCH v2] power_supply: fix return value of get_property

2016-06-21 Thread Rhyland Klein
On 6/16/2016 11:40 AM, Rhyland Klein wrote: > On 6/16/2016 4:43 AM, Krzysztof Kozlowski wrote: >> On 06/16/2016 12:13 AM, Rhyland Klein wrote: >>> power_supply_get_property() should ideally return -EAGAIN if it is >>> called while the power_supply is being registered. There was no way >>>

Re: [PATCH v2] power_supply: fix return value of get_property

2016-06-16 Thread Rhyland Klein
On 6/16/2016 4:43 AM, Krzysztof Kozlowski wrote: > On 06/16/2016 12:13 AM, Rhyland Klein wrote: >> power_supply_get_property() should ideally return -EAGAIN if it is >> called while the power_supply is being registered. There was no way >> previously to determine if use_cnt == 0 meant that the

Re: [PATCH v2] power_supply: fix return value of get_property

2016-06-16 Thread Rhyland Klein
On 6/16/2016 4:43 AM, Krzysztof Kozlowski wrote: > On 06/16/2016 12:13 AM, Rhyland Klein wrote: >> power_supply_get_property() should ideally return -EAGAIN if it is >> called while the power_supply is being registered. There was no way >> previously to determine if use_cnt == 0 meant that the

Re: [PATCH v2] power_supply: fix return value of get_property

2016-06-16 Thread Krzysztof Kozlowski
On 06/16/2016 12:13 AM, Rhyland Klein wrote: > power_supply_get_property() should ideally return -EAGAIN if it is > called while the power_supply is being registered. There was no way > previously to determine if use_cnt == 0 meant that the power_supply > wasn't fully registered yet, or if it had

Re: [PATCH v2] power_supply: fix return value of get_property

2016-06-16 Thread Krzysztof Kozlowski
On 06/16/2016 12:13 AM, Rhyland Klein wrote: > power_supply_get_property() should ideally return -EAGAIN if it is > called while the power_supply is being registered. There was no way > previously to determine if use_cnt == 0 meant that the power_supply > wasn't fully registered yet, or if it had

[PATCH v2] power_supply: fix return value of get_property

2016-06-15 Thread Rhyland Klein
power_supply_get_property() should ideally return -EAGAIN if it is called while the power_supply is being registered. There was no way previously to determine if use_cnt == 0 meant that the power_supply wasn't fully registered yet, or if it had already been unregistered. Add a new boolean to the

[PATCH v2] power_supply: fix return value of get_property

2016-06-15 Thread Rhyland Klein
power_supply_get_property() should ideally return -EAGAIN if it is called while the power_supply is being registered. There was no way previously to determine if use_cnt == 0 meant that the power_supply wasn't fully registered yet, or if it had already been unregistered. Add a new boolean to the