From patchwork Mon Jun 12 07:07:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tao Zhang X-Patchwork-Id: 106318 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2434439vqr; Mon, 12 Jun 2023 01:29:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ55hye9w4Ay+2tyEYI9poKMgTuUMsdzKCr1YSPXOFQrNHb7ypm+LJFreqd0VyY3IFzgEiLP X-Received: by 2002:a05:620a:a4a:b0:75f:1456:9d5a with SMTP id j10-20020a05620a0a4a00b0075f14569d5amr6111486qka.71.1686558578078; Mon, 12 Jun 2023 01:29:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686558578; cv=none; d=google.com; s=arc-20160816; b=pejG1DKG5cQDt9uzd36NkipFCGHH8AFrqajmL9BVWRX2RR3flDmd3+Hp1KixZ+lcMS 2LFUSwKuFi6vMNecp6cp6Dz2RwQFFH1B4865ubQL9I7uB0vhETPzkWEE24KNVRDKvTnK QiP1FhIa8MpsNoUofOtOV5/eWOcHlYozHyfENMZ4cDujt6hjkUrVRUbk96TiTv0dFbga F7U9ueg9aHTD2UiGaavbCtupoXSZ8Qr0lCEsQeglBfloTYxh0T0dGDDzpQc4/fH3AViG OqZb7OjZCXo1bwab8F/iDitM/KgEMF5b3Y1pQoj9aANAVz+tdiPscFYvJ0pFQfRgiSxH TX5g== 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=mcHkfg4Mfqa89aDgB0OvEW5s0d+aFsZu3ljZvfu2q2Q=; b=T0jt9s+zitlH9kRc0KfmcbFqI0LxTv+35bhd446ETZAIGaRdKIk0V7x75z1kUONXBy rSSSWYWpgQ+v7OC5FHqtYhAIHM/5zypGe4mnnE1koT83YyugMldHMZla2XdgyvZanKJB ADopA+roSEhY90tOnrrscIoAkXX+lXlxFHc6BKkNFXOaRrDQlHjUwjkYN7gp/s4OKSCr ywRHU57Bhy5hQ1V48C4KmhPbROw4gFK41iDJp5ZOHmrPI7ERhiunoF20pSLYk9HXu93q 9NI6bdUlfU8uLjhAKCtq7P82eyoGTbEbRdjQ3WREVYwmMdPc37lw/1tYUF+XfDWOXqcd dqHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=RwK6v+2t; 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 r11-20020a17090a454b00b002563fbb8a85si6823027pjm.111.2023.06.12.01.29.25; Mon, 12 Jun 2023 01:29:38 -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=RwK6v+2t; 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 S230163AbjFLIKb (ORCPT + 99 others); Mon, 12 Jun 2023 04:10:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233390AbjFLIKC (ORCPT ); Mon, 12 Jun 2023 04:10:02 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30B54C0; Mon, 12 Jun 2023 01:10:00 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35C57E7Q009309; Mon, 12 Jun 2023 07:08:30 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=mcHkfg4Mfqa89aDgB0OvEW5s0d+aFsZu3ljZvfu2q2Q=; b=RwK6v+2tde3GX2X5OE7pWJ0eIN0D6espJK5A38kyJbDgl7k9W2PUDNw2ws1Yg0wX4bY5 G6SjrDjIMfSXImT18vOGcpl2alvQ724Z4JlXiTVUTuGYTWKl6XIyMuMusqhAm5Tobn9z MLZeMPnaJAdAaKW8QlgY+Vf1iutuuMX5pY7oYmiYjLWAgLLwbiAQSJSoS0l7X4RC6CJp TqHsB7AUHKR5svJgn5NlkPSPUwP5DCRv7hc3R4fnA2F1ivGcpXeOwOuRPxafH+3Krv/A ktzUZb6pDMSHMHSYT9fAGeAGi2Qn4VAHC3gRjv/MFdGFGsAmXMkmXwmktlGzrfDjf36r Rg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3r4hjbtk05-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Jun 2023 07:08:30 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 35C78TXv020382 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Jun 2023 07:08:29 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.986.42; Mon, 12 Jun 2023 00:08:23 -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 v5 03/13] coresight-tpdm: Introduce TPDM subtype to TPDM driver Date: Mon, 12 Jun 2023 15:07:36 +0800 Message-ID: <1686553666-5811-4-git-send-email-quic_taozha@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1686553666-5811-1-git-send-email-quic_taozha@quicinc.com> References: <1686553666-5811-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-ORIG-GUID: Bo4fJ7mEZnRGFBO5j1GWzJLbNvqswe2Q X-Proofpoint-GUID: Bo4fJ7mEZnRGFBO5j1GWzJLbNvqswe2Q X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-12_04,2023-06-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 lowpriorityscore=0 adultscore=0 suspectscore=0 mlxlogscore=931 clxscore=1015 bulkscore=0 phishscore=0 mlxscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306120060 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768484847244264074?= X-GMAIL-MSGID: =?utf-8?q?1768484847244264074?= 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..23b18c2 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 949aa24..29cd6d8 100644 --- a/include/linux/coresight.h +++ b/include/linux/coresight.h @@ -61,6 +61,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, };