Message ID | 20231002180854.1603452-1-ben.wolsieffer@hefring.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp1712655vqb; Mon, 2 Oct 2023 14:59:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH1s4dP6QJT5sgWCUBq/d9XfW4WdLMwHtX8BL1m9ormB/P3RVi816y8hKPMr1/yKUGJ++Af X-Received: by 2002:a17:902:a510:b0:1c4:32da:2037 with SMTP id s16-20020a170902a51000b001c432da2037mr8796653plq.64.1696283940369; Mon, 02 Oct 2023 14:59:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696283940; cv=none; d=google.com; s=arc-20160816; b=FgG6inTWcNarcyRKPTfmEhuW9DJwjotUQeOUk1+TKuV8nHdVfobHR4Apfh3tYzpLFv Pd8txttrmLQdwV3M390qAH2c8hhocBrQGmPLpUJy/+1xhMNVSfbGKruh6cvOSaCRFNKR 9pl222FIf1ybeRqe3u4opoiu5Y1p6sRBvIVZdFhsbalT6MTgYK5rc3v+Tcx+geAMWdyp bW3utXQX1t5GW0LIbVXLyDjb2rsIz1SF9hl7rUEqgXBN0ZqQno6xkd41WxjEsymh2zu2 E6v3ayynwUhaYgitvoxpYcOsobcS9nQgNfxJWHK5D74mKOImkW6vWxoaFHGB4Tf8Hhh8 f7xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=NfCq6MAu8bRwi9TEgatpoY4BVdbPJq248wgHhwcLCxU=; fh=kCIPcEqavua6BFvpW+ca31cFT8g0h238WggEKCCQPP0=; b=KdKlZtOD1lj1HDv/XUXjaOQaPQ0YDEAAlfi6KMlHDuZXXHlnUUUnASZS9CrTvg/3cR 4a0hKHcrGPblBqa+kVBi7Uwo9dAJ6kgkVRZz1Kz/HKraDdWHatbvZw+RHL3h0OMYjor+ yO9Uvc2GnoASX+lu63AWek2YWLn1JjTBDSmghaSgDymGFdHIaKQPgCi4EQeWEws6YHoX /4JnRssqrs3eJY88W3AaJke+2tbvQHEA/i3r/t3mlOkjAIEBoGWP9T0jhesqP0n0WRhF wtGNiiJMSQ+x8JeG+H0TMYpHmrXaKivYUIVMiQ1IaQ14Hw4B0j2VV3/it9h13/3P52mE ZwqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hefring-com.20230601.gappssmtp.com header.s=20230601 header.b=o4IDCPuT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id iw10-20020a170903044a00b001c45cb1d770si25948933plb.280.2023.10.02.14.59.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 14:59:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@hefring-com.20230601.gappssmtp.com header.s=20230601 header.b=o4IDCPuT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1CFD681393DA; Mon, 2 Oct 2023 11:09:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238756AbjJBSJi (ORCPT <rfc822;pusanteemu@gmail.com> + 18 others); Mon, 2 Oct 2023 14:09:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238753AbjJBSJg (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 2 Oct 2023 14:09:36 -0400 Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7588BD for <linux-kernel@vger.kernel.org>; Mon, 2 Oct 2023 11:09:29 -0700 (PDT) Received: by mail-qk1-x731.google.com with SMTP id af79cd13be357-7741bffd123so7270185a.0 for <linux-kernel@vger.kernel.org>; Mon, 02 Oct 2023 11:09:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hefring-com.20230601.gappssmtp.com; s=20230601; t=1696270169; x=1696874969; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=NfCq6MAu8bRwi9TEgatpoY4BVdbPJq248wgHhwcLCxU=; b=o4IDCPuTM8iyeYj8RegdYI1xVjbpUCBHKWJXxY37aNY4dpbT3l0sPIoh+rKuDDRw+8 bPpPesxNPTMPMM5TJCKsQWxG5Cr0oVocEO5vfZFLTmh0RDl8fUvSchVFArSFLYhap/v3 2I/F7mh+85TUWvxMMFChlOr7Wp8CiwrvMq6FLo4tCDFK2U+OFPucTnZ5fCDD9nAiW2+V 66tRvMqNJFNe2zgJpxOPLCex4rB9ydbdMaZwF/u4c6irMu6TVAALJO+yT14Hbu6uew5U MmnFEvbmHoqTyaW69kW5qWsKLgSKnm+XWfeGf309RayaU/6RbMnkhGvmMvxKREpUIzWA K+NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696270169; x=1696874969; 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=NfCq6MAu8bRwi9TEgatpoY4BVdbPJq248wgHhwcLCxU=; b=FDn/RjrJ/17laXCLi/fvo1yWkzo/b4KEhlgPE9no3BY33msKLUfp2q93pO55QYGJDS /5ikL4Clbw30QdtDu7PL3D62AbnTOSP/YKh4vAP1DhBRQc6/8FCM/wnUw5rdIcxmL0dl AMvMmn3wklJKti+BHvrm/QyGgq5XolrCm/wqNq+QiFlCBYGZ9mrr1G+xy0YMb7jMB8Lj 172HET/hxMsSK3nXr1r+pNfsQaHPiyA20PzQzyh/PW/NiRB46OduHEtmwA9urhSLLzMW WBnZV+nZXXCrs1/laJAPdXOku41v/iEV4JBAcChbiwNqwMZXtJS9XoYVeyHZfc4SMNLU j9vw== X-Gm-Message-State: AOJu0YzKBBnasoN/S4ybGYeVZ5uBXLLgmD9vAkw6BKx9pKBMx6u+62cH sFl3QmXt2J3fxiEBzD+ozUhzgA== X-Received: by 2002:a05:620a:40c4:b0:774:1ac2:79be with SMTP id g4-20020a05620a40c400b007741ac279bemr16806248qko.53.1696270168810; Mon, 02 Oct 2023 11:09:28 -0700 (PDT) Received: from localhost.localdomain ([50.212.55.89]) by smtp.gmail.com with ESMTPSA id w15-20020ae9e50f000000b0077423f849c3sm7390255qkf.24.2023.10.02.11.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 11:09:28 -0700 (PDT) From: Ben Wolsieffer <ben.wolsieffer@hefring.com> To: linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org Cc: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Ben Wolsieffer <ben.wolsieffer@hefring.com> Subject: [PATCH 0/2] ARM: stm32: add clock for pwrcfg syscon Date: Mon, 2 Oct 2023 14:08:52 -0400 Message-ID: <20231002180854.1603452-1-ben.wolsieffer@hefring.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 02 Oct 2023 11:09:51 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778682629024492399 X-GMAIL-MSGID: 1778682629024492399 |
Series |
ARM: stm32: add clock for pwrcfg syscon
|
|
Message
Ben Wolsieffer
Oct. 2, 2023, 6:08 p.m. UTC
The STM32F4/7 pwrcfg syscon was missing its clock, making it impossible to use after clk_disable_unused(). Simply adding the clock creates a circular dependency, because the syscon is used by the clock driver. This series resolves this dependency and then adds the clock. I tested this on a STM32F746 and verified that syscon writes now succeed even after clk_disable_unused(). Ben Wolsieffer (2): clk: stm32: initialize syscon after clocks are registered ARM: dts: stm32: add pwrcfg clock for stm32f4/7 arch/arm/boot/dts/st/stm32f429.dtsi | 1 + arch/arm/boot/dts/st/stm32f746.dtsi | 1 + drivers/clk/clk-stm32f4.c | 12 ++++++------ 3 files changed, 8 insertions(+), 6 deletions(-)