qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Raphael Poggi <raphael.poggi@lynxleap.co.uk>
Cc: qemu-devel@nongnu.org, luc@lmichel.fr, damien.hedde@dahe.fr,
	 philmd@linaro.org
Subject: Re: [PATCH] hw/core/clock: remove assert in clock_propagate
Date: Thu, 25 Apr 2024 20:10:58 +0100	[thread overview]
Message-ID: <CAFEAcA-w32We8F-EEMWt1=aXnDFiDK9qKfub-5Egpzn68q4Htg@mail.gmail.com> (raw)
In-Reply-To: <20240419162951.23558-1-raphael.poggi@lynxleap.co.uk>

On Fri, 19 Apr 2024 at 17:30, Raphael Poggi
<raphael.poggi@lynxleap.co.uk> wrote:
>
> This commit allows childs clock to propagate their new frequency,
> for example, after setting a new multiplier/diviser.
>
> Signed-off-by: Raphael Poggi <raphael.poggi@lynxleap.co.uk>

Applied to target-arm.next, thanks. I rewrote the commit message
to document the conversation we had in the other email thread:

    hw/core/clock: allow clock_propagate on child clocks

    clock_propagate() has an assert that clk->source is NULL, i.e. that
    you are calling it on a clock which has no source clock.  This made
    sense in the original design where the only way for a clock's
    frequency to change if it had a source clock was when that source
    clock changed.  However, we subsequently added multiplier/divider
    support, but didn't look at what that meant for propagation.

    If a clock-management device changes the multiplier or divider value
    on a clock, it needs to propagate that change down to child clocks,
    even if the clock has a source clock set.  So the assertion is now
    incorrect.

    Remove the assertion.

-- PMM


      reply	other threads:[~2024-04-25 19:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-19 16:29 [PATCH] hw/core/clock: remove assert in clock_propagate Raphael Poggi
2024-04-25 19:10 ` Peter Maydell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFEAcA-w32We8F-EEMWt1=aXnDFiDK9qKfub-5Egpzn68q4Htg@mail.gmail.com' \
    --to=peter.maydell@linaro.org \
    --cc=damien.hedde@dahe.fr \
    --cc=luc@lmichel.fr \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=raphael.poggi@lynxleap.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).