Message ID | 1695882586-10306-2-git-send-email-quic_taozha@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3138347vqu; Thu, 28 Sep 2023 00:45:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFMsI1lJhau/+qi/2cfsgA7HcPfGp5wATxHPPXJeczpMSOiuy+Z1d29/NuoplS4PXQeDzDB X-Received: by 2002:a05:6e02:1012:b0:352:5066:55b1 with SMTP id n18-20020a056e02101200b00352506655b1mr331320ilj.6.1695887103060; Thu, 28 Sep 2023 00:45:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695887103; cv=none; d=google.com; s=arc-20160816; b=BibBWvtNUM1B1JAjcYwSq3Nh3BWpQA9XGhE8gc5d79+MENfFyQjoAdImzu5B5CxDHS IgSF+/8dMW6A/grhhkY5oUaU8ZouEXV+CGhPmWK1TdDXBjJsXvZxny1RpdrAS7QpqujD 5RNe/NFmRVdpAXkfYy3R+1ZWxs2KMJFSgp+4gqMnW7oLNcUxtjVwGWMyZasMRlOyuySg mt+oVLuuZWrmt/FRPcslOixd7wd2UwDhgwHZgOGzw4EDDFMJPrksv2Yn2caDjTugHfrj bazudov6PS3HEl3CAIrExcm8IOssbmi6vomFe03Fz+/WA5TKku/dA6U1Km/p8RxgpRqL M/dA== 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=UbsocO7/jg8ft/iNc78FVWIgp+v//xM+Z+tpH/Ss4uk=; fh=n/cywDBrV54XLbQm/aXN5C7dSeQ+T0voxuinVQDvrSM=; b=D42AQpYufqN13bfFoI2Z4nQdCVjmUWmiiMo1kYf2dS7sKa3wq0TDPFQKNuAfMmfcHK /OndTSjHOVTxxhnHw+GJQl0sOch0w5AKKVwcEJ8L7RP/whyV2SkjEBEaCK38wBi+p1eo NjxUP9rt8hc0npGPkYYbmNkqGZtsyrW1GOqYinoujmS6wS3Rki1s+UdpBEBxgtUDtvG+ dtmr7DsE3iqUEqpLIBb1qXxL6jT3r1Rj6KgPFVYj9l6W+W6hs+LQqRdlAT/ONIL9YyLP duL/aM2gKXz5McBamVaHgVpfe21ZgSW3hUrZWWMKYskrCIQsuXoXUVYCBeMnN3F7ZbVm 2LxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=nNMLgbfy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id 21-20020a630d55000000b005649cee422esi18639552pgn.464.2023.09.28.00.45.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 00:45:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=nNMLgbfy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 87E1C8025825; Wed, 27 Sep 2023 23:31:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230358AbjI1GbL (ORCPT <rfc822;ruipengqi7@gmail.com> + 20 others); Thu, 28 Sep 2023 02:31:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230350AbjI1GbA (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 28 Sep 2023 02:31:00 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB6A8E5; Wed, 27 Sep 2023 23:30:53 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38S5dvEM010566; Thu, 28 Sep 2023 06:30:19 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=UbsocO7/jg8ft/iNc78FVWIgp+v//xM+Z+tpH/Ss4uk=; b=nNMLgbfy+zUCtZk+G4nyfnsSBZ4tGuRo3tthCP7RL95SwOxcE2AAZYN5C7VmNyQDS/va /eRXJ2NnPL1PhfUtBuZTO8uKLRmJDEf5UdytzSFBD4KbJ84XaIHd85954F0sC+Bq+V5P jVKTmxf234CrhL/CA8yX9xVC9mYdGTtEJcH5VySOkim+uB8eHLG3/jLdD1ll4dnaBeXc B+9jg7w17hlJ7k66iYXizxezZ5RD3k13UC9Ov+AfaGM5kzxg0Xf7FfX6/UZ8cUSxxTSk IMi6mONIFTBu6QADFOodgACWsSEiiWV4acFJxjOz07Z56Qf4cNM7IjisfnAZADjLsScv FA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3td3gg82sx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Sep 2023 06:30:19 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38S6UIl3014258 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Sep 2023 06:30:18 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; Wed, 27 Sep 2023 23:30:13 -0700 From: Tao Zhang <quic_taozha@quicinc.com> To: Mathieu Poirier <mathieu.poirier@linaro.org>, Suzuki K Poulose <suzuki.poulose@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Konrad Dybcio <konradybcio@gmail.com>, Mike Leach <mike.leach@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> CC: Tao Zhang <quic_taozha@quicinc.com>, Jinlong Mao <quic_jinlmao@quicinc.com>, Leo Yan <leo.yan@linaro.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, <coresight@lists.linaro.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>, Tingwei Zhang <quic_tingweiz@quicinc.com>, Yuanfang Zhang <quic_yuanfang@quicinc.com>, Trilok Soni <quic_tsoni@quicinc.com>, Hao Zhang <quic_hazha@quicinc.com>, <linux-arm-msm@vger.kernel.org>, <andersson@kernel.org> Subject: [PATCH v10 01/13] coresight-tpdm: Remove the unnecessary lock Date: Thu, 28 Sep 2023 14:29:34 +0800 Message-ID: <1695882586-10306-2-git-send-email-quic_taozha@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1695882586-10306-1-git-send-email-quic_taozha@quicinc.com> References: <1695882586-10306-1-git-send-email-quic_taozha@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 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: dHuUyj9WaUTqTKlAhQnWUyKY9eyNkyd6 X-Proofpoint-ORIG-GUID: dHuUyj9WaUTqTKlAhQnWUyKY9eyNkyd6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-28_03,2023-09-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 priorityscore=1501 bulkscore=0 malwarescore=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 mlxscore=0 spamscore=0 adultscore=0 phishscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309280053 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 27 Sep 2023 23:31:18 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778266515195587603 X-GMAIL-MSGID: 1778266515195587603 |
Series |
Add support to configure TPDM DSB subunit
|
|
Commit Message
Tao Zhang
Sept. 28, 2023, 6:29 a.m. UTC
Remove the unnecessary lock "CS_{UN,}LOCK" in TPDM driver. This
lock is only needed while writing the data to Coresight registers.
Signed-off-by: Tao Zhang <quic_taozha@quicinc.com>
---
drivers/hwtracing/coresight/coresight-tpdm.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/hwtracing/coresight/coresight-tpdm.c b/drivers/hwtracing/coresight/coresight-tpdm.c index f4854af0431e..b6456120b76a 100644 --- a/drivers/hwtracing/coresight/coresight-tpdm.c +++ b/drivers/hwtracing/coresight/coresight-tpdm.c @@ -114,11 +114,9 @@ static void tpdm_init_default_data(struct tpdm_drvdata *drvdata) { u32 pidr; - CS_UNLOCK(drvdata->base); /* Get the datasets present on the TPDM. */ pidr = readl_relaxed(drvdata->base + CORESIGHT_PERIPHIDR0); drvdata->datasets |= pidr & GENMASK(TPDM_DATASETS - 1, 0); - CS_LOCK(drvdata->base); } /*