From patchwork Wed Oct 9 08:50:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Songwei Chai X-Patchwork-Id: 13827907 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 08106CED628 for ; Wed, 9 Oct 2024 08:53:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=huXzR7MJu41/pOZVqOLXB7PkNl9JlOLHJ+ROg55cM54=; b=hkUnUUkWisCKN26L5pn4J4CyLi RqozHOTYKWXWwKQVogZHjAz7WN1kB6IJvppAPuC0eCE5J6WBxwM2sOKi6znIcnT92ON+NWhEWWgkL orkiefpNf6FBnypXyFf0Wn5/8robPqMvtKqJC6n0G/CY3WniliIbYgnrixHtzWfpoQe6hXNnn6uOH EMOZ/zqBAqnoUBUThMiLJi87crHb9KUCEbz/9bHs84Tfwl360GN2EnbXwYGSVr7h6dpcZb/lPwPkf FUn42tXBkIOvlzm1yC31isnd1+Uc7LynEP9TX/uW7M4ti5MQ82HQCYAmWjHYIjndjR/ePJoQ9gcVO lYvjlzLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sySRC-00000008YnD-062b; Wed, 09 Oct 2024 08:52:54 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sySPh-00000008YL6-1hT4 for linux-arm-kernel@bombadil.infradead.org; Wed, 09 Oct 2024 08:51:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=huXzR7MJu41/pOZVqOLXB7PkNl9JlOLHJ+ROg55cM54=; b=OkgIp4d3HezSP/Qz6QyubPjJRq spzaDdbnifAbOcc4CNV1AAtxVhecf7WO8FroyM+F/nq11W24gISs0dB0BeJ0qK4e5bqY6YFlo5bCU iKb7v2v9TPZwClb3FrcJJS6Tc3oxhR27j5wDcrxxXi2H/KjIV4G4Y2P6+CPzBnog+1z5Ie5iVgG4m g41WmQFOWaCiTjBS6tNYHd+go1pbxbZev5cDQqmtjyYdZ9pRKrjdAqV6PidaUAS8NQP/OS4z3HBJp eZMR91hP+jL3S00YhM7xPaqV9wgVvhhbpKxa8i4OWcvhG7TQMP9dLk+rv5GQMPW2GUb0fo94/vwts lvH9CCSA==; Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sySPe-00000004sFO-0HhK for linux-arm-kernel@lists.infradead.org; Wed, 09 Oct 2024 08:51:20 +0000 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 498LWTBW006638; Wed, 9 Oct 2024 08:50:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=huXzR7MJu41/pOZVqOLXB7 PkNl9JlOLHJ+ROg55cM54=; b=NCLndqVzdd65nxEJ+CCxxCT+3CeGyEeRl3W05T oc4Od/z+YeU8v8bcPRXNNm1i5d2wXAWTGpDrQo93JCxtnn96VVsNc7e3D/+6uHvj 8u27d6ehQE4vXEzghwGnWPgCiqg55CROrJGgMvu8nDnVaj0xXU8oIvkxAou0qyUY Xpc92UYmqwTkk+s2EaPCCiFlwAD6526SSff64/vl19HWFMYHk2rgfQlk1GmjLn4Y JpPAYLojk0q6+iwulsLkRuDILkvRcjGyuyaLirPzWh1+VX01huZfOja3T7kJM5xX aie7/mu91sYkdtqsy7LCnQwV45xVVDl9PNeLqC8WjK2rgrDA== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 424cy7ep80-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Oct 2024 08:50:56 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4998otRM004825 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 9 Oct 2024 08:50:55 GMT Received: from 3b5b8f7e4007.qualcomm.com (10.49.16.6) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Wed, 9 Oct 2024 01:50:54 -0700 From: Songwei Chai To: Suzuki K Poulose , Mike Leach , James Clark , "Alexander Shishkin" , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Songwei Chai , , , , , Subject: [PATCH v1] Coresight: Narrow down the matching range of tpdm Date: Wed, 9 Oct 2024 16:50:39 +0800 Message-ID: <20241009085042.1098-1-quic_songchai@quicinc.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: KoIKKPGSblHW05eDvaz0IsulwLo0Dxq9 X-Proofpoint-GUID: KoIKKPGSblHW05eDvaz0IsulwLo0Dxq9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 adultscore=0 mlxscore=0 lowpriorityscore=0 suspectscore=0 spamscore=0 priorityscore=1501 clxscore=1011 bulkscore=0 malwarescore=0 mlxlogscore=956 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410090057 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241009_095118_448106_EF9BD090 X-CRM114-Status: GOOD ( 14.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The format of tpdm's peripheral id is 1f0exx. To avoid potential conflicts in the future, update the .id_table's id to 0x001f0e00. This update will narrow down the matching range and prevent incorrect matches. For example, another component's peripheral id might be f0e00, which would incorrectly match the old id. Signed-off-by: Songwei Chai --- drivers/hwtracing/coresight/coresight-tpdm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-tpdm.c b/drivers/hwtracing/coresight/coresight-tpdm.c index b7d99e91ab84..8e2985d17549 100644 --- a/drivers/hwtracing/coresight/coresight-tpdm.c +++ b/drivers/hwtracing/coresight/coresight-tpdm.c @@ -1308,8 +1308,8 @@ static void tpdm_remove(struct amba_device *adev) */ static struct amba_id tpdm_ids[] = { { - .id = 0x000f0e00, - .mask = 0x000fff00, + .id = 0x001f0e00, + .mask = 0x00ffff00, }, { 0, 0, NULL }, };