Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4239885imw; Tue, 12 Jul 2022 04:41:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vDTrL9Wo0ut0yOWfwqT1vXznig5bGKosPl99GMKKeZWvy5230AFBympkjx+sD+4vfg4oqR X-Received: by 2002:a17:90b:3d82:b0:1f0:5894:7e39 with SMTP id pq2-20020a17090b3d8200b001f058947e39mr3804719pjb.187.1657626077213; Tue, 12 Jul 2022 04:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657626077; cv=none; d=google.com; s=arc-20160816; b=Iu/2o2T+xRn71zrJRwSsHiw9ibaeu3k5HB+b2gJpyRwO0GIS05DPNAuzqVszWmNNQ7 ki93RCoDOTdkYm/v+G1v7Irefjdu0MZ7SN6rpbXWTAHV1o6yUUpEpdScHsuonaADLDbm JVnsiiZg8FetMQ18hYW7EGfs7sJYiCvRb1zsnfaiytxIa/D+R7VaqGMUow2l5Z0e5z2j Ms04vLR3Xi/hyJ2DiodhKzJsWQ9K7NfTtBj9HOUVG3BrgzGH8kPvbfzz5X4en1ZV7LSP iiVug/a2Mo1PLTRL/UVRNzN91edtINcEWeWrACtr1cYvKJCdy0mDmYCJh4oKlNvb1CVi VCxw== 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=Oyv6ls5n5LtXZ+eFrLN0Kgir8c8eeeHctyKmi21xDfU=; b=VmiiqhXS85XUnVrJATT+yhKn+F1fDuJTaDmIG1Bh5kBgzOV3hgc7JAaa+ozQ6RL9Lo XWQrHoZK4HgtYpU3bHYeH/TFEaNceuvnNfWbB7zJoerJL2dsXG4yrh9o7+SNwGwLc3dd MJ/Y+zMh+62WOASOcWaKZUdeio4a3D3YV+H0EM5sXoo016jJO+IXMzIyTytgwKdVAmwa isxJji7uC/dM/SaQoruo2o69C47rfpRv2BMD3r6dJjhAlkyr7eQ1Qpiclgu/Ud1NKuoj AASEtZ5hSqRRN9J+9nKd/yg3M2PMFxNcBgPV8L1p9HKJVdMqVINT1t2BeRA85rLNAHOT 0mPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AyZLVnJO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p7-20020a170902e74700b0016c02d77816si16579633plf.442.2022.07.12.04.41.02; Tue, 12 Jul 2022 04:41:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AyZLVnJO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232466AbiGLLeK (ORCPT + 99 others); Tue, 12 Jul 2022 07:34:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232318AbiGLLeI (ORCPT ); Tue, 12 Jul 2022 07:34:08 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8B3EAB6AC for ; Tue, 12 Jul 2022 04:34:07 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id l124so7232439pfl.8 for ; Tue, 12 Jul 2022 04:34:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Oyv6ls5n5LtXZ+eFrLN0Kgir8c8eeeHctyKmi21xDfU=; b=AyZLVnJOfk8Tv6TtGpOoeRkeSR/b2bV4cgBFR+EBkHCgQMDbETZffoXTdHDIUPNu9w MPceWlvtTUpd2Il2fH9qVvKyKGmHid9Ubmmx11ImERS2dK8RJMsD/jHRXt9qjLKyqbqB Ye28s/LK71UsY72Kl4jB7XGuGUGKLQHFCfvN4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Oyv6ls5n5LtXZ+eFrLN0Kgir8c8eeeHctyKmi21xDfU=; b=cY5KAzyHMEtYArWD/6HV+M+vpHywiqQwHtSwHq5FoPpa7Hdj1wmT3PcTPSwJrkkPjL 226Yg8Qyh3W5O+3I2tl9TtNNS4jAfAHUb/Ka7gelRBXJdcee1hgPGIxVqMr10akMuAz8 FFZ+6sC9yy4gIHoj0VjZIYodL/7LGG4/nHq+CWLGlRrPSwr+aIjjWmmU6u3lvaGKy5cm npn3Ji6A7bOwYdQ9E8sI1d8w/MzigfoBpQwpIFPi1Zsn8K6/+PA52eBN4GSvIfqWjn9p aUUxtJokd2WfwaE6x7mTnU4TQ+WbfYZ8eOQBG/y3ELkNzvz3sMAINkt1Hpwl+/YuRXxp RQ7w== X-Gm-Message-State: AJIora/39Oj29oojdouCTaNfDqb7BzbcGxGStJIVRIJ41/fUcDyaphkS epbmGjIaCNb44Hsz72ry3Ofs+s0ap8PJxg== X-Received: by 2002:a63:5b16:0:b0:416:1b3b:9562 with SMTP id p22-20020a635b16000000b004161b3b9562mr5669714pgb.146.1657625647430; Tue, 12 Jul 2022 04:34:07 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:d1a9:ca7d:e86f:cf6f]) by smtp.gmail.com with ESMTPSA id 80-20020a621653000000b0052890d61628sm6537967pfw.60.2022.07.12.04.34.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 04:34:06 -0700 (PDT) From: Chen-Yu Tsai To: Michael Turquette , Stephen Boyd Cc: Chen-Yu Tsai , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, AngeloGioacchino Del Regno , =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= Subject: [PATCH 0/2] clk: Fix CLK_OPS_PARENT_ENABLE and runtime PM Date: Tue, 12 Jul 2022 19:34:00 +0800 Message-Id: <20220712113402.871838-1-wenst@chromium.org> X-Mailer: git-send-email 2.37.0.144.g8ac04bfd2-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mike, Stephen, Here are a couple fixes for the clk core. They are unrelated but overlap in diff context, so I'm sending them together. Patch 1 makes the clk core honor CLK_OPS_PARENT_ENABLE for clk gate ops. Without this, dumping clk_summary on the MT8192 would cause the system to hang. Patch 2 reorders the runtime PM call in clk_core_unprepare() to match the order described in its original commit, and the opposite of that in clk_core_prepare(). Regards ChenYu Chen-Yu Tsai (2): clk: core: Honor CLK_OPS_PARENT_ENABLE for clk gate ops clk: core: Fix runtime PM sequence in clk_core_unprepare() drivers/clk/clk.c | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) -- 2.37.0.144.g8ac04bfd2-goog