Message ID | 20200130131220.v3.1.I7487325fe8e701a68a07d3be8a6a4b571eca9cfa@changeid (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=DvJG=3T=vger.kernel.org=linux-arm-msm-owner@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B1730139A for <patchwork-linux-arm-msm@patchwork.kernel.org>; Thu, 30 Jan 2020 21:12:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9069F214DB for <patchwork-linux-arm-msm@patchwork.kernel.org>; Thu, 30 Jan 2020 21:12:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="NQMw82GE" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727515AbgA3VMu (ORCPT <rfc822;patchwork-linux-arm-msm@patchwork.kernel.org>); Thu, 30 Jan 2020 16:12:50 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:42187 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727089AbgA3VMu (ORCPT <rfc822;linux-arm-msm@vger.kernel.org>); Thu, 30 Jan 2020 16:12:50 -0500 Received: by mail-pg1-f195.google.com with SMTP id s64so2278721pgb.9 for <linux-arm-msm@vger.kernel.org>; Thu, 30 Jan 2020 13:12:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qiYgMeeUC0YBpAKelC+4dn+CN5ICnSUf2MkjMCbgL5c=; b=NQMw82GEkZ6PCiwjiH4rDlQHZWp89OEeOFi1fTtGIJyi/seUYDg2GVNuf+3iQS0Fiu /eWZAkdKHkVeg51jDe0fQTGXbsqxftfBFdoE3DR4sZN3MTn3L6mbGeWlkrJj4jC+W2eK 2B8kfMWCHQ2xh4NPd/FxrnPp2i9YH3BXJyFbc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qiYgMeeUC0YBpAKelC+4dn+CN5ICnSUf2MkjMCbgL5c=; b=iAvCt+J5UrewaiFngkuHB+5g86nk88o4HApZ8R2b3lnrYgJAaKH2+NJ3tsA9VBxFPY CwbHvlwxEvwUbqCuHi3mTQjt4jlRAgxREcT5J96haG7UmAJpsIFK7Ls8hPNN6uezbWmF /IZg3Ea+rCVVBoIR8RjC0X9yPEsPhom+GVnnRL1bfslMQtfSVuIJbZM68rRteAtPCpN7 VfdoYA+6hQK9zHT/N8PJG/ia1/JicTTwvilEmBMwyvb+wXz7WKxNYzAMBAr131zIhnt1 jU7LGCL+fP7g/k7S/rfQ7NF3KjcDdtv5DqQUWBH2zEPSMTJRe7LIf0tt+pUoat3abXEg FOeQ== X-Gm-Message-State: APjAAAXodiXM53lQl0pmY9Qr5W1gptOh3yvcH/fSPafFd8c3yYWip9Yh pbzO0nF9EBCV6y8Imgy/G0orHA== X-Google-Smtp-Source: APXvYqxtcrlprtA94Pt11rgDOHvAhaLPmxrkPcj2drtGice8emH1/TtSR99Y/5dZQDkssXFxNGMyOQ== X-Received: by 2002:a65:4242:: with SMTP id d2mr6728403pgq.166.1580418769626; Thu, 30 Jan 2020 13:12:49 -0800 (PST) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:24fa:e766:52c9:e3b2]) by smtp.gmail.com with ESMTPSA id ci5sm4343871pjb.5.2020.01.30.13.12.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jan 2020 13:12:49 -0800 (PST) From: Douglas Anderson <dianders@chromium.org> To: Rob Herring <robh@kernel.org>, Andy Gross <agross@kernel.org>, Bjorn Andersson <bjorn.andersson@linaro.org>, Stephen Boyd <sboyd@kernel.org> Cc: Jeffrey Hugo <jhugo@codeaurora.org>, Taniya Das <tdas@codeaurora.org>, jeffrey.l.hugo@gmail.com, linux-arm-msm@vger.kernel.org, harigovi@codeaurora.org, devicetree@vger.kernel.org, mka@chromium.org, kalyan_t@codeaurora.org, Mark Rutland <mark.rutland@arm.com>, linux-clk@vger.kernel.org, hoegsberg@chromium.org, Douglas Anderson <dianders@chromium.org>, Michael Turquette <mturquette@baylibre.com>, linux-kernel@vger.kernel.org Subject: [PATCH v3 01/15] clk: qcom: rcg2: Don't crash if our parent can't be found; return an error Date: Thu, 30 Jan 2020 13:12:17 -0800 Message-Id: <20200130131220.v3.1.I7487325fe8e701a68a07d3be8a6a4b571eca9cfa@changeid> X-Mailer: git-send-email 2.25.0.341.g760bfbb309-goog In-Reply-To: <20200130211231.224656-1-dianders@chromium.org> References: <20200130211231.224656-1-dianders@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: <linux-arm-msm.vger.kernel.org> X-Mailing-List: linux-arm-msm@vger.kernel.org |
Series |
clk: qcom: Fix parenting for dispcc/gpucc/videocc
|
expand
|
diff --git a/drivers/clk/qcom/clk-rcg2.c b/drivers/clk/qcom/clk-rcg2.c index da045b200def..9098001ac805 100644 --- a/drivers/clk/qcom/clk-rcg2.c +++ b/drivers/clk/qcom/clk-rcg2.c @@ -218,6 +218,9 @@ static int _freq_tbl_determine_rate(struct clk_hw *hw, const struct freq_tbl *f, clk_flags = clk_hw_get_flags(hw); p = clk_hw_get_parent_by_index(hw, index); + if (!p) + return -EINVAL; + if (clk_flags & CLK_SET_RATE_PARENT) { rate = f->freq; if (f->pre_div) {