From patchwork Fri Mar 22 15:58:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 781854 Delivered-To: patch@linaro.org Received: by 2002:adf:cf01:0:b0:33e:7753:30bd with SMTP id o1csp1420534wrj; Fri, 22 Mar 2024 08:59:07 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWKmt4+0/9cYZzcG10udjYxilvjTLYX9Xw9F7ei++m08O/+x4sUC63M/QceydOamjOlvi17MZY4KiaRTKJN+S8A X-Google-Smtp-Source: AGHT+IE9ZQTM+3Vu+Dm7jcbKzbv72iHpIuzyazezke+PFzXm11bLBAfgsfH5vNR4tj+qUvyerODX X-Received: by 2002:a25:5f11:0:b0:dcc:97e4:bc61 with SMTP id t17-20020a255f11000000b00dcc97e4bc61mr2660074ybb.57.1711123146772; Fri, 22 Mar 2024 08:59:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711123146; cv=none; d=google.com; s=arc-20160816; b=xoneePnRaOUYD/6U6t+1jgL+JzPR1qruEBGXZ6gNP7qbyMmV2yZtyQncRyK/FQCRxh lGQRohOAr0AIgl8An9lFGYCch8JTUguVMs6xnurZXtp/Y8BVoHOszLy93/AbueohgFa+ HzhV4MSl8BWQ6SUpvVKkh2cLE2s2GF4OlgAP4hj3QtWnPsMgiFxq5KzPII3Z3V6GZ1Te bxk9YjgB3tGa1iS3ww0ijp0UmnFRvJDxoIgDL1TUnkKcD8grCJNxVfYkp5B3ehcXUife 3scCYG246/Zd9495xHxyDRmI7vFDQtul4TCBCCXuJgX+ghVJj7TDMbXy8VzY8o1THQlp 13dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=+fOM1vzhhoXwFohG+Qy5/7EBij4qwGl2aH9+HP9YMpY=; fh=ehv+kQt6ZRcwDkQ1XgUh3GNAfxStVE1Rl0SRcGWy25Y=; b=ncJ7tMJOvPeYLZa+Rqqt18YcefgnQsCppKPhThnVr0RkllaGtB+LtD3okoH4uFOcwb mg+rtV9+suB/MlwU5Z9sGA5fQn3wiCdDW98TITblCxVMC5fDHnumoUxQVaR7RtiDPst0 WF99mPjQG3uTgPPS0Q22BADiMLDFEW4+3cw2RvywPwUOIPHdhLWEWemC3NQxvHdt153o FiMftOjwD1vXc+SsWC8w2AGtq41nOoLWj+ufCCNqfbHSwdPu1RAns0jM+6Ic1s0bao7+ ufK0FVoOEBDj6ey7Fho7C8nGd2XnISCU+YWyU/rLQNdQ5LiS7d2RbMGNZAsQu1fh1X77 DwKQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tTOAULZM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id fo11-20020ad45f0b000000b0068fe276cf6esi2207912qvb.330.2024.03.22.08.59.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Mar 2024 08:59:06 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tTOAULZM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rnhHm-00017s-2K; Fri, 22 Mar 2024 11:58:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rnhHf-00015u-TS for qemu-devel@nongnu.org; Fri, 22 Mar 2024 11:58:20 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rnhHd-0005a3-3T for qemu-devel@nongnu.org; Fri, 22 Mar 2024 11:58:19 -0400 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-33ed7ef0ae8so1307899f8f.0 for ; Fri, 22 Mar 2024 08:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711123093; x=1711727893; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+fOM1vzhhoXwFohG+Qy5/7EBij4qwGl2aH9+HP9YMpY=; b=tTOAULZMWZu8CC8X8JNGyLWLOvl6BnStOgFzUfgfutUobxFuTeEtC0cLMJOChQlxJp 5HjIzxAhxKNOtt9ZRjBvkGGtSFEjtxFMz21jJPUT4bWGKvm2Fglnp02nG4jKcVwvCaOh T0AM3mHxg9F4nYnKvRO6hQzvOtdtGIeek1bh8IwvpsWCjqWz6PG9Ku1iBbV/vw1p05fV LIA5C1hXAVvMRCz917BYt8DKKUwBhErzNF671p3ByGxQqPlQ1MG5fq+hBdfY5gGzsuQC 3wfWHBr8jJE/vD4Ydu+/q1yeHws1jrmK2DtiMJ7IdS7mndu3exmjHFIBlZfCDN6Y8+2n jQNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711123093; x=1711727893; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+fOM1vzhhoXwFohG+Qy5/7EBij4qwGl2aH9+HP9YMpY=; b=p3STzrN9oz6zQHKq0DcQQbex34y7HJOcKjSjGL1V7F6s26QFTHsYRaWbe3bAghjuIu hBeUtCxfKXE/Tmtx+wO8CYSRdYeynWE6v5X5G5OuWfmIkXYwfsBJpxdN2I0iMxyHnOJC mJV5LNGRUDdvkHohRP6b09QvpukkHobYM5QqpJIvRLjCNMWz+zRjZ1GUSscvyF9U4q4G eigE2zpcyd7IrGYEGK9HSla1d003WwdlTiGrNP+P3Sq7uIQkXgD+gIqX9Wpq2l7kSgBr 0cjqTQn58VdS4wyo95zlZAxRVAhqsv1mBZOIRqKwkzWsi13YevpLEc8tu5DbWiWpCvhZ V/2g== X-Gm-Message-State: AOJu0Ywk+kKEuD6V4haBRgoWNXnLgHyLfkQtZv6LcZFwem5NP5ybKLY7 goQLXc5rgolWgl3UQuKZ8nLpA6zWV6SqwU2Y72UYcDEXe4nmQF05hryua+w31WfZjOaNZLWAcje m X-Received: by 2002:adf:e54f:0:b0:33e:d8f:3466 with SMTP id z15-20020adfe54f000000b0033e0d8f3466mr2098172wrm.33.1711123093568; Fri, 22 Mar 2024 08:58:13 -0700 (PDT) Received: from m1x-phil.lan ([176.176.178.251]) by smtp.gmail.com with ESMTPSA id v7-20020a5d6107000000b0033e9e26a2d0sm2333672wrt.37.2024.03.22.08.58.11 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 22 Mar 2024 08:58:13 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Luc Michel , Luc Michel , Damien Hedde , =?utf-8?q?In=C3=A8s_Varhol?= , Arnaud Minier , qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH-for-9.0 0/2] hw/clock: Propagate clock changes when STM32L4X5 MUX is updated Date: Fri, 22 Mar 2024 16:58:08 +0100 Message-ID: <20240322155810.5733-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=philmd@linaro.org; helo=mail-wr1-x432.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Per https://www.qemu.org/docs/master/devel/clocks.html#clock-multiplier-and-divider-settings: Note that clock_set_mul_div() does not automatically call clock_propagate(). If you make a runtime change to the multiplier or divider you must call clock_propagate() yourself. Fix what we forgot to do that in recent commit ec7d83acbd ("hw/misc/stm32l4x5_rcc: Add an internal clock multiplexer object") Arnaud Minier (1): hw/misc/stm32l4x5_rcc: Propagate period when enabling a clock Philippe Mathieu-Daudé (1): hw/clock: Let clock_set_mul_div() return boolean value include/hw/clock.h | 4 +++- hw/core/clock.c | 8 +++++++- hw/misc/stm32l4x5_rcc.c | 5 ++++- 3 files changed, 14 insertions(+), 3 deletions(-)