From patchwork Wed Aug 15 09:26:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Govind Singh X-Patchwork-Id: 10566419 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 0E821139A for ; Wed, 15 Aug 2018 09:27:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F037A29ECB for ; Wed, 15 Aug 2018 09:27:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E489C29ECD; Wed, 15 Aug 2018 09:27:16 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7F48129ECB for ; Wed, 15 Aug 2018 09:27:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=QSIQ+pAlnmqyCsCGJzVOvPYbqU4aJ+ytpsTc+z8DFHw=; b=sRHNXuVkGdc+Se8OIgZmDOJVVV 0TQ9nF22Gv6oDfEjK6NA5X0iscirMWe/zq3fnUcUrh+EJGwHZY3dUfkONuk3ktmx2jX5zzyov0pak 9yNjb9yNo+YQkN5U5BkNsivnVhVxwV7I4ApeDFGHYsih0fEfJ2v/5xFfDqjjDbRCOUxkoQIBNsVob rhlSEK2DUAigNT1Y7Xgu+ZekPJs4+jpzImGhMVx/qWfkQevs3BtRKMM9zA0FWAiw0PUy5uz81H0TT siY/heMvv0BZy7PbZ/QXY59VnxSXhYq+3T0CJzC0947vtUcBQUynRzCiJnADf97JBIme2qA0x1ycS IkAWr7kQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fps5D-0000pn-1p; Wed, 15 Aug 2018 09:27:15 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fps58-0000Xw-Fz for ath10k@lists.infradead.org; Wed, 15 Aug 2018 09:27:13 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 41557624F8; Wed, 15 Aug 2018 09:27:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1534325221; bh=pafErPiDMMgNgg80vOh234UwkOLeGGTRNHo7BM1KS1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZM4lkQLfnPY0ztlJWqUY7SzM63Rp4sa/L4NkaJjh3qROCxtIKQ+LwqSvzs+nbrhet 8660CFbgnmD43m2IquuQJycqJ82nshI0B4k7UY04zYk3svZjROrEgALM2FmOcdkS+6 t85+0D5VtNn/RLUx6Kfn7Q555A5EUBG2oDNbuVxQ= 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 EB7F4624F5; Wed, 15 Aug 2018 09:26:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1534325220; bh=pafErPiDMMgNgg80vOh234UwkOLeGGTRNHo7BM1KS1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H82XlFfGR70wA5JhfBjaf8DWq8cd4GgENTlKDRJcUfZ7v6HA6K0AeB2s+iUAJ2K2d hxIPke3pVPM00H2yX5HYlS9u66MFf9uVWK6hpZCo/u02NKqgGC9/WJzrzCrwNF2Y39 D5crivCpFRpCy9hYFrl/PkJSYekmAq/JYO3UMxzM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EB7F4624F5 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: ath10k@lists.infradead.org, briannorris@chromium.org, niklas.cassel@linaro.org, bjorn.andersson@linaro.org, andy.gross@linaro.org, devicetree@vger.kernel.org Subject: [PATCH v5 4/6] firmware: qcom: scm: Add WLAN VMID for Qualcomm SCM interface Date: Wed, 15 Aug 2018 14:56:35 +0530 Message-Id: <20180815092637.11455-5-govinds@codeaurora.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180815092637.11455-1-govinds@codeaurora.org> References: <20180815092637.11455-1-govinds@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180815_022710_861466_5E5F5564 X-CRM114-Status: GOOD ( 10.20 ) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Govind Singh , linux-wireless@vger.kernel.org MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.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 Reviewed-by: Bjorn Andersson --- 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