From patchwork Mon Jul 23 12:34:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Govind Singh X-Patchwork-Id: 10540121 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 058AA112E for ; Mon, 23 Jul 2018 12:35:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8796285C9 for ; Mon, 23 Jul 2018 12:35:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DCF772869F; Mon, 23 Jul 2018 12:35:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8324C285C9 for ; Mon, 23 Jul 2018 12:35:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389055AbeGWNf7 (ORCPT ); Mon, 23 Jul 2018 09:35:59 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:41180 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388507AbeGWNf6 (ORCPT ); Mon, 23 Jul 2018 09:35:58 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id CE8EF6021A; Mon, 23 Jul 2018 12:34:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1532349297; bh=pafErPiDMMgNgg80vOh234UwkOLeGGTRNHo7BM1KS1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aIC+ODmcTdEx8cMk8XtZUUqPb55RB0yWcGXLUcPGTV2JOZNCBLR5Wi6IUIb3fJUYy WL+f5AcrDByPiF6aKnQCgOoXxcg72j0TGbzeGmb6DcmQdzQqgAjj2mK+9/7uR1oyzU 73zKA8XkWYVqm/ZqwdGCELIgklmFHJZQn4zRrd+k= Received: from govinds-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: govinds@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id A3ED0605FD; Mon, 23 Jul 2018 12:34:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1532349297; bh=pafErPiDMMgNgg80vOh234UwkOLeGGTRNHo7BM1KS1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aIC+ODmcTdEx8cMk8XtZUUqPb55RB0yWcGXLUcPGTV2JOZNCBLR5Wi6IUIb3fJUYy WL+f5AcrDByPiF6aKnQCgOoXxcg72j0TGbzeGmb6DcmQdzQqgAjj2mK+9/7uR1oyzU 73zKA8XkWYVqm/ZqwdGCELIgklmFHJZQn4zRrd+k= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A3ED0605FD Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=govinds@codeaurora.org From: Govind Singh To: niklas.cassel@linaro.org, bjorn.andersson@linaro.org, david.brown@linaro.org, andy.gross@linaro.org, robh@kernel.org, devicetree@vger.kernel.org, ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Govind Singh Subject: [PATCH v4 4/6] firmware: qcom: scm: Add WLAN VMID for Qualcomm SCM interface Date: Mon, 23 Jul 2018 18:04:26 +0530 Message-Id: <20180723123428.12993-5-govinds@codeaurora.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180723123428.12993-1-govinds@codeaurora.org> References: <20180723123428.12993-1-govinds@codeaurora.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add WLAN related VMID's to support wlan driver to set up the remote's permissions call via TrustZone. Signed-off-by: Govind Singh --- include/linux/qcom_scm.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/qcom_scm.h b/include/linux/qcom_scm.h index b401b962afff..da63d84e1e91 100644 --- a/include/linux/qcom_scm.h +++ b/include/linux/qcom_scm.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2015, The Linux Foundation. All rights reserved. +/* Copyright (c) 2010-2015, 2018, The Linux Foundation. All rights reserved. * Copyright (C) 2015 Linaro Ltd. * * This program is free software; you can redistribute it and/or modify @@ -33,6 +33,8 @@ struct qcom_scm_vmperm { #define QCOM_SCM_VMID_HLOS 0x3 #define QCOM_SCM_VMID_MSS_MSA 0xF +#define QCOM_SCM_VMID_WLAN 0x18 +#define QCOM_SCM_VMID_WLAN_CE 0x19 #define QCOM_SCM_PERM_READ 0x4 #define QCOM_SCM_PERM_WRITE 0x2 #define QCOM_SCM_PERM_EXEC 0x1