Re: [PATCH] reset: fix shared reset triggered_count decrement on error

2017-02-16 Thread Philipp Zabel
On Wed, 2017-02-15 at 19:15 +0100, Jerome Brunet wrote: > For a shared reset, when the reset is successful, the triggered_count is > incremented when trying to call the reset callback, so that another device > sharing the same reset line won't trigger it again. If the reset has not > been

Re: [PATCH] reset: fix shared reset triggered_count decrement on error

2017-02-16 Thread Philipp Zabel
On Wed, 2017-02-15 at 19:15 +0100, Jerome Brunet wrote: > For a shared reset, when the reset is successful, the triggered_count is > incremented when trying to call the reset callback, so that another device > sharing the same reset line won't trigger it again. If the reset has not > been

Re: [PATCH] reset: fix shared reset triggered_count decrement on error

2017-02-15 Thread Martin Blumenstingl
Hi Jerome, ouch, thanks for spotting and fixing this! On Wed, Feb 15, 2017 at 7:15 PM, Jerome Brunet wrote: > For a shared reset, when the reset is successful, the triggered_count is > incremented when trying to call the reset callback, so that another device > sharing the

Re: [PATCH] reset: fix shared reset triggered_count decrement on error

2017-02-15 Thread Martin Blumenstingl
Hi Jerome, ouch, thanks for spotting and fixing this! On Wed, Feb 15, 2017 at 7:15 PM, Jerome Brunet wrote: > For a shared reset, when the reset is successful, the triggered_count is > incremented when trying to call the reset callback, so that another device > sharing the same reset line won't

[PATCH] reset: fix shared reset triggered_count decrement on error

2017-02-15 Thread Jerome Brunet
For a shared reset, when the reset is successful, the triggered_count is incremented when trying to call the reset callback, so that another device sharing the same reset line won't trigger it again. If the reset has not been triggered successfully, the trigger_count should be decremented. The

[PATCH] reset: fix shared reset triggered_count decrement on error

2017-02-15 Thread Jerome Brunet
For a shared reset, when the reset is successful, the triggered_count is incremented when trying to call the reset callback, so that another device sharing the same reset line won't trigger it again. If the reset has not been triggered successfully, the trigger_count should be decremented. The