Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp6816779rwb; Wed, 10 Aug 2022 01:25:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR6yAlry+AsT0ugZdE2sTGZGyzuCb7oqcBJz+kH7NEBIgufwHDAhVntEDGQCGA0rF/63o+Iw X-Received: by 2002:a17:906:d554:b0:731:7e0f:2b48 with SMTP id cr20-20020a170906d55400b007317e0f2b48mr6926758ejc.314.1660119910114; Wed, 10 Aug 2022 01:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660119910; cv=none; d=google.com; s=arc-20160816; b=wkBgShthLXvbxWyuj4sHQNTsP/7g2Dj0s+Nm6CR2Rb4dPk0nAu22j05uLi/GQQdL+u LkHjE/334OIq0WeAmXIzpYO3xZyJPqDlNBXEomX20U+OtCf+honxeck2ptDjO0mXk+/N Vka12EZCW29vfMW6FlBQQK5Oy8ec4C4JFYlNqnWHoiB44N4KDgUOXBBpcEzfXWHbi5Xj eKq6gec7xjci7HB8cKByjmK//dDRM+ZB0u37UhhDxhoSsKwy8NVRICb6wdeY+/KSRh7Z mNFKWW8sCwiOfzfz11MRKJ5vBEE+loR55/w9ZoxdcxEWV3EoWFzB5AFZUqpzkysSswR3 DgXA== 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=gZs2yyDuEQOq7QlMRJ8QPCsBjX6c4OTabyzs8pftpIo=; b=zRMr0SOWgkAbjKrG3NZd2/+h5L/LMflLwbcC5gtrCIKV6F33qvHkwPGkFOW6FuB18i Y3EBpAvHb2DkroHPy8ZDYwAeoyjsUQF1zi7JSdyFu2bDj4zUK4xzvZsI/RwtTKkCwu0T XQhMrKoOKkwIIQTBrCHOJNXVre9N1oySQijEdQYx1WeWaz3ULKZssPy/gzHWNkAJcwrx CwYyeLnLaX4uV7gops4dLirrwympiDtanrpa/QZ2gIm3415nKc9+YUa8UtTzguEPTaex m58L1ExgHKfSRt4v+02r3EJjM1QXhoPZnTJ0Gib5l57cbwwj137xklPLAVhjV0iKhXUl HzGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=fl8T+b7+; 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 d13-20020a50ea8d000000b0043a6efbaaa4si10094592edo.301.2022.08.10.01.24.43; Wed, 10 Aug 2022 01:25:10 -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=qcppdkim1 header.b=fl8T+b7+; 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 S231557AbiHJHwn (ORCPT + 99 others); Wed, 10 Aug 2022 03:52:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231562AbiHJHw0 (ORCPT ); Wed, 10 Aug 2022 03:52:26 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D800981B3D; Wed, 10 Aug 2022 00:52:22 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27A7pBVN026959; Wed, 10 Aug 2022 07:51:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=gZs2yyDuEQOq7QlMRJ8QPCsBjX6c4OTabyzs8pftpIo=; b=fl8T+b7+1gQLxwoJrlfP9ooZgLuFZDMssO/OyPESF7eY0KTuYSm1GKJPzCEdxM73QZcX Z7nr8sG/UnCR3CnW65dmmIG7eKf22C1uq/MqNSGXzceWjawLS28k6/nOi5Xa1M6XVgor ojWYPn6kXQUOA80tfm9/XIUUfUJb4bJPO8MA4lwcisaTG2IavxOnYZIsQ0aSeMHyHetd T6vY2DzkyYgLIpcBvQ6BbQk2GmNa+85ilM0QdvrEC3bOp1fNI7ONQ8bUZr94IwhIrN2J F1LfW1fiSbg9t0VyTqOW9Bk/J8HkCbqF+H9pygSZYS/1Vr83/emcSrWy14mmvgjoJppE dA== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3huwqqhku0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Aug 2022 07:51:42 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.47.97.222]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 27A7kfcH032682 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Aug 2022 07:46:41 GMT 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, 10 Aug 2022 00:46:41 -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, 10 Aug 2022 00:46:35 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v3 3/8] remoteproc: qcom: Add flag in adsp private data structure Date: Wed, 10 Aug 2022 13:15:53 +0530 Message-ID: <1660117558-21829-4-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1660117558-21829-1-git-send-email-quic_srivasam@quicinc.com> References: <1660117558-21829-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: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: NEUZxSPpVi-xs6xKekuDBvElxfFHMGjE X-Proofpoint-ORIG-GUID: NEUZxSPpVi-xs6xKekuDBvElxfFHMGjE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-10_03,2022-08-09_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 adultscore=0 lowpriorityscore=0 mlxlogscore=999 impostorscore=0 mlxscore=0 bulkscore=0 phishscore=0 clxscore=1015 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2208100022 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 --- Changes since V2: -- Add is_adsp_sb_needed flag instead of is_wpss. drivers/remoteproc/qcom_q6v5_adsp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_adsp.c b/drivers/remoteproc/qcom_q6v5_adsp.c index 2f3b9f5..d18ec74 100644 --- a/drivers/remoteproc/qcom_q6v5_adsp.c +++ b/drivers/remoteproc/qcom_q6v5_adsp.c @@ -62,6 +62,7 @@ struct adsp_pil_data { const char *sysmon_name; int ssctl_id; bool is_wpss; + bool is_adsp_sb_needed; bool auto_boot; const char **clk_ids; @@ -99,6 +100,7 @@ struct qcom_adsp { phys_addr_t mem_reloc; void *mem_region; size_t mem_size; + bool is_adsp_sb_needed; struct device *proxy_pds[QCOM_Q6V5_RPROC_PROXY_PD_MAX]; size_t proxy_pd_count; @@ -602,6 +604,8 @@ static int adsp_probe(struct platform_device *pdev) adsp->dev = &pdev->dev; adsp->rproc = rproc; adsp->info_name = desc->sysmon_name; + adsp->is_adsp_sb_needed = desc->is_adsp_sb_needed; + platform_set_drvdata(pdev, adsp); if (desc->is_wpss) -- 2.7.4