Message ID | 1467232500-23866-1-git-send-email-andy.gross@linaro.org |
---|---|
State | Accepted |
Commit | 72d43419400f31d9eb634466446e3ceddce30be7 |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp47904qgy; Wed, 29 Jun 2016 13:37:02 -0700 (PDT) X-Received: by 10.98.88.5 with SMTP id m5mr15072094pfb.27.1467232622179; Wed, 29 Jun 2016 13:37:02 -0700 (PDT) Return-Path: <linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org> Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id tl10si2912845pac.140.2016.06.29.13.37.02 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jun 2016 13:37:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bIMD3-0003D1-Kw; Wed, 29 Jun 2016 20:35:45 +0000 Received: from mail-ob0-x233.google.com ([2607:f8b0:4003:c01::233]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bIMCz-0003Al-T7 for linux-arm-kernel@lists.infradead.org; Wed, 29 Jun 2016 20:35:43 +0000 Received: by mail-ob0-x233.google.com with SMTP id o10so29935720obp.2 for <linux-arm-kernel@lists.infradead.org>; Wed, 29 Jun 2016 13:35:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=kVPVrpzYLLd5z3/yQKMXgWnrJqngFLuZ2hnodJeucJo=; b=IDtHU14SdJAO5U3KEzgL39XoMjDRK8Q8Gyj4WyFgd9Cx0g6ZFa4Y5GLkOxVLKhqMxe yLM5MJaDQxmwd6eq5nKU3dGuPOpymaQBRWsJ7g5lz6uCYJ/l+f3yYFOZadxYJDUMZjVt mnU7YeuiaAOqNQMU3Q+XmVwTFpWC7sk8k6NO8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=kVPVrpzYLLd5z3/yQKMXgWnrJqngFLuZ2hnodJeucJo=; b=f36KUiexDsK4HRiSgxfxrw0jaMkvOQ6mAWrL6p8u5utu/UZR7P4UTKwjz6cEOavXZU ykJFX2jm5J91WgXm8qAlrHpHf5NRjTZbMMDXcbO1s1Nq+OJF0XE6Ys3UkTGAGceHh1KT BKyRawm8IXfNVZ9u7iyzimtbn3eaC6WNNIsEamOLacfg3GcMUZeBt/5Al4qlCCzwHjFD zKdOx2tStOgMPlM8AsvQ/WRiKKJ/J4mWIQp8yPqLqxBUk3Xb7oLlgbgB5EAQ8ESHLIne 0rYs0k/o7FV/ZW5OoaT3hAW2sJPJsEE9Jr+jE1U/1zKHSEBcxEOPBRVuJr8mbndBlgI+ zrvA== X-Gm-Message-State: ALyK8tJnGmb3wqZZeTLVNcv3nrIo6yUVNo6fzQoUCniFpNaCBVmal1FKJSq/W/uWUeCxTJH1 X-Received: by 10.157.35.111 with SMTP id k44mr7382870otd.18.1467232520591; Wed, 29 Jun 2016 13:35:20 -0700 (PDT) Received: from localhost ([2602:306:c558:19b0:b56c:b950:f2a8:f4a]) by smtp.gmail.com with ESMTPSA id r65sm1998747oif.0.2016.06.29.13.35.19 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 29 Jun 2016 13:35:19 -0700 (PDT) From: Andy Gross <andy.gross@linaro.org> To: linux-arm-msm@vger.kernel.org Subject: [PATCH] firmware: qcom_scm: Add missing is_available API Date: Wed, 29 Jun 2016 15:35:00 -0500 Message-Id: <1467232500-23866-1-git-send-email-andy.gross@linaro.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160629_133542_149485_BDC997AA X-CRM114-Status: GOOD ( 10.18 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:4003:c01:0:0:0:233 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Stephen Boyd <sboyd@codeaurora.org>, linux-kernel@vger.kernel.org, Bjorn Andersson <bjorn.andersson@linaro.org>, Srinivas Kandagatla <srinivas.kandagatla@linaro.org>, Andy Gross <andy.gross@linaro.org>, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org |
diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c index 84330c5..89c3775 100644 --- a/drivers/firmware/qcom_scm.c +++ b/drivers/firmware/qcom_scm.c @@ -308,6 +308,14 @@ static const struct reset_control_ops qcom_scm_pas_reset_ops = { .deassert = qcom_scm_pas_reset_deassert, }; +/** + * qcom_scm_is_available() - Checks if SCM is available + */ +bool qcom_scm_is_available(void) +{ + return !!__scm; +} +EXPORT_SYMBOL(qcom_scm_is_available); static int qcom_scm_probe(struct platform_device *pdev) {
Add back function that was dropped when reworking the SCM code. Signed-off-by: Andy Gross <andy.gross@linaro.org> --- drivers/firmware/qcom_scm.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 1.9.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel