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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 4FA0EC05027 for ; Mon, 20 Feb 2023 06:00:39 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 72DC585851; Mon, 20 Feb 2023 07:00:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (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=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=sholland.org header.i=@sholland.org header.b="SCfj9uGM"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="ASKN0UP8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6ECEF85870; Mon, 20 Feb 2023 06:59:55 +0100 (CET) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.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 6CB9F84517 for ; Mon, 20 Feb 2023 06:59:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel@sholland.org Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 3C6403200C9D; Mon, 20 Feb 2023 00:59:42 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 20 Feb 2023 00:59:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1676872781; x=1676959181; bh=hwe0ZY67mhvBuslkSVthLgwpS TT/WOnAgWjGJ9OmRpA=; b=SCfj9uGMRcBHBlhO9CUcklghpJRMA+/RKlgwbfyZN 7VKimDZn4axjf63ndh04jYWHkVhj0zxwrpLkm1soffjrm+JJOv4SKuX/dSwTP2vi sOXUMjFuLNRuIZtfTe/Z973eSilgujD9bms+BONVm834QmThRHg0UY1dbc4eqXlf BFly4livfN2qGbXYi4XOdpx5VZWkp3AWK6rrVnIyycd3Qx1aMIk1CNZO4AbGxXJZ 2Z7AwA7WAM3twmWUh60Ce/XlvS/shYeZzcJZMkue9mbwQjfLVbdDxXCrNMgTfL// 5HLTV2zOweJjYXvFtIrHLA90ysLixHrYuXVTwTUHPVfyQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1676872781; x=1676959181; bh=hwe0ZY67mhvBuslkSVthLgwpSTT/WOnAgWj GJ9OmRpA=; b=ASKN0UP8YKEqh/vFQElTMRWI4dHQEgAtFgl7C/ecz+DAi6F6Y/1 DKBpQdjlPcBUBidG2il5oQTiOZbsGJU+1Oz1m1LR8OzeWmbgByiJiVJE+0OIcCnD OuOHdSc71f+FCVsCmsLOnIb0UQcbfk++jiOQyzykm3NDUY4rYxO6vWDqATOw7zSi xAUJ9pNyG3hS6Mj4uTP2j2ynF/wIlCIvk/AAsrO2+gQl27heXJoozgFoUVxlTfjr 1clf8HWipPssDHuwhWfDRcs3WPUZH7U6j7+zSVszdYb1s1yv5R94uaixl0cmekpq 061csh36cEqcfp/PN4BJSdNXzgwMK5bi0zg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudejgedgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepkeevlefhjeeuleeltedvjedvfeefteegleehueejffehgffffeekhefh hfekkeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Feb 2023 00:59:40 -0500 (EST) From: Samuel Holland To: Lukasz Majewski , Sean Anderson , Simon Glass Cc: Samuel Holland , Dario Binacchi , Jean-Jacques Hiblot , Michal Suchanek , Neil Armstrong , Peng Fan , u-boot@lists.denx.de Subject: [PATCH 0/6] clk: uclass fixes and improvements Date: Sun, 19 Feb 2023 23:59:33 -0600 Message-Id: <20230220055940.41890-1-samuel@sholland.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean This series fixes a few issues found while writing a clk driver for a new SoC (Bouffalo Lab BL808), and adds the new functionality needed to implement a hierarchy of clocks in a single device (without the CCF). The .get_parent hook will be useful on other platforms as well; I plan to use it to implement PLL rate setting on sunxi. Samuel Holland (6): clk: Handle error pointers in clk_valid() clk: Fix error handling in clk_get_rate() clk: Fix error handling in clk_get_parent() clk: Fix rate caching in clk_get_parent_rate() clk: Remove an unneeded check from clk_get_parent_rate() clk: Add a .get_parent operation drivers/clk/clk-uclass.c | 35 ++++++++++++++++------------------- include/clk-uclass.h | 2 ++ include/clk.h | 2 +- 3 files changed, 19 insertions(+), 20 deletions(-) -- 2.39.2