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 3C40CC433F5 for ; Tue, 11 Jan 2022 21:20:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5565382F91; Tue, 11 Jan 2022 22:19:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="Uywkp3WP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2DFD58313E; Tue, 11 Jan 2022 22:19:13 +0100 (CET) Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CE67E83102 for ; Tue, 11 Jan 2022 22:18:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jbx6244@gmail.com Received: by mail-ed1-x532.google.com with SMTP id q25so1566842edb.2 for ; Tue, 11 Jan 2022 13:18:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uAT5AjCiRNlgA9sGCSJ2EfNFVD8ROM5e7L8fyMH/aWM=; b=Uywkp3WP5PV1jHskTcDJKsuAUhiUOYVyaZ9PxuFdkgKJCEp16CqP+Vt/pqN+Y7q9Rv LoLYG3WzULm6MZjJOsvNYgzO2BxCROV1DYhN1HB9QVZBfBbYuVuZR4XnKMgDYgWysN98 Vr43Jgi80BwbwTDTR01hdzGHFZMWQ1UISIoa+smqrKFJfjbiI1e1T56vFaxiw0bC3aXS Ddo1nUdSV+vtIZrolLs4oo+j0NFia1XuE7Zsf+53F+xhRWyUOUuaG9b9sKBQcs+bBo9S 0W8I44MXCKewo21x2TZz0LYtxpfjHShkmUFPn6gnWtwlvVi1AqFbJYvws7I5ovuHA+bW 6Wcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uAT5AjCiRNlgA9sGCSJ2EfNFVD8ROM5e7L8fyMH/aWM=; b=OP+swPKkvK0shLBe5hQYJfmjw1yqOvFiBI1dwun50UHVVgOsHY5aC3QjhSs+VBmOFl QJ7+8/ByyAONTQUAMEgcAO0Bk1NnT0PJYT22VNw8GXtRHqPrzbNWGA2eOlPazKlLxoBe njXzpjJu5u9JCEUhR85P7sAEOkciidf+iGfrr71SWeVUu3bsUmU/dFZiiOa/J3+NrgW8 tzx79Rf9u4+G78n09RTdqFHO5uqezOaeX2L6L8p2ko8hEjRiCXORy8s0ENBULwu7TzDr pF74jEZZ8ddFnX7/WPdsotTN1UDNBGifsF0NURbNvs5WyVU7kxgayQrqj11rekoHgovX sGvg== X-Gm-Message-State: AOAM532KjvT3VFPNbNqaTAUFxTgoAWnleHUX4NKuMFqe51dtTDzVI+aH 6F+t7EtjLBfQwr5FhMBXqdc= X-Google-Smtp-Source: ABdhPJx4quvyIapRvopgQ0WJv6yS3027+pGE3TJEpq6lL9yzc8qLkCMbL2sD65CJEaDkfnYKCbLd4A== X-Received: by 2002:a17:907:334e:: with SMTP id yr14mr5040217ejb.222.1641935936454; Tue, 11 Jan 2022 13:18:56 -0800 (PST) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id nc29sm3948959ejc.3.2022.01.11.13.18.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 13:18:56 -0800 (PST) From: Johan Jonker To: kever.yang@rock-chips.com Cc: sjg@chromium.org, philipp.tomsich@vrull.eu, lukma@denx.de, seanga2@gmail.com, u-boot@lists.denx.de Subject: [PATCH v7 07/19] rockchip: rk3066: fix assigned-clocks rk3066_clk_set_rate Date: Tue, 11 Jan 2022 22:18:31 +0100 Message-Id: <20220111211843.10958-8-jbx6244@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220111211843.10958-1-jbx6244@gmail.com> References: <20220111211843.10958-1-jbx6244@gmail.com> 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.2 at phobos.denx.de X-Virus-Status: Clean The rk3066 cru node has a number of assigned-clocks properties that call the .set_rate() function. Add them to the list so that they return a 0 instead of -ENOENT. Signed-off-by: Johan Jonker --- drivers/clk/rockchip/clk_rk3066.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk3066.c b/drivers/clk/rockchip/clk_rk3066.c index 804aa43b..17777a45 100644 --- a/drivers/clk/rockchip/clk_rk3066.c +++ b/drivers/clk/rockchip/clk_rk3066.c @@ -573,6 +573,15 @@ static ulong rk3066_clk_set_rate(struct clk *clk, ulong rate) case SCLK_TSADC: new_rate = rk3066_clk_saradc_set_clk(cru, rate, clk->id); break; + case PLL_CPLL: + case PLL_GPLL: + case ACLK_CPU: + case HCLK_CPU: + case PCLK_CPU: + case ACLK_PERI: + case HCLK_PERI: + case PCLK_PERI: + return 0; default: return -ENOENT; } -- 2.20.1