From patchwork Thu Apr 2 11:41:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1061 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id DDAF73F0D3 for ; Thu, 2 Apr 2020 13:41:44 +0200 (CEST) Received: by mail-pg1-f198.google.com with SMTP id v29sf2763941pgo.12 for ; Thu, 02 Apr 2020 04:41:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1585827703; cv=pass; d=google.com; s=arc-20160816; b=pBkK+PX7D9TrHPF44ROWupvbs1+s48urc+76nBjv+MOeN8kS0EdrCEmIdUMXc5+FUB 0TSzgICSQzrIJSJixx0q0pVWaaXnRiASLCSz8zvOOsI6PGO08ZuiktUyDXashQdHyai4 owVcNwKNGZxAbZv9NL7E11wpikZ1NclZtB65HocowcfcT8OFBvBhabIeIJjtARkmw7O1 ORQLBcnORwgAVcqzJiyjgZ6hQXzFzQVd3C37ValEwRv/HGqUrZYe4k+hJenxiN8PBpCn w7svIveEY7gufUg5Zy+7Gpmp48p4xWpYJ70aYxWsxPQFA+ZjhZsVheeLMjB03ZeORJ0D c/NA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:dkim-signature; bh=4hZrnkf5OIjsdavTUIztLJL031UIz+QWLsaauWIesYo=; b=01jp5eUh81TPwiJqVBVSzeHldhGvwMh/0TB59K1d83M7qaqMujGOOw1mrKOjC9HuAb uYj4GRFKLAMvETlQIJxmxe7sLVPqbekZBRKg7LlnajUvPVH/mvYKSWrBU0TOQ8cfvTaJ u26gsIlgH6thUShPZCMMZPqr+BhExH9pCyN4hWo4Zjt0kf3JBpjsazF+b+YyUhgxHjt3 tIiLSu6+EJdnG5RhaXSgs92Phk3jcbF5NULekJGGcjPlMIfmRMKnp6KnTkMFkf050kt5 p4+Du4xeq+eMlAU+BYEkhpiteXKV9Gp8V72wbbOLfMCB0TxWnarmO2GzhwwkrPTfp8SR 8lcA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dG4jD98j; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=4hZrnkf5OIjsdavTUIztLJL031UIz+QWLsaauWIesYo=; b=S19nBNqZNfN9PiE4xGPGbgUrHtPyTJ0VybFJSZwKMggfH/1OyrqJIe6D4Bp2N0DiUY 3yQocfZ69RBXXIIxzGKJCAdhdw4ljHNa20m1BKBOsNJsB7OmW7PYg3A9UnsizjrToeqt 0Rwls3nNmWC+Ys6RuaMhc908XiSyk1mNhyKZo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=4hZrnkf5OIjsdavTUIztLJL031UIz+QWLsaauWIesYo=; b=RrISvDR0ts1bwKn2uaVaKs7/i2HAymo55X4WD1yWjrP26v9H0GkmralOy3MwQUBkMg LC6AsQF6e3gpYSFCjk+DBbMvengdliw1gbWbvZpgFsYP3km4QPnhxKvvLwI7cHVWRLfe Qt3SHHjSoAxtZXWC0JNZmtmOYGMra0L7ik8Tccu/2J7VSYmzExmsjhqryeNUMHOCknLD gsiPg96kXaTih2ino8VgstxT/Uzp6+9yHNRwMgsEdmNTIjDkGnQy6/9usiXKJl//ijfI rvg2vYeH6CBbXofL/5TVD8SGJB2T4jAj7zwXov+0JjH+/vI/y0beZ3Kbh3KZTpAWR5Vz nJvA== X-Gm-Message-State: AGi0PuYfxt22edbkvLAUdcKZnKz9TuwI/pBRGaOmVU0rBxICcQ8xpWxp OvNHu11D7dAcdPVoQpeMZZPF5Sr4 X-Google-Smtp-Source: APiQypLMGjnyVw6+pNYT5N97wfaN+M6AvgmwtDS+FAJbrSEjWrahGm8jkqoFdd00dHt2u92owEL24g== X-Received: by 2002:a17:902:74c4:: with SMTP id f4mr2615896plt.39.1585827703073; Thu, 02 Apr 2020 04:41:43 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90b:245:: with SMTP id fz5ls2940997pjb.3.canary-gmail; Thu, 02 Apr 2020 04:41:42 -0700 (PDT) X-Received: by 2002:a17:902:169:: with SMTP id 96mr2533657plb.140.1585827702514; Thu, 02 Apr 2020 04:41:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585827702; cv=none; d=google.com; s=arc-20160816; b=EKD4MYwLuFXJQ/FdBQF4u+/zi49r/D8DSpF49RzafhIRoHRPqW5+Jl+TJhT8OAqpuH 3ZwqP0iA+tEhYz2oIn1JDBXIkJbpSlpYVp+Q7dJzkMF0C1KEHjS/P+yoGsdS0lE7RUSs CxsYm0F9I7vZ6F3vOc6hczsJcETyflBG1Vwr9DBaWZT/lh55R/YfDUFd+yO3U8FBzNCC hNhnCsyj/L7YRis4yta9Sm4AqfrLe4AmxdffMZuyHIgOEveTLp9wWosCrf33/61v6/fG qr2X7VpucW8XtSAyPmNdo1M5stHGSdDKj+HlE7iRfVOcizjfJ2HcGQ1HLFQBnE/A4mdd BdLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gBSDPXyREXbKviEvPOPG9KCDKDt6DwOObFfEzEgv6fg=; b=btBiETEpUlhiOdR4OZ/JUTlc1ImQG1Ki3HPpynsYgzmFWEZdbCOZDQhIdViC26j4cx DW1MTNULnTzWQUWJ/0GeA0NUvWrXng6HSCmEXzKxlBqbNXTC54EKiljfJQhtyzzPVJqa o46XQDwXTXqXLmZj6hptpq6lX08TohvI6ZoQ5N8mpFjGby5hT3NIA4V9lEUHLmBlkwI0 UmFbOwcfnPrrJiuZ2WEarGJjRyTB25t4JsX14jliILPjWFAGp5JyYnLJwPXN5uUMcLTH qdq159IEAG6ihg2g+iGcFIxMav9RASGcBcqWZaz9h4N/m+4+vftqNrE6ENKIpE1J00Cz lf+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dG4jD98j; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id j4sor6602517pld.51.2020.04.02.04.41.41 for (Google Transport Security); Thu, 02 Apr 2020 04:41:41 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:8ec1:: with SMTP id x1mr2578196plo.325.1585827701334; Thu, 02 Apr 2020 04:41:41 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:3532:519d:ba6d:25e1]) by smtp.gmail.com with ESMTPSA id i4sm3618107pjg.4.2020.04.02.04.41.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Apr 2020 04:41:40 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich , Anatolij Gustschin Cc: Mark Kettenis , sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 1/5] clk: rk3399: Set empty for vopl assigned-clocks Date: Thu, 2 Apr 2020 17:11:21 +0530 Message-Id: <20200402114125.2501-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200402114125.2501-1-jagan@amarulasolutions.com> References: <20200402114125.2501-1-jagan@amarulasolutions.com> X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dG4jD98j; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , During vidconsole probe, the device probe will try to check whether the assigned clocks on that video console node is initialized or not? and return an error if not. But, unlike Linux U-Boot won't require to handle these vopl assigned-clocks since core clocks are enough to handle the video out to process. So, mark them as empty in set_rate to satisfy clk_set_defaults so-that probe happened properly. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v3: - new patch drivers/clk/rockchip/clk_rk3399.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c index 865b80cc0f..1f62376595 100644 --- a/drivers/clk/rockchip/clk_rk3399.c +++ b/drivers/clk/rockchip/clk_rk3399.c @@ -994,6 +994,13 @@ static ulong rk3399_clk_set_rate(struct clk *clk, ulong rate) case DCLK_VOP1: ret = rk3399_vop_set_clk(priv->cru, clk->id, rate); break; + case ACLK_VOP1: + case HCLK_VOP1: + /** + * assigned-clocks handling won't require for vopl, so + * return 0 to satisfy clk_set_defaults during device probe. + */ + return 0; case SCLK_DDRCLK: ret = rk3399_ddr_set_clk(priv->cru, rate); break;