Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp848122pxb; Fri, 22 Apr 2022 12:30:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzp7LHVElAvGzMCDo/KX9Bnl21H08G1m8FlOekZT0Am2dYBOF/l4v88cMuoM5IsIQ1/qAH9 X-Received: by 2002:a17:902:768a:b0:159:71e:971e with SMTP id m10-20020a170902768a00b00159071e971emr6091679pll.163.1650655831630; Fri, 22 Apr 2022 12:30:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650655831; cv=none; d=google.com; s=arc-20160816; b=iNZUVQUCUXdc7vSuRgGw6qFkxIzEncab+U1yHv5/IIWWux4e9ZC+kS0L6JR9WcoqAA 9R/4J1xHSl5Ych0IGjx8CmuF85+SB3sCtGfkS4AKKQZcnL3kbW/xUQPesRioH3r+vduy /LerVOJgHuWoW0Ji9yuijcw2mdiAX6l7ZTV5qHcx2vseZdQ3nfCxFQkBPqQyV1rcWxV3 irakGcStvXQ57NG2oIGRcM9AwSCpDCddBzuYwmBVRgXzLfeTBnA9AeWOxptrF6Ut6oDw TdutwyPo42B0Ni99g+hZUSM7iLhYz9E9BSOZkPUUA/Yg0aBgpLTSsi8oaTVL17gDONOY GtHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=uSHrkLY+dZ+wKF/t6k1olPqi38KWpu6Mopr6O6CB9PE=; b=BPx+1pZWZHl2g56d6Tlmjpt6aG2faOzV7D8jF7aL6M5zdX2IPB+GHRwr/mhtZuoL0m BxakS7SZ3SbCMUKSET7E1WW+T6Qffj6MBrhg1uN52eNqr2O7gSxKRDxibLSoZaio2/S7 yubfM9F4PIpY28S28vAVOgVNJSBomzjQ45QKGT0o1yoWVRzTZ991Vt4YyeYIDEE20PXG TfD0XGHESWkzNXA/a090LgNO6O7HoJoOlJOy1rVPWq+RBiXTmDjdRIUU5NTxk1oewemz pv6Fnp1qdKGotw6uDfb9Y4detbqMxhnRUwLRPmrstQGKNTCSK9/wsCt0cFbQw0PNDf3Z nApw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YSv6iuKj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 20-20020a631054000000b003a56645cf96si9041539pgq.335.2022.04.22.12.30.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 12:30:31 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YSv6iuKj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2CE5D1240FD; Fri, 22 Apr 2022 11:40:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443407AbiDVCg4 (ORCPT + 99 others); Thu, 21 Apr 2022 22:36:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386192AbiDVCgx (ORCPT ); Thu, 21 Apr 2022 22:36:53 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27CAF4B412; Thu, 21 Apr 2022 19:34:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D10B6B82A18; Fri, 22 Apr 2022 02:34:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87E8FC385A8; Fri, 22 Apr 2022 02:33:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650594839; bh=uSHrkLY+dZ+wKF/t6k1olPqi38KWpu6Mopr6O6CB9PE=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=YSv6iuKjih2OATi0FEAB6NTD3yg8Uiz50zars69ikIxL9k7591IqZeT0kqu8oF+20 WCczCSeDEZfVxUPVmjoqPOQ4l/CZ1mAQXk5OUsRwAXR3nCGmNxtjbWEanZdbhXCDwr eBf+gR4MADAa6NYKBiiPZtUTqiKWw8uEqdAR6oTFCCtqLcJbD0y26ZCt2kPiTiDWe1 akoK0pDf9OmXbSDnGd7DMyLHOgUu9SnNUncCjY8K2mWW7UuxsC3tqVm78S/2S9ihdm mdOkbwqtBNs04Oh1xEqmXEFRLBZS1+wIvHJ8XDHgZHMZioGE0k0tRF+blwIwTpO139 zFoZ+ahClPsBQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220411101441.17020-3-aidanmacdonald.0x0@gmail.com> References: <20220411101441.17020-1-aidanmacdonald.0x0@gmail.com> <20220411101441.17020-3-aidanmacdonald.0x0@gmail.com> Subject: Re: [RESEND PATCH 2/3] clk: ingenic: Mark critical clocks in Ingenic SoCs From: Stephen Boyd Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org To: Aidan MacDonald , mturquette@baylibre.com, paul@crapouillou.net, paulburton@kernel.org, tsbogend@alpha.franken.de Date: Thu, 21 Apr 2022 19:33:57 -0700 User-Agent: alot/0.10 Message-Id: <20220422023359.87E8FC385A8@smtp.kernel.org> X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_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: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Aidan MacDonald (2022-04-11 03:14:40) > Consider the CPU, L2 cache, and memory as critical to ensure they > are not disabled. >=20 > Signed-off-by: Aidan MacDonald > Reviewed-by: Paul Cercueil > --- General comment, please add a comment around CLK_IS_CRITICAL usage if it isn't very clear why such a clk shouldn't be turned off. Second, is there any point in describing these clks in the kernel and using memory to do that if they're just going to always be on? Wouldn't a dummy clk returned from clk_get() work just as well if anything is grabbing a reference with clk_get()?