Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp243415imn; Thu, 4 Aug 2022 04:20:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Yy+SENa+dftbi8w4G4sxb/0f+QEDzOpPOTSah00XMRQKYFPsUruO8kjqrJnOzk0F4OaQ/ X-Received: by 2002:a17:90b:f85:b0:1f3:1d77:244b with SMTP id ft5-20020a17090b0f8500b001f31d77244bmr10086965pjb.210.1659612035875; Thu, 04 Aug 2022 04:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659612035; cv=none; d=google.com; s=arc-20160816; b=Ev6IBQE31g6tfkfPkCeyHoowPWUXex0RGIXKyZDF44q3mN9l2wG9d/V1Lx2rUktGd/ u43CvK89KcRfbOn3oHw8P0J3zzlRRY9HT+2PHyap+F/LXoxf894cenM0To6rPhmnXExk x+2XHzVptb4o/718zJT7ys657ySwNljTeXol2q6F1c+d5n0KEA7yrV1IsRpLhtaCGlUi JnTnJzaranD0EbEYQSDikJvW/+tCYSCUTttyfbibUca/BQv8vQZrsiWiLxdM1rStLM0u G6o+9cWvXYDQoV1FpXUWyj1UcvT15bAJRUjbJ2yJjd4lpV+tNMdAa9/0f5SQ/F/vwrYS d9wg== 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=tv9wA3O5zfOvbTenSv6VCOv62PmcnyWWgZL4WsjUJQNC4zdBsGjzVAoYRZiCmdIReL bk6ZZvGl1sekpM7Pvr9hjgbvirLRGCM3J3WS05/43vjWH0KBEiNCHW1ou5XXZiQgMlyA y5YTMESTMeKukYK8vJ0YRCisHgOOOewNCIjLO9RO5mphDijB9etn3S/ZKimzq5qJQJ4O cNliEG6tPeQmk2J4nltTzchoIAbeQecVu2FpLyhxSJTmxImsB/QZBIqFWHfPO7YdXzfE G6BOXaOhY8TLEvRDTMaPQdbdPDz8r9vcojHNQzOXt54hnshe1UNzN5jbx4f2EfjDZONX IZhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=xB9ykGPq; 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 p15-20020a170902e74f00b0016d20f6b892si697771plf.206.2022.08.04.04.20.21; Thu, 04 Aug 2022 04:20:35 -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=xB9ykGPq; 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 S239578AbiHDLQ7 (ORCPT + 99 others); Thu, 4 Aug 2022 07:16:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239597AbiHDLQq (ORCPT ); Thu, 4 Aug 2022 07:16:46 -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 BEAE0222A3; Thu, 4 Aug 2022 04:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1659611805; x=1691147805; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=sNACN3Gp48NsIqyPHaOfTtjBEOZWLNzxR38NWymmdHA=; b=xB9ykGPqba1Q5IdJ4ZrQrSf6ft5sEWuqAzT9KhqDMF4FGCmzG8V3t2Bf zLO2LKFsqk3Ed9kN5qzK09E74lUbRRQZlfyKvz6o2hY+w27Oqa6U0krnP GWty2fQC9uh1JrUqDOvozSnWW5UKAZRFLFaq9l6Smn2/lGtdI9Z/69wEm 4=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-01.qualcomm.com with ESMTP; 04 Aug 2022 04:16:45 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2022 04:16:45 -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; Thu, 4 Aug 2022 04:16:45 -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; Thu, 4 Aug 2022 04:16:39 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v2 6/8] remoteproc: qcom: Add flag in adsp private data structure Date: Thu, 4 Aug 2022 16:45:49 +0530 Message-ID: <1659611751-7928-7-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1659611751-7928-1-git-send-email-quic_srivasam@quicinc.com> References: <1659611751-7928-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