Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp573544rdb; Sun, 18 Feb 2024 01:44:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXs/08AswTe0oiO3axTXYzMUGcpqj8L05CtntfGcSFskCuOfJ1AhW1e+BVoAd9AYWPq8c8r/119gQ6d9t8QLaJk1KuZO9ZdjiWscorboQ== X-Google-Smtp-Source: AGHT+IHth5M9Wafl+PFfHa0sZqeS1IcTcR/iEJlN3XKv06H57I4FTUlbnZamQZDCkgmr6IGEsrjl X-Received: by 2002:a05:6a21:1789:b0:1a0:9939:c7f9 with SMTP id nx9-20020a056a21178900b001a09939c7f9mr1662657pzb.13.1708249454464; Sun, 18 Feb 2024 01:44:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708249454; cv=pass; d=google.com; s=arc-20160816; b=dAk9fkCo2XI2khhGmHPRoOM/SW4SPNH22f+bPrcimq5OPelB1DKHZK7sMuIcUTzb1a dQzB4X683VknEFvkU9wRfqzVQ2sHHuSgOJBYvGrnaFw65LFgex9RWjAXAAJNtpABR7c9 OtNx5Zgln6TUglE6ZZtpGAIX9mwOB9JCq8jH9MNNeLJlNdfpyy0h+TOW/dZHdGZRayqo 9whyLUKmOQfooKOi01OldFbxR/sIBJqI2uFcN0wQmh1h9V1t/HvOCDvYtbt1zVTL2eRB e/VvOhj87/w42yfmOemRUnDlD8f3MKrDDIAsvoKegRJlQyc7Od9/V+KeCffMxaG/sUVv x+lg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=bCpEG/iEJ6alJLg25zF1reZRTz9l9hb9cAwuGjH46hE=; fh=0/5FjQMnCHBU+2ZYX17dyQjH+n4Tdf/C6RXbKp00THo=; b=AnrCkPn3ugblwJQm5Dsz38RJolrT49pDe/p6eGlamQX0Vt8DkpRq50qlBELQlPmxBC 6jMhI7blYyF2MkL2UW8pzNUYsEeODdCM4SwZUYc/jc3+ueVWvtnk5srJ6DDZtwQmaIeY zLGzqgW93VNbom1b4h1PcUSQ5BWpVlV/oIdESWgfrgWySBOT1VjuzT28oLXAobnJDGq9 3lu6Kjyr6l/UYKdQHg0BvDQYQzE15BfVI4KJrGiXHQbw06cCuev499cTH2nCqVEGK1KM JXCduZK0IxVI+pP/u0spc43fRlM3Js8+nb8rNGt1hv7P2UGZlyEQeHe/gwrZtWCWp+bz rf0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hVZMYuGS; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-70325-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70325-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k1-20020a170902c40100b001db70a99e90si2758818plk.430.2024.02.18.01.44.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 01:44:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70325-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hVZMYuGS; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-70325-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70325-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2BBC12837D3 for ; Sun, 18 Feb 2024 09:44:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 103C81CFAB; Sun, 18 Feb 2024 09:44:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="hVZMYuGS" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BAE4F1CF81; Sun, 18 Feb 2024 09:43:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708249439; cv=none; b=NLbkma4CDACjSltrzvfJ1aRyamRPfxH/oQCKTHWZv6QK4ZCVDaQ112/xKxkZHY3Fx5B7OZfQkecKX2P/Y7fmxmBU68Wtji8fsiSfXAfTeYatWvrYvDkv/z/Ui+D8efopEA4jwPzbbync0vdUDMfntrhSCZXFuGskUUyGUTMbvbs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708249439; c=relaxed/simple; bh=Gi/exkqkuNLSlzGPvDv0MkpDTsni9qUMHtNAHCPhiN4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XUCBRyo4RJ0q+onCcJ3mK2fZX5GqqtpcB16mAYoR+s3EcbYOuOLjcGCbNXi7q9BLZj+LjrY39HHObtCrsFuzQuh4IW9T4Epnim58FZlkwuC3DiwGzgKXnaq1r/kC5BatRHQQxMvKuy6/rQdyTUGqD1/oXkugBtzsdFSa10+1tJc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=hVZMYuGS; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41I9N53P016845; Sun, 18 Feb 2024 09:43:48 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-transfer-encoding:content-type; s= qcppdkim1; bh=bCpEG/iEJ6alJLg25zF1reZRTz9l9hb9cAwuGjH46hE=; b=hV ZMYuGSoxYIHKWVwRnmxFgdtU/yRVIgbpusFwv47knJtelosx4jlRF/fqCpNDiZfJ TheF/fyEZ8DyA/4Ip6IqWlOEYfF/VNmJUs44IbGgFtJDYpxU5V5oY4l4NFIGd9b7 ZtipZ6hM7DPi7U4AAYan0KSbnEE+/oF7bKs2simfoA6EOZnCOwj72UtF9RR0LhYm LW9eGXSRyw2Z0ZQ5Io7CP+gCamnntVX7fG5j8uHy+MVsiIeZakznUbSuwksChzOM tzSsX8Qx/XcouOBpMArTyoz+0q1MryNFQwsALl6jtZpLWGDgb4feyNOLHQbQmEgi dUJOiHrC0F4aCifRF0FA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wajgk9ruf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 18 Feb 2024 09:43:48 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41I9hl5J024628 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 18 Feb 2024 09:43:47 GMT Received: from hu-jinlmao-lv.qualcomm.com (10.49.16.6) 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.1118.40; Sun, 18 Feb 2024 01:43:46 -0800 From: Mao Jinlong To: Suzuki K Poulose , Mike Leach , James Clark , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Mao Jinlong" , Tao Zhang , Alexander Shishkin CC: , , , , Subject: [PATCH v3 2/2] coresight-tpda: Change qcom,dsb-element-size to qcom,dsb-elem-bits Date: Sun, 18 Feb 2024 01:43:20 -0800 Message-ID: <20240218094322.22470-3-quic_jinlmao@quicinc.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240218094322.22470-1-quic_jinlmao@quicinc.com> References: <20240218094322.22470-1-quic_jinlmao@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) 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: GaCgWnGxqf4R4NEJflGjsFzsadNEpYBN X-Proofpoint-ORIG-GUID: GaCgWnGxqf4R4NEJflGjsFzsadNEpYBN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-18_07,2024-02-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 impostorscore=0 adultscore=0 mlxlogscore=999 spamscore=0 malwarescore=0 lowpriorityscore=0 bulkscore=0 mlxscore=0 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402180073 Change qcom,dsb-element-size to qcom,dsb-elem-bits as the unit is bit. When use "-bits" suffix, the type of the property is u32 from property-units.yaml, so use fwnode_property_read_u32 to read the property. Fixes: 57e7235aa1d1 ("coresight-tpda: Add DSB dataset support") Signed-off-by: Mao Jinlong --- drivers/hwtracing/coresight/coresight-tpda.c | 4 ++-- drivers/hwtracing/coresight/coresight-tpda.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-tpda.c b/drivers/hwtracing/coresight/coresight-tpda.c index 6863afe7ca94..7739bc7adc44 100644 --- a/drivers/hwtracing/coresight/coresight-tpda.c +++ b/drivers/hwtracing/coresight/coresight-tpda.c @@ -69,8 +69,8 @@ static int tpdm_read_element_size(struct tpda_drvdata *drvdata, struct tpdm_drvdata *tpdm_data = dev_get_drvdata(csdev->dev.parent); if (tpdm_has_dsb_dataset(tpdm_data)) { - rc = fwnode_property_read_u8(dev_fwnode(csdev->dev.parent), - "qcom,dsb-element-size", &drvdata->dsb_esize); + rc = fwnode_property_read_u32(dev_fwnode(csdev->dev.parent), + "qcom,dsb-element-bits", &drvdata->dsb_esize); } if (tpdm_has_cmb_dataset(tpdm_data)) { rc = fwnode_property_read_u32(dev_fwnode(csdev->dev.parent), diff --git a/drivers/hwtracing/coresight/coresight-tpda.h b/drivers/hwtracing/coresight/coresight-tpda.h index 19af64120fcf..c6af3d2da3ef 100644 --- a/drivers/hwtracing/coresight/coresight-tpda.h +++ b/drivers/hwtracing/coresight/coresight-tpda.h @@ -36,7 +36,7 @@ struct tpda_drvdata { struct coresight_device *csdev; spinlock_t spinlock; u8 atid; - u8 dsb_esize; + u32 dsb_esize; u32 cmb_esize; }; -- 2.41.0