Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3848554imw; Mon, 18 Jul 2022 15:57:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sIq2SDW5lDrog9SBRg8Yg5PXmcJStYiYnI1YeyidCulfPBB1lPX59tf4wix18JwCcJ7VR7 X-Received: by 2002:a63:500d:0:b0:415:e89e:42b7 with SMTP id e13-20020a63500d000000b00415e89e42b7mr26310965pgb.140.1658185021715; Mon, 18 Jul 2022 15:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658185021; cv=none; d=google.com; s=arc-20160816; b=ywVLM8pGe/NxlMaUbFsXV8A6tZKNUR5jG6+6orGruDxBWG0g1cyU7K7HtpiJ+e7mO5 E4sUbPpGjSNtEfY4rvpfuwVUXxZQCSz3xFwHqYVBXZQDXWeQPspPgPRdVng9cdAHoij0 uuCOwWvALmEd4/hBY/Smp0LXGixXXaCLs9rndACbzsofp2/0JsXlGPweoM/4tohWJQgk 5Gt/4hY55c6Fhzn8UmeQO4UMqhb+iNhzLJVFCZEChpIT6peS7atzR+F6mflLWmY8vz0X SQrvekTTdQlG7GQV7Wvi0V223GxjjaHdqQevHi09w/nR9Ch7PbBTkB4s4GJgksQY5Jiz KsFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bEUCUdhOGWNpnU9nU7qnl3j9qfQXw3VQKw1hH9HPe+w=; b=zMVDotYwGZqHEMSAV+0307IKoSZ/O0cxPWJ1dZCw+Tah5H8+boRUZ4du/V6blx+B2Y +AvuugkOtHrU8zX8DDXCSQN8MRhX6ZkharEIqzCC898uhh7Ylqgg/j0inwT6NJEeD3Or Apf079C1Np658OETn3uzXrVlByb3nFJaGmKd1mga6Qsql98Bf66U6Edxx9q52topctWq 8YJ+7A2jgL/mEZL0yjPkDUGwq1v4kQDwVTwhc3FpKXZeoYC61c+WTL6PDa54owAJ0gLL oUYYj8xSPHmYf0HlZuZLq/lqPmfwa+wBiDC8hZ3v7RurGCD/ZLieyeKBdqS372qg7Z+m Qmkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=GYq3dgaY; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 184-20020a6302c1000000b0041a29a161cbsi6095551pgc.68.2022.07.18.15.56.46; Mon, 18 Jul 2022 15:57:01 -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=@collabora.com header.s=mail header.b=GYq3dgaY; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234837AbiGRWWl (ORCPT + 99 others); Mon, 18 Jul 2022 18:22:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229647AbiGRWWj (ORCPT ); Mon, 18 Jul 2022 18:22:39 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9A723135A; Mon, 18 Jul 2022 15:22:38 -0700 (PDT) Received: from notapiano (pool-98-113-53-228.nycmny.fios.verizon.net [98.113.53.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 244E466019F3; Mon, 18 Jul 2022 23:22:36 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1658182956; bh=ZtaFeUkq1jYD1KkAdKtkGmQDm6nyXB5ITHnEHsXVkLo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GYq3dgaY7yFDp96HSAeWfP4klcykjmMYkTNIPSDlNOBHlZCWdd3037EgUEEvpnGFa DVHFzWIKAq37znRj4IeTEr9Fsybh8GcRJdKkQLFYuLCYOCYAs/pvlPZ/XOLdnSbpwA y5ojemF2ezxyJ3Xe52EQ4cKEDV1si/tSk926WCsc8haNDGiejZA+9Cp18L2MUSaGdS tKOUoDAGWQm7yFC8wG2kuqLluW1u8WDqW+ggclzxG0x6cfBCsMmlw/vz+SMUbDlXIF DnN09LuR4KSWJAtuwGiVQRkKS7GeDXf5fimTKtZBy9HwbzCl/QDCz1+uSOq2t4+j7E VmedVrZGXJRhQ== Date: Mon, 18 Jul 2022 18:22:32 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Chen-Yu Tsai Cc: Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, AngeloGioacchino Del Regno Subject: Re: [PATCH v2 2/2] clk: core: Fix runtime PM sequence in clk_core_unprepare() Message-ID: <20220718222232.lffgerc6qfi6jnha@notapiano> References: <20220713082111.2233016-1-wenst@chromium.org> <20220713082111.2233016-3-wenst@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220713082111.2233016-3-wenst@chromium.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Wed, Jul 13, 2022 at 04:21:11PM +0800, Chen-Yu Tsai wrote: > In the original commit 9a34b45397e5 ("clk: Add support for runtime PM"), > the commit message mentioned that pm_runtime_put_sync() would be done > at the end of clk_core_unprepare(). This mirrors the operations in > clk_core_prepare() in the opposite order. > > However, the actual code that was added wasn't in the order the commit > message described. Move clk_pm_runtime_put() to the end of > clk_core_unprepare() so that it is in the correct order. > > Fixes: 9a34b45397e5 ("clk: Add support for runtime PM") > Signed-off-by: Chen-Yu Tsai Reviewed-by: N?colas F. R. A. Prado Thanks, N?colas