Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3822636imw; Mon, 18 Jul 2022 15:20:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uaGvb6ygnozgtxXCQOMzGA9QT2RQ6jWrFuwTZt8yv0ERVwqIZCnGb+Y0Xr8BsHEliT4JYt X-Received: by 2002:a17:907:8a0e:b0:72b:9ca3:507 with SMTP id sc14-20020a1709078a0e00b0072b9ca30507mr28199244ejc.477.1658182847379; Mon, 18 Jul 2022 15:20:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658182847; cv=none; d=google.com; s=arc-20160816; b=zAM8t7LY72WY8kUUdPPoPdLc53SuCgfYt94KPsb/dRR8/NF0YYpW1i1QSXko6YjMZM IqVKMGp4ciwnx5V1o0jA6xiHRrIgyYuo30a6kmsQWlMgKTKPm6doaT/cQw+KLBhGIGK9 F3Lu7JnbJYpodoDEqRhuoRUV4jCVz6Q/Xm2+n+mJ3MRfpf3T69tK3SFEEegb0I6j4EJN 7Etw9Y2AOisFFE75kFpQGl2Gmexih6kN3AYo3gOnykv1K1DWZDOXQE9NVh5jesqcPK/L pxbkqdH4GGxgbOpulK2TBa564ax0BurQxKAZX4nvXjGx1B0VxDCX68/7z7AFX7U1Y6mG lGyw== 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=TeWM43TrOHCbZpfviMlYy2uZk5+CQHj1OtgZ0dTq7ms=; b=ZNem/TdshnXv2LmKBTSjHXzWR9InMVXG+wqCxMEOlUp3W1KM8bl33Ac8E8Dg0owogT hUlupqxuC7btn0O6V5EKpY0efpQWx3TTFML8/QYqL04a0Tq0/3gChEHnbX0crC7t3O8h EYkoJR8V93nNY5uBKh/hZPLoR3cuy+bPwvxT1kNeTpDa6w9NVJSEdYoEtcg7FJjFGIAE RomrVmWFC+LjHU7i4tEvwnIILSqiqu19nTmrYj+ox3Ezs7E8qif9Jk2xe19Doq5lV58u Qu1/4ITxwk/eyOMQfR5yxPAv8d/Ijktjt8DpI05PCTzEWKBblffTlOQ39mMMw6Uh//nq Lg+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Dse5PnL5; 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 u16-20020aa7d0d0000000b004358c3bfb61si13883364edo.141.2022.07.18.15.20.22; Mon, 18 Jul 2022 15:20:47 -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=Dse5PnL5; 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 S234636AbiGRWTG (ORCPT + 99 others); Mon, 18 Jul 2022 18:19:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232115AbiGRWTE (ORCPT ); Mon, 18 Jul 2022 18:19:04 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 461E05F50; Mon, 18 Jul 2022 15:19:04 -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 7A8A366019F3; Mon, 18 Jul 2022 23:19:01 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1658182742; bh=cpVbYxStkk0TBWfh3vWvgvkINPgtVFCpknaqG3L5bMU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Dse5PnL5X29rke4WJf6H2vO5GuMVfPClG3lZkbvKx+BXigza2knJVk+8uxcFG3+Nm DVDe2juLAnNjXr1s6JUVsg9z5EEdXAKQUtZ6trhIWlXE1fp1zrdcZsAP44BN7egHl3 F2NYsMgwxYObJ1/VHsHJ6j4do6ireEAM3+oppRVwslGpf3I028n+CgST8QYFsIgT0O 08p7peYZDEFsM7fpsj2oES2+1v/WtWDQIryOsgtzoCSOR+MMczJJuDSzYujjHZwz++ vDiQCbeRxkUe9pi1eIc06YdkLxAQBPzSiCcn8w/iJNk92uorvbIMKJbpbXf9HBObg0 5qUSCxAjMXxnQ== Date: Mon, 18 Jul 2022 18:18:57 -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 1/2] clk: core: Honor CLK_OPS_PARENT_ENABLE for clk gate ops Message-ID: <20220718221857.7vgmsgqxozytkofa@notapiano> References: <20220713082111.2233016-1-wenst@chromium.org> <20220713082111.2233016-2-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-2-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:10PM +0800, Chen-Yu Tsai wrote: > In the previous commits that added CLK_OPS_PARENT_ENABLE, support for > this flag was only added to rate change operations (rate setting and > reparent) and disabling unused subtree. It was not added to the > clock gate related operations. Any hardware driver that needs it for > these operations will either see bogus results, or worse, hang. > > This has been seen on MT8192 and MT8195, where the imp_ii2_* clk > drivers set this, but dumping debugfs clk_summary would cause it > to hang. > > Fixes: fc8726a2c021 ("clk: core: support clocks which requires parents enable (part 2)") > Fixes: a4b3518d146f ("clk: core: support clocks which requires parents enable (part 1)") > Signed-off-by: Chen-Yu Tsai Reviewed-by: N?colas F. R. A. Prado Tested-by: N?colas F. R. A. Prado Tested that MT8192 no longer hangs when dumping clk_summary. Thanks, N?colas