From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F26DAC433EF for ; Wed, 13 Oct 2021 00:40:41 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 37C7260E78 for ; Wed, 13 Oct 2021 00:40:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 37C7260E78 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8F1E383513; Wed, 13 Oct 2021 02:40:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=sholland.org header.i=@sholland.org header.b="dXwL9FyE"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="G7C8OpNb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5AF098355B; Wed, 13 Oct 2021 02:40:35 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9477B8350D for ; Wed, 13 Oct 2021 02:40:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel@sholland.org Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id C98D65C018D; Tue, 12 Oct 2021 20:40:30 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 12 Oct 2021 20:40:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm3; bh=g9GbnCWrbLpvO176DuCb4YGjMn 3KlOG42DaeMpHfPKE=; b=dXwL9FyES62zwgU47sO05P/ExTpTejb29Y9FRWlNoX vAjXMUp1PqAtyJXfeYyWPFbmf4fdpYdTia4PQBni+uFvL9vn6drScXE3WG9EfF73 +rZ9nnIwBEKuQDs5JEUzadjcrM98RKpHvBIyQ1e31rP98jMsu7hkLOoor5FeBjev K9/bILUAn+THEz4jegFEuFHPPsTshUbS1n4EJQRDZMaoNljFA5mMxGm1CAsd9xH5 YwVX9KgBSNaf+ukXlQ8FZKwXnsGJ4a03rvQTqXMfnnbmriOmnuPldYwlBCub4C8X vsGgTbg3XnvGBK1P/POkTlHih7FIMw4jDPz3A4IIpBbw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=g9GbnCWrbLpvO176D uCb4YGjMn3KlOG42DaeMpHfPKE=; b=G7C8OpNbT/+HJrc1G4MflYlM65/0S5wpy +skVRCb6QJMp8msh9CstOsx7EtBz11cJLOePbQzIcPnxjXZ5LEZQo+JUiwezaGk9 6wYtMiifANLPandGocbcJrNPV8ITU1A9yXoV0WbMdH/GXh5/nLcvN/13oU3OoD7D +r5sEOepAGfmejxBgY05TPxqD/ey8SzoctrvjkmAKh7BCn3ZU5Hp21gpmtJdMYqy eColCUqI2F9Q8ghZRv1A/aR3i3UjI1YA1rWQjgZcA7Y/dcgUyALA4mSMOFmTDK6B n2DWQRWdJxn582bsjzsJY95fVDJfbd2Gef7Ckt6bOJlhKeLQw2ugQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddtledgfeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpeeiteekhfehuddugfeltddufeejjeefgeevheekueffhffhjeekheeiffdt vedtveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 12 Oct 2021 20:40:30 -0400 (EDT) From: Samuel Holland To: Lukasz Majewski Cc: Samuel Holland , u-boot@lists.denx.de Subject: [PATCH] clk: fixed_rate: add dummy disable() function Date: Tue, 12 Oct 2021 19:40:29 -0500 Message-Id: <20211013004030.44905-1-samuel@sholland.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean commit 6bf6d81c1112 ("clk: fixed_rate: add dummy enable() function") implemented .enable, so fixed rate clocks can be used where drivers might call clk_enable(). Implement the .disable op for the same reason; some drivers, e.g. USB PHYs, may attempt to disable clocks at runtime. Signed-off-by: Samuel Holland --- drivers/clk/clk_fixed_rate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c index e0dc4ab85f..c5a2a42c92 100644 --- a/drivers/clk/clk_fixed_rate.c +++ b/drivers/clk/clk_fixed_rate.c @@ -26,6 +26,7 @@ static int dummy_enable(struct clk *clk) const struct clk_ops clk_fixed_rate_ops = { .get_rate = clk_fixed_rate_get_rate, .enable = dummy_enable, + .disable = dummy_enable, }; void clk_fixed_rate_ofdata_to_plat_(struct udevice *dev, -- 2.32.0