Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1913784lqe; Tue, 9 Apr 2024 04:35:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXciM4D32NkRTbhvstFh7zcZuN6eb/au9vOgndfI7BEmVBYr/mWVfGLmVdXH5MrHt4Z6ekURyATrbGggW1mtLtJCGUoSysXxxHjdFiQ0Q== X-Google-Smtp-Source: AGHT+IF1K8d0wr5HTPsYpt5T4fRZ6DorpfFu3B9LAUiO6+DeaCQJAL/yGj2PBGF+bvx92FesK/xB X-Received: by 2002:ad4:5f8b:0:b0:699:28f1:49a1 with SMTP id jp11-20020ad45f8b000000b0069928f149a1mr3017355qvb.21.1712662512083; Tue, 09 Apr 2024 04:35:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712662512; cv=pass; d=google.com; s=arc-20160816; b=PynQbWbS5F8dt8vJdFg4y5+Gqulm+ciWiD8guIfrqF7EyOeal30s34r0EbOKWSrbMu JVzu4VYKc7vTxaMgaY6/U//pg7cKUOzikqGMrm5P2jLfNaPq54J1NBlVanIZTR/rjI79 9GY2FcjAO1ZdN3B1DEPUDZ7zn6dNLfjZqIBNpwDyRTvO599Xm6ZzvqV31ZMqV9XQKHhh ckBAk/+xRvqfTSYYOtEi/uZuzIpLBjjt5DK6czwdDXeD3Daf9WlVayjKas176oFK5u4P yJ5FtWloY68ZsiU9lWbkRy0XFUVP7sCLk62sj21Fh219w+C4f5jboBmWeYD2Cs8Mtp4A +pgQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=l0bizUbI1uFq+/2K0w1QbeBH9cHRDMhCMHsAdShn0ps=; fh=+UNPBD2Mrg55o9OKe3+wN8gAUFcT3QwAWw2LGBAfzN8=; b=Vd/HhVZQJw/q0xq0aGOq2UH4UMHqP2hir6qD5gTYq5oCtVyUq46Tbvuxx+gv54pqll anqIeb7FTZbgTtxPc0RnMAhmR/AeWUMOyU3c/GnR27RoNMHA4bv4GyynJGWK6gxxAZxd +8NxC+w0N1gaSQcUW65+0KnaGDr3eQrCrfULr2Hg47Z1SjF5bCQRO74dZmHattACMrrs RCfxbtvEXrm13KNiVtF8UafEz44k/VBpYZ9RP8oPgPG6Kv76LG8jNV8b2/t3Vj8iwfLs /bEtwuT8Fm4j/qsoJbFv6epqSi2GO0eo95+vaF3JZAP1lrc7+BLuH/sPmXKDsk/lQ/Hh KaNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q2IgQfOn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-136769-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136769-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t13-20020a056214154d00b00691711d64aasi10060098qvw.529.2024.04.09.04.35.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 04:35:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136769-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q2IgQfOn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-136769-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136769-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CB59F1C244E1 for ; Tue, 9 Apr 2024 11:35:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E92A012D219; Tue, 9 Apr 2024 11:31:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Q2IgQfOn" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 19E49126F19; Tue, 9 Apr 2024 11:31:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712662312; cv=none; b=s+v6Mc2VU571yi9+T0Wd9Knirc06pcBueO9T1gCH4pggeaLj7+FRGcDNv3Xql3SJWDyjxOyfjou7ZsOB/lfj7RP+zKOFxzfk+q2ocqM/yKDovxnixC9lTVqIdVZaAqFMoZx5UZ7QfOkS0GRmQg2hLdu6pNndNrFM86guqgmjGkc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712662312; c=relaxed/simple; bh=l0bizUbI1uFq+/2K0w1QbeBH9cHRDMhCMHsAdShn0ps=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=NbZjkFHzLkSf4WSSUysHzuyN/tcptjkTqog4ZSAF4k9O/B4MkSu1TnfdWKoA48bwbIeXggIg1SPZZFWsmVbQqXcfMNbMCdd4eYEjOyfHxVJZzJfpaJQU6fa21PjJLMsXxYm0Vul7mKvB4QCD+vXn0euRXUK9iykILamyyrj3A6E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Q2IgQfOn; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F946C433F1; Tue, 9 Apr 2024 11:31:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712662311; bh=l0bizUbI1uFq+/2K0w1QbeBH9cHRDMhCMHsAdShn0ps=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Q2IgQfOn5TyDR2PC/KrBOG+X9FUXgM9mt/2eSxCk6bIYm9CSpYVkQ5MvocSZlN5Mb 2pONDTBP9TbwZtLuaqr5QHDb9muTnWnexkjxe+SPFuzUtu419MTq3qqdWu9Jh42s4A GM5J25nF51rk4d069hNAhCAk+X1fYuOixNGyyzrVG+weJAjQ0eBStsAs7omvnrKrsD xeCCZXfIXiOafh2Tv4IRjPya0RA7X1isLaVz5c1WsjlFpiRecPD1a7vipdAisl2zEH 6Rz2ltaxNXQyVfOpE7BLvKocnURptf9XQFNRUmwRqX5xFMge0D/SAJ+iTkXhxE0/Cz psdw4n4ldhiTA== Message-ID: <8415e2f4065ede19c6999708d64e8619.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20240120100711.2832897-1-cristian.marussi@arm.com> References: <20240120100711.2832897-1-cristian.marussi@arm.com> Subject: Re: [PATCH] clk: Check ops are available in clk_gate_restore_context From: Stephen Boyd Cc: sudeep.holla@arm.com, peng.fan@oss.nxp.com, Cristian Marussi , Michael Turquette , linux-clk@vger.kernel.org To: Cristian Marussi , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Tue, 09 Apr 2024 04:31:49 -0700 User-Agent: alot/0.10 Quoting Cristian Marussi (2024-01-20 02:07:11) > Add a check in clk_gate_restore_context() to assure that the clock enable > and disable ops are available before calling them. >=20 > CC: Michael Turquette > CC: Stephen Boyd > CC: linux-clk@vger.kernel.org > Fixes: 9be766274db4 ("clk: Clean up suspend/resume coding style") > Signed-off-by: Cristian Marussi > --- > Spotted this by code inspection. > I may be missing something, though, given my limited familiarity with CLK. It assumes this is for a gate clk, which has enable/disable clk ops. Also, only TI uses this code and I suggest you don't use it.