Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp370833imn; Wed, 3 Aug 2022 07:25:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR7LlfjBIF6mPY0StBerAYcfsflGQl2qouyppSbOslEqdSc24IkCTkM3hbycieWEFza/Jraf X-Received: by 2002:a17:90b:38d2:b0:1f3:3da3:22f2 with SMTP id nn18-20020a17090b38d200b001f33da322f2mr5025102pjb.83.1659536746516; Wed, 03 Aug 2022 07:25:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659536746; cv=none; d=google.com; s=arc-20160816; b=lHVEllYT9RIGM/ZxttffoO7nvahiqPeI7vyw9xqazIzj/KpVUC7QuEpYXALVjtaixf Ioi4d7ajTJbnp6ducJctEvImgo6d354xC4TPha/vgMMwomW4C/KpG1wW0OuHvBQrvQbO RLoLODRRVnhn8ja2GoqjhCaQm3NbP5VqmPUWVn9SWYdrpHk7GhhnEA8Se1sJeqJ4oUZ1 FWkl2Ekt61Pjdprz2gfxyrUIkgyyDlHYqoSyQ4/ZQd8aFoKNAjm7YP0yKs5y1//E2qT2 TFvDXihyUhRJfE7hQa0fLiVxx7YmilNxLmLaMOnbfHnrr2kIuq4jttpDpzLpE5ahUVd7 03cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=sNACN3Gp48NsIqyPHaOfTtjBEOZWLNzxR38NWymmdHA=; b=zoyJogWVaqLadjbHRvLKtRACdoNvMJifIIPQ6+eZ/ieEdPM+vLcqe7n0D8SGXLGzbX Y/azx56jPBhb0LofK3o+TfXZYX3r62z8K/M0KZYP8pcDdU/F+pMWcYzCjw0FO1dLXBuN iTALz+PvxH42fBNis/9OhbeyWhQLqPL8kjhM/JQIfYjohuYhH9+Gk6D+pYRXYPNZeK4r 3owjUqSAMlePqJ+BulQXFxquJ6HHX0L5IDa0Zpnu7S22AjDCITacF8fn33DEICXf/Njf G57qsHy0NWcdwY69RLWmClYzQqp/HiuttfABJjpsVgWBweivHEBXd2Rui3Qc4hlwpBG5 eEdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=GEbvyyxm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y184-20020a638ac1000000b0041bc374d8edsi13400469pgd.145.2022.08.03.07.25.31; Wed, 03 Aug 2022 07:25:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=GEbvyyxm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238825AbiHCOWd (ORCPT + 99 others); Wed, 3 Aug 2022 10:22:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238752AbiHCOWQ (ORCPT ); Wed, 3 Aug 2022 10:22:16 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DABED2CE0E; Wed, 3 Aug 2022 07:22:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1659536536; x=1691072536; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=sNACN3Gp48NsIqyPHaOfTtjBEOZWLNzxR38NWymmdHA=; b=GEbvyyxmc1zeWJLGETOm4G+/jZMWn/4Q6IE1SFM2l250N61qRrxVwrDp jiYYqqyhGBtRk7zLdEBLV9djm4uUIcVbX5/d9751iJ2xy/reRuUVsc7At CVlYENwfZDUu3DPZHFuOWZtYE3gJbRL08Zvstswm4MTDskys2XVj/9q/t A=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-01.qualcomm.com with ESMTP; 03 Aug 2022 07:22:15 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2022 07:22:15 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 3 Aug 2022 07:22:14 -0700 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 3 Aug 2022 07:22:09 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH 6/8] remoteproc: qcom: Add flag in adsp private data structure Date: Wed, 3 Aug 2022 19:51:18 +0530 Message-ID: <1659536480-5176-7-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1659536480-5176-1-git-send-email-quic_srivasam@quicinc.com> References: <1659536480-5176-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add flag in qcom_adsp private data structure and initialize it to distinguish ADSP and WPSS modules. Signed-off-by: Srinivasa Rao Mandadapu --- drivers/remoteproc/qcom_q6v5_adsp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_adsp.c b/drivers/remoteproc/qcom_q6v5_adsp.c index 201cc21..3dbd035 100644 --- a/drivers/remoteproc/qcom_q6v5_adsp.c +++ b/drivers/remoteproc/qcom_q6v5_adsp.c @@ -104,6 +104,7 @@ struct qcom_adsp { phys_addr_t mem_reloc; void *mem_region; size_t mem_size; + bool is_wpss; struct device *proxy_pds[QCOM_Q6V5_RPROC_PROXY_PD_MAX]; size_t proxy_pd_count; @@ -615,6 +616,8 @@ static int adsp_probe(struct platform_device *pdev) adsp->dev = &pdev->dev; adsp->rproc = rproc; adsp->info_name = desc->sysmon_name; + adsp->is_wpss = desc->is_wpss; + platform_set_drvdata(pdev, adsp); if (desc->is_wpss) -- 2.7.4