Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp367835ybh; Mon, 20 Jul 2020 19:31:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEw9fUBUUH9yXVppxpmQBx3smq7Dl5qaP4TF7EwQQ18mxOHU0bvBu2vWh4+iuv7Kbsg7jS X-Received: by 2002:a17:906:1a16:: with SMTP id i22mr24089200ejf.439.1595298710831; Mon, 20 Jul 2020 19:31:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595298710; cv=none; d=google.com; s=arc-20160816; b=X4CBboXx9OxwTDgNNi3923s12zZcoJI7kD3p3SHF8VaGvQm8xWBcR1iywPz2y6JDiK /vdF0/tcug5Cckz2AvYvzI55KWUYu94cTlV7XCs0GE6S+WKAUCwmC+y/jG9BxTIS1Um0 KlDigYpY8r5wdFdJ9Pc2gG5KQcJV0Q9FzHYN/RDbnZ7p4HyiECvyhjp6ynNIiZCGOQ3v QTwxgyCEhMEX+FDDPwbyfYwyDHqS8mG0DpktT5otbDWaVxep5Vp0ShDlANu7vVD2VHHs INcW0XVkjb6Bvee4M68h6UR3IiSOdhKBgPXlToqsphHKEMdGSdL565dxCStRMGSlZIRX fHaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=+lKiFZuHiJNHzScEMbgiCkTJR8FyOIj8yhZnIH0+q4Y=; b=VM+wKiDenUdTYXI4RqLXEWtVZVly/cP9U1uH4TmMbZi7dAaDBAF8pEWZ19cDrDZDqX tFiulDAWEp5OLWsNS6QmN1uR6fzz64a/LusbLyZ0NILNSGZRMKsJ3vkaRAgLiFpKOM6A O1nCftKoOlGnmIyOLqSIgEV/sCj1ezNHAgH6/tPQDQFe8SOUw3ogIgnmHNRHV5rQ/Tvs mFw78DHFqKut+slICJm6auwVe8MC8/kyU3j+nsPiX1YkhvcanfsAZCyZ4iNrFr3p4w/A c7Au93GF/BRG4EHCe4qHrhZu+RVyt6TYZvs87p2IWAcGK11xxZFus24W4mLqNwPrFj8A v0/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=DnsYMlU9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z5si11585248eju.750.2020.07.20.19.31.27; Mon, 20 Jul 2020 19:31:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=DnsYMlU9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727881AbgGUCa7 (ORCPT + 99 others); Mon, 20 Jul 2020 22:30:59 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:53601 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbgGUCa6 (ORCPT ); Mon, 20 Jul 2020 22:30:58 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1595298658; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=+lKiFZuHiJNHzScEMbgiCkTJR8FyOIj8yhZnIH0+q4Y=; b=DnsYMlU9UaYvkhKWOMsZF43BkETbUOuO/DxMYiwjzJESTSz1CX3Y66EMkQ6TFXtfOjp+XkCv Npwwro1j2rKmg+jBO3hHTXqyid5HoAtsWP0S6ooLrnH8pKKjv1RX+5IjGLpyfWySVrv1tP3x 4Je0G97yZzaazaUQsfphJzMrb1Q= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-west-2.postgun.com with SMTP id 5f16533e3dbcb593a9f2c92a (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 21 Jul 2020 02:30:22 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 008A9C43391; Tue, 21 Jul 2020 02:30:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,NICE_REPLY_A, SPF_NONE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [192.168.1.117] (ip70-179-20-127.sd.sd.cox.net [70.179.20.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mdtipton) by smtp.codeaurora.org (Postfix) with ESMTPSA id DB325C433C6; Tue, 21 Jul 2020 02:30:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DB325C433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=mdtipton@codeaurora.org Subject: Re: [PATCH] clk: Add support for enabling/disabling clocks from debugfs To: sboyd@kernel.org, mturquette@baylibre.com Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, tdas@codeaurora.org References: <20200630003024.6282-1-mdtipton@codeaurora.org> From: Mike Tipton Message-ID: Date: Mon, 20 Jul 2020 19:30:19 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200630003024.6282-1-mdtipton@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/29/2020 5:30 PM, Mike Tipton wrote: > For test and debug purposes, it's often necessary to enable or disable > clocks from shell. Add a new debugfs file (clk_prepare_enable) that > calls clk_prepare_enable() when writing "1" and clk_disable_unprepare() > when writing "0". > > This can have security implications, so only support it when the code > has been modified to #define CLOCK_ALLOW_WRITE_DEBUGS. > > Signed-off-by: Mike Tipton > --- > drivers/clk/clk.c | 38 ++++++++++++++++++++++++++++++++++---- > 1 file changed, 34 insertions(+), 4 deletions(-) > Friendly reminder. Thanks, Mike