From patchwork Tue Jul 25 07:15:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tao Zhang X-Patchwork-Id: 125363 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2295526vqg; Tue, 25 Jul 2023 00:27:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlHi4KpjkAxbkECifH3yoYqAEOCSFxgAXozVYOoWP0U2DSciA/SGZEwDTiyIwLuDbFNSQaTd X-Received: by 2002:a17:906:7783:b0:994:1eb4:6896 with SMTP id s3-20020a170906778300b009941eb46896mr2071470ejm.25.1690270054078; Tue, 25 Jul 2023 00:27:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690270054; cv=none; d=google.com; s=arc-20160816; b=RlJ2wi9d1lScEUNRr3hXm4QiarBNb/z8xvTw/dzMeP0/83NcIP+LrXKIMg9eQj0WtM BbjHb/iFHUReHWDbQG8r8jA43YwOkGC7BmnKtXvXdipjRWvd2HZg6O3KKLT+ap30L9UB coWlT2jaZV9m7Ho8OUYlmx3jcECUeq1qJVNxO90dQT1NZo+vZLA7gKpRQVsflSYq9NYo GXibjaRmLQD6BxeeFtH6ZmQD5+p30pAe+kV2U5K6Ippxx9TUs2ZZ0beGXCrA73tFrON8 baOLyyl9UVTqF0gz/t+GSQjXfRrvTLvS7yupSUVwR0Av4X0s9wBxTp/M25hJMI4O0kWO YzhA== 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=0PBaaLPc8DhxM4/1AHSr/Qr6PTykK4JIoRGApIYQw/w=; fh=hXfhjPaP7YtK8cx1pDaeyea4542GzczmcrIiOSp/HFc=; b=xHPhkv3n56tdlFdJtbEdx5Msdrnpy0K101kMru3cvVQA2iNKrNbQFr/WLjWrWXwaSm JctAg+5T+kYW3JWs7pj5eDZjnF7dlVyEA3eQY958dDr2mJG/KmV/ZVkZcOXnC/HKJgYw 83uprHFjeODRnb2Pd7plPMgURD4B/b9L35QEkKo2N3STFNURQ6LjwNYtR/7ruLKZ3ZrL TlgQuMtdyzEGU/ZsNbxA78PRi+hn5/DBA9GLlHEWYvviTbaDP6VBTPdz3hVYn4Sqrcpk xakx+Lp3Yq4mhrq/njmi1RDW1tGxXoKHLW5rmFIXglX4EyzyF03NLkZAtTUp27DzYZeA wAiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=iwqNqt4x; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ko20-20020a170907987400b009930e13a56fsi7025933ejc.346.2023.07.25.00.27.09; Tue, 25 Jul 2023 00:27:34 -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=iwqNqt4x; 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 S232447AbjGYHRS (ORCPT + 99 others); Tue, 25 Jul 2023 03:17:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232298AbjGYHRD (ORCPT ); Tue, 25 Jul 2023 03:17:03 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 309571BD2; Tue, 25 Jul 2023 00:16:46 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36P5Hl4O022184; Tue, 25 Jul 2023 07:16:32 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=0PBaaLPc8DhxM4/1AHSr/Qr6PTykK4JIoRGApIYQw/w=; b=iwqNqt4xlfpuB52C6mVyQ53roTPraoQd1gLN9OAn8o9yhP85/e7Rn2LE5DC8jxvpy37i xKzTeVm8uRgiMRgCIENGPNa0mm9CUWjduzhTjX4DaLtEp4NYT1KWRNgVfuyVCUMT1riY 29+EbmiCw+qwdpfJbpnhEsyRg3IOgvl8zeOqB1JSHu6L9Gm/IIsqKjqN1GWwQY0Mmulv /SF12MoXUdKJeHBhORruRkT+ypuTtsRmz5b/Fif2LA2ffe80/2eWDbU0HsjwqagKW2Rq qsbjft8zo1SQE+msJKL9BPmrwNhV3fHN7U2oaikuEg1XgofsmsW8wSXkVGDL+bf+pThb sQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s1sr720hg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jul 2023 07:16:31 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36P7GUwR029445 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jul 2023 07:16:30 GMT Received: from taozha-gv.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Tue, 25 Jul 2023 00:16:24 -0700 From: Tao Zhang To: Mathieu Poirier , Suzuki K Poulose , Alexander Shishkin , Konrad Dybcio , Mike Leach , Rob Herring , Krzysztof Kozlowski CC: Tao Zhang , Jinlong Mao , Leo Yan , Greg Kroah-Hartman , , , , , Tingwei Zhang , Yuanfang Zhang , Trilok Soni , Hao Zhang , , Subject: [PATCH v7 03/13] coresight-tpdm: Introduce TPDM subtype to TPDM driver Date: Tue, 25 Jul 2023 15:15:43 +0800 Message-ID: <1690269353-10829-4-git-send-email-quic_taozha@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1690269353-10829-1-git-send-email-quic_taozha@quicinc.com> References: <1690269353-10829-1-git-send-email-quic_taozha@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: LEZncrFHrWIu1SrfchGynz-03tzOYpWe X-Proofpoint-ORIG-GUID: LEZncrFHrWIu1SrfchGynz-03tzOYpWe X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-25_02,2023-07-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 adultscore=0 impostorscore=0 bulkscore=0 mlxscore=0 clxscore=1011 spamscore=0 malwarescore=0 suspectscore=0 lowpriorityscore=0 mlxlogscore=930 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307250064 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,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772376612049471898 X-GMAIL-MSGID: 1772376612049471898 Introduce the new subtype of "CORESIGHT_DEV_SUBTYPE_SOURCE_TPDM" for TPDM components in driver. Signed-off-by: Tao Zhang --- drivers/hwtracing/coresight/coresight-core.c | 1 + drivers/hwtracing/coresight/coresight-tpdm.c | 2 +- include/linux/coresight.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-core.c b/drivers/hwtracing/coresight/coresight-core.c index 118fcf2..a8c52aa 100644 --- a/drivers/hwtracing/coresight/coresight-core.c +++ b/drivers/hwtracing/coresight/coresight-core.c @@ -1093,6 +1093,7 @@ static int coresight_validate_source(struct coresight_device *csdev, if (subtype != CORESIGHT_DEV_SUBTYPE_SOURCE_PROC && subtype != CORESIGHT_DEV_SUBTYPE_SOURCE_SOFTWARE && + subtype != CORESIGHT_DEV_SUBTYPE_SOURCE_TPDM && subtype != CORESIGHT_DEV_SUBTYPE_SOURCE_OTHERS) { dev_err(&csdev->dev, "wrong device subtype in %s\n", function); return -EINVAL; diff --git a/drivers/hwtracing/coresight/coresight-tpdm.c b/drivers/hwtracing/coresight/coresight-tpdm.c index b645612..abaff0b 100644 --- a/drivers/hwtracing/coresight/coresight-tpdm.c +++ b/drivers/hwtracing/coresight/coresight-tpdm.c @@ -203,7 +203,7 @@ static int tpdm_probe(struct amba_device *adev, const struct amba_id *id) if (!desc.name) return -ENOMEM; desc.type = CORESIGHT_DEV_TYPE_SOURCE; - desc.subtype.source_subtype = CORESIGHT_DEV_SUBTYPE_SOURCE_OTHERS; + desc.subtype.source_subtype = CORESIGHT_DEV_SUBTYPE_SOURCE_TPDM; desc.ops = &tpdm_cs_ops; desc.pdata = adev->dev.platform_data; desc.dev = &adev->dev; diff --git a/include/linux/coresight.h b/include/linux/coresight.h index bf70987..dc19a44 100644 --- a/include/linux/coresight.h +++ b/include/linux/coresight.h @@ -62,6 +62,7 @@ enum coresight_dev_subtype_source { CORESIGHT_DEV_SUBTYPE_SOURCE_PROC, CORESIGHT_DEV_SUBTYPE_SOURCE_BUS, CORESIGHT_DEV_SUBTYPE_SOURCE_SOFTWARE, + CORESIGHT_DEV_SUBTYPE_SOURCE_TPDM, CORESIGHT_DEV_SUBTYPE_SOURCE_OTHERS, };