Re: [PATCH v2] reset: make shared pulsed reset controls re-triggerable

2020-11-16 Thread Jerome Brunet
On Mon 16 Nov 2020 at 17:36, Philipp Zabel wrote: > On Fri, 2020-11-13 at 16:13 +0100, Jerome Brunet wrote: >> On Fri 13 Nov 2020 at 16:04, Philipp Zabel wrote: >> >> > On Fri, 2020-11-13 at 00:00 +0100, Amjad Ouled-Ameur wrote: >> > > The current reset framework API does not allow to

Re: [PATCH v2] reset: make shared pulsed reset controls re-triggerable

2020-11-16 Thread Philipp Zabel
On Fri, 2020-11-13 at 16:13 +0100, Jerome Brunet wrote: > On Fri 13 Nov 2020 at 16:04, Philipp Zabel wrote: > > > On Fri, 2020-11-13 at 00:00 +0100, Amjad Ouled-Ameur wrote: > > > The current reset framework API does not allow to release what is done by > > > reset_control_reset(), IOW decrement

Re: [PATCH v2] reset: make shared pulsed reset controls re-triggerable

2020-11-13 Thread Amjad Ouled-Ameur
On 13/11/2020 16:04, Philipp Zabel wrote: On Fri, 2020-11-13 at 00:00 +0100, Amjad Ouled-Ameur wrote: The current reset framework API does not allow to release what is done by reset_control_reset(), IOW decrement triggered_count. Add the new reset_control_rearm() call to do so. When

Re: [PATCH v2] reset: make shared pulsed reset controls re-triggerable

2020-11-13 Thread Jerome Brunet
On Fri 13 Nov 2020 at 16:04, Philipp Zabel wrote: > On Fri, 2020-11-13 at 00:00 +0100, Amjad Ouled-Ameur wrote: >> The current reset framework API does not allow to release what is done by >> reset_control_reset(), IOW decrement triggered_count. Add the new >> reset_control_rearm() call to do

Re: [PATCH v2] reset: make shared pulsed reset controls re-triggerable

2020-11-13 Thread Philipp Zabel
On Fri, 2020-11-13 at 00:00 +0100, Amjad Ouled-Ameur wrote: > The current reset framework API does not allow to release what is done by > reset_control_reset(), IOW decrement triggered_count. Add the new > reset_control_rearm() call to do so. > > When reset_control_reset() has been called once,

Re: [PATCH v2] reset: make shared pulsed reset controls re-triggerable

2020-11-12 Thread Amjad Ouled-Ameur
Please find in this patchset [0] a use case of the reset_control_rearm() call on some of meson usb drivers: [0] https://lore.kernel.org/lkml/20201113000508.14702-1-aouledam...@baylibre.com/ On 13/11/2020 00:00, Amjad Ouled-Ameur wrote: The current reset framework API does not allow to

[PATCH v2] reset: make shared pulsed reset controls re-triggerable

2020-11-12 Thread Amjad Ouled-Ameur
The current reset framework API does not allow to release what is done by reset_control_reset(), IOW decrement triggered_count. Add the new reset_control_rearm() call to do so. When reset_control_reset() has been called once, the counter triggered_count, in the reset framework, is incremented i.e