Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp19029682ybl; Fri, 3 Jan 2020 14:09:27 -0800 (PST) X-Google-Smtp-Source: APXvYqyv4c9AjCoi/r4g+9IL1wexCWOTLmwc4jUQMP4Sx9euUgjh0OaokMYkqDDUD+Qm47JOHgcK X-Received: by 2002:a05:6830:145:: with SMTP id j5mr97148041otp.242.1578089367337; Fri, 03 Jan 2020 14:09:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578089367; cv=none; d=google.com; s=arc-20160816; b=K9uDk6M99wf31Al3+feRmEPgQzwh2KXhT0LGbSukzTrQHjmLoNj1a7OXHdB0zjnZ6/ fjYFpuR/0CfINNrfh09/KeRJFL8v6Y+Ha/x/m3nHrDrZpUDGkbGiKWyR4U+xwA9vFcnj joJ2dha8IywUNS8j4LfhBLP+0E+szHog2/dY533eZN+RQAdHT9ZsupC6DZxRrqO/0PLF nVCjBX4vkGP4vnjn3t9FYZjlXUXMYTYC8ahEiUk7DTAIVX++sKdWf9gq4z43FB2jpnhw SCFYwgxtqU7ZeigSO66kHyGlS08NMRyFj/EOZ9NmyMcz6X2L8Hc34py82Vz8kt1ZdsnQ +huw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=I+6b+CMX/1UdEBqHlGH0v+kng02zCcfY6vwNA3BnKho=; b=IIZ8GkuMGzn5J122/oPBz6xiSCsneDWpCsqJBAjbKVctU/wODGOzo5M5DJ4Ju66vve YrUOAtxQNKzlc18lwtNVwbdN/IVNKwmubyGYM0rB09sAEozuVU2Cl8XSDwIFusmKZpC4 uSk0qYPdMyJd+M7gSaWdgpFaIKWt2Jg1z6xW+4oTnvn2fiAdLXprTIc6gHiPJJtxt8kN 7lCzcRF4x8VKR8y/1uVnqoxL9B7nD8XtNcIXQB5mnRLjHKd7CYOVn2RMWUR0r++ojXvP 26amoNLi9ThZ7onivqcSo6Qce2LKkQnRjv8vf5sryp/rzAaPXSVqKv774ymklm2NAaWL RpgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Nie4K1gp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 r4si9869101otq.188.2020.01.03.14.09.14; Fri, 03 Jan 2020 14:09:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=Nie4K1gp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1728767AbgACWIc (ORCPT + 99 others); Fri, 3 Jan 2020 17:08:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:48642 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728549AbgACWIc (ORCPT ); Fri, 3 Jan 2020 17:08:32 -0500 Received: from localhost.localdomain (unknown [194.230.155.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E7B1821835; Fri, 3 Jan 2020 22:08:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578089311; bh=d3/j7z2yjI7lEIuDxbgdAHv52WUhDcszZmPvZvTiEp8=; h=From:To:Cc:Subject:Date:From; b=Nie4K1gpZcU3az/rdhD9XkV6Ern8kdkfy421SNl/iDVQ/g5YQU2nnA+BgHq2hfB6O 8Mp9BFQYnwT9pHO7Mlu6zQfgIF32nWIgb374YZmzW5x2ZrQAn0a7NtNVMq0L+EivJS FZGa096PHMarzvD+4BRZ9ZmwCzetosVMomxg1jls= From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Fabio Estevam , Vivek Gautam Cc: Krzysztof Kozlowski Subject: [PATCH] firmware: scm: Add stubs for OCMEM and restore_sec_cfg_available Date: Fri, 3 Jan 2020 23:08:25 +0100 Message-Id: <20200103220825.28710-1-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add few more stubs (for OCMEM-related functions and qcom_scm_restore_sec_cfg_available()) in case of !CONFIG_QCOM_SCM. These are actually not necessary for builds but provide them for completeness. Signed-off-by: Krzysztof Kozlowski --- include/linux/qcom_scm.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/qcom_scm.h b/include/linux/qcom_scm.h index d05ddac9a57e..2c1d20312ce0 100644 --- a/include/linux/qcom_scm.h +++ b/include/linux/qcom_scm.h @@ -105,6 +105,11 @@ static inline bool qcom_scm_is_available(void) { return false; } static inline bool qcom_scm_hdcp_available(void) { return false; } static inline int qcom_scm_hdcp_req(struct qcom_scm_hdcp_req *req, u32 req_cnt, u32 *resp) { return -ENODEV; } +static inline bool qcom_scm_ocmem_lock_available(void) { return false; } +static inline int qcom_scm_ocmem_lock(enum qcom_scm_ocmem_client id, u32 offset, + u32 size, u32 mode) { return -ENODEV; } +static inline int qcom_scm_ocmem_unlock(enum qcom_scm_ocmem_client id, u32 offset, + u32 size) { return -ENODEV; } static inline bool qcom_scm_pas_supported(u32 peripheral) { return false; } static inline int qcom_scm_pas_init_image(u32 peripheral, const void *metadata, size_t size) { return -ENODEV; } @@ -121,6 +126,7 @@ static inline void qcom_scm_cpu_power_down(u32 flags) {} static inline u32 qcom_scm_get_version(void) { return 0; } static inline u32 qcom_scm_set_remote_state(u32 state,u32 id) { return -ENODEV; } +static inline bool qcom_scm_restore_sec_cfg_available(void) { return false; } static inline int qcom_scm_restore_sec_cfg(u32 device_id, u32 spare) { return -ENODEV; } static inline int qcom_scm_iommu_secure_ptbl_size(u32 spare, size_t *size) { return -ENODEV; } static inline int qcom_scm_iommu_secure_ptbl_init(u64 addr, u32 size, u32 spare) { return -ENODEV; } -- 2.17.1