Re: [PATCH v2 1/4] clock: Add ClockEvent parameter to callbacks

2021-02-11 Thread Philippe Mathieu-Daudé
Hi Peter, On 2/9/21 2:20 PM, Peter Maydell wrote: > The Clock framework allows users to specify a callback which is > called after the clock's period has been updated. Some users need to > also have a callback which is called before the clock period is > updated. > > As the first step in adding

Re: [PATCH v2 1/4] clock: Add ClockEvent parameter to callbacks

2021-02-11 Thread Luc Michel
On 13:20 Tue 09 Feb , Peter Maydell wrote: > The Clock framework allows users to specify a callback which is > called after the clock's period has been updated. Some users need to > also have a callback which is called before the clock period is > updated. > > As the first step in adding supp

Re: [PATCH v2 1/4] clock: Add ClockEvent parameter to callbacks

2021-02-10 Thread Peter Maydell
On Wed, 10 Feb 2021 at 20:53, Hao Wu wrote: > > > > On Tue, Feb 9, 2021 at 5:24 AM Peter Maydell wrote: >> diff --git a/hw/adc/npcm7xx_adc.c b/hw/adc/npcm7xx_adc.c >> index 870a6d50c27..573f4876dc6 100644 >> --- a/hw/adc/npcm7xx_adc.c >> +++ b/hw/adc/npcm7xx_adc.c >> @@ -238,7 +238,7 @@ static vo

Re: [PATCH v2 1/4] clock: Add ClockEvent parameter to callbacks

2021-02-10 Thread Hao Wu
On Tue, Feb 9, 2021 at 5:24 AM Peter Maydell wrote: > The Clock framework allows users to specify a callback which is > called after the clock's period has been updated. Some users need to > also have a callback which is called before the clock period is > updated. > > As the first step in addin

[PATCH v2 1/4] clock: Add ClockEvent parameter to callbacks

2021-02-09 Thread Peter Maydell
The Clock framework allows users to specify a callback which is called after the clock's period has been updated. Some users need to also have a callback which is called before the clock period is updated. As the first step in adding support for notifying Clock users on pre-update events, add an