From patchwork Wed Jun 12 09:17:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 166531 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3437503ilk; Wed, 12 Jun 2019 02:20:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUbWy8J23GPsjfEOVmu2Qo0tVUX9gySYEXMv3lyNu4kpCi+Kj3vfGMcy/LaXqP4cU0XsrD X-Received: by 2002:a65:5347:: with SMTP id w7mr24099389pgr.375.1560331244994; Wed, 12 Jun 2019 02:20:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560331244; cv=none; d=google.com; s=arc-20160816; b=UeL6pnDd7E0XrrxZDLiLBSNecdNxaiasnbbv+xAYaryCTxwlRY+phf2aM1+GNrGM5n fksN0dxYNS5jltMRkkIks0CAFKvKdInGuVTHoTzVIRsyvEmy8TPkNWxI+ibhjC1HgNtX 1tXJWce2Anau7ZDXx8CTwaG8keOMOB9HVGqtzF/7S+jEjFjjCTzXGTSf+MVuyrFxcC4g zHzVhRE3dVZ/Kc1kdUfBB54GJ7hS+LKF8EALHoSgSp61UESX8xX931ieZUN7JTpEIIfG u7orHU6QJcVzlVcofu9WTzw2QpFIHZUWsVM0OQW6MiGmVjSNRsOSXAbY8y6CdMO/aPDS caWg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uYMR6wA+E+lwNCadUs2KtZoOSNRKVjjkyI8Kr0KZq1w=; b=eQgEu4gjwJigs9hEUkYaRYxgPJ159wr3PqoClhYpfqWFmdFN4Z91xdpuOiWV30i7J2 bjh9i0BLjw//D8kko3G2wh4pqIMHRBXTIfAM5cErl5k2/hmPWp1aih+UqkSqZOj2seuZ 498IHu6kjNvLPDmUG2W8OYBC71xrXwJYN+fycrIYELvOFOJIY26rvp4keBIy9ZZ8rzaG KPIkX3X48KmqHNhjXOEbsUrsGjrFA4Sz9/sxq3RYWzRY6Fw+wUfV2YVxozERxVIVIxum tW3U8SQQEW3cnveMn+Tko5HJGWEkeVLFfxpaBmXZELCym2ZUhD2WnKA2R36ZZDZbWIfs yuhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ucwNcsF9; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s12si7195384plr.338.2019.06.12.02.20.44; Wed, 12 Jun 2019 02:20:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ucwNcsF9; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436598AbfFLJUn (ORCPT + 15 others); Wed, 12 Jun 2019 05:20:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:38622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408705AbfFLJUn (ORCPT ); Wed, 12 Jun 2019 05:20:43 -0400 Received: from localhost.localdomain (unknown [106.200.205.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 751B120874; Wed, 12 Jun 2019 09:20:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560331242; bh=wOMJ9aM4tSyEIdMjxMkyFSSJTeyrR+hlsRS+FtmB2EE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ucwNcsF9fFzm52dfqMbOLO2bEYmFH2ojYb2pLQaRNl8tZalYQ21g5hlWX+TRnGMK+ 8wwDQ03J27J5NUNO/H+QuF/AkyfY2CSjOkeOVYUbbUyomGgXPRZGCzMgMXchFW1nZ+ o3LH3+8wGo3o5nt6JFZmMItEe9braSOyEQSY6X2A= From: Vinod Koul To: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , David Brown , Michael Turquette , linux-clk@vger.kernel.org Subject: [PATCH v2 2/5] clk: qcom: clk-alpha-pll: Remove post_div_table checks Date: Wed, 12 Jun 2019 14:47:19 +0530 Message-Id: <20190612091722.9377-3-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190612091722.9377-1-vkoul@kernel.org> References: <20190612091722.9377-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org We want users to code properly and fix the post_div_table missing and not reply on core to check. So remove the post_div_table check. Signed-off-by: Vinod Koul --- drivers/clk/qcom/clk-alpha-pll.c | 15 --------------- 1 file changed, 15 deletions(-) -- 2.20.1 Reviewed-by: Bjorn Andersson diff --git a/drivers/clk/qcom/clk-alpha-pll.c b/drivers/clk/qcom/clk-alpha-pll.c index b48707693ffd..2c6773188761 100644 --- a/drivers/clk/qcom/clk-alpha-pll.c +++ b/drivers/clk/qcom/clk-alpha-pll.c @@ -1036,11 +1036,6 @@ static unsigned long clk_alpha_pll_postdiv_fabia_recalc_rate(struct clk_hw *hw, u32 i, div = 1, val; int ret; - if (!pll->post_div_table) { - pr_err("Missing the post_div_table for the PLL\n"); - return -EINVAL; - } - ret = regmap_read(pll->clkr.regmap, PLL_USER_CTL(pll), &val); if (ret) return ret; @@ -1063,11 +1058,6 @@ static long clk_alpha_pll_postdiv_fabia_round_rate(struct clk_hw *hw, { struct clk_alpha_pll_postdiv *pll = to_clk_alpha_pll_postdiv(hw); - if (!pll->post_div_table) { - pr_err("Missing the post_div_table for the PLL\n"); - return -EINVAL; - } - return divider_round_rate(hw, rate, prate, pll->post_div_table, pll->width, CLK_DIVIDER_ROUND_CLOSEST); } @@ -1089,11 +1079,6 @@ static int clk_alpha_pll_postdiv_fabia_set_rate(struct clk_hw *hw, if (val & PLL_VOTE_FSM_ENA) return 0; - if (!pll->post_div_table) { - pr_err("Missing the post_div_table for the PLL\n"); - return -EINVAL; - } - div = DIV_ROUND_UP_ULL(parent_rate, rate); for (i = 0; i < pll->num_post_div; i++) { if (pll->post_div_table[i].div == div) {