From mboxrd@z Thu Jan 1 00:00:00 1970 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 7A086C2BD09 for ; Tue, 9 Jul 2024 04:06:36 +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:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:CC:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cuu2bpuOvAkFqLc8LvHG+iaz1VSGPDczMvb/f1B4aBk=; b=gb5zeYr6X5qR0m3284obKkHfp5 dDiDFxSPXV1t2KQi+YcDVrsSD7fZKJT5aAcCvifPkloOLLHMPeyqECpPphWin8eVA0XnwpFBq0NL6 ct47KSwRum9ho1dC02ZApaFOIq7W5ZGAlWgOpg5r4YbLO14N3ixRiYqj0+rrGCBgggVSmcv46OM8k fu+6bkDDOu0aR7BICYdUR4uHoWj9lc0XnvQAofZQLqMTU4B1LexspJ0/fiyPNCS+YtkbZzXiP+Ygx 07jr8rU3tZn/Jurhf5N9bfK11nYIUH1GskjO+wsWP+KzczopHQZHAgFFV84nPb3azlgKx6X/ETy4k KhzDrkBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR27R-00000005ogS-2KMt; Tue, 09 Jul 2024 04:06:21 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR27B-00000005oeZ-0eJh for linux-arm-kernel@lists.infradead.org; Tue, 09 Jul 2024 04:06:06 +0000 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4693QcTl019517; Tue, 9 Jul 2024 04:05:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=qcppdkim1; bh=cuu2bpuOvAkFqLc8LvHG+iaz 1VSGPDczMvb/f1B4aBk=; b=dg0rbrOpUHUdyRl+pBoNijqg8BIWiQ89yGaQzJB+ l6gz2MX6cllc7j8b90kEuKsLIg3kcrtURxzBoVjaXl3kQ4nc+R9Fr1hs6jT7XYG5 6Qrv7UwJn4J4p8QUJZXCWi3Cfy2MAztlqWMGqsIR8fXcVmJRK9Yx1AEhXAfsPWEG gZOGBTI4i+40fEy8ZgjTWhNOjr+o1RkwVixshIG10++G/jYwh9BupdU0z/m9F0pZ rW/OBc/KqRi8J/j93YvvyPpHeHqLwZSqiD2vfpO9e5jwiYCbrBNV2TN+M69MT2Dm VDr8tBOgcCyOQjyxFZRG1nOs6qnCWB5WFUbyWWq2+6Yk5A== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 406wgwn94m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Jul 2024 04:05:54 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 46945q4g009025 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 9 Jul 2024 04:05:52 GMT Received: from jiegan-gv.ap.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.1544.9; Mon, 8 Jul 2024 21:05:47 -0700 Date: Tue, 9 Jul 2024 12:05:43 +0800 From: JieGan To: Krzysztof Kozlowski CC: Mathieu Poirier , Suzuki K Poulose , Alexander Shishkin , Mike Leach , "Rob Herring" , Krzysztof Kozlowski , James Clark , Jinlong Mao , Leo Yan , , , , , Tingwei Zhang , Yuanfang Zhang , "Tao Zhang" , Trilok Soni , "Song Chai" , Subject: Re: [PATCH v2 3/4] Coresight: Add Coresight Control Unit driver Message-ID: References: <20240705090049.1656986-1-quic_jiegan@quicinc.com> <20240705090049.1656986-4-quic_jiegan@quicinc.com> <9b502ba5-7042-424e-b0a2-5659e4064462@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: M18-D_-Qvg3WEgDOf71E8l-bUyNnTU2w X-Proofpoint-ORIG-GUID: M18-D_-Qvg3WEgDOf71E8l-bUyNnTU2w X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-08_15,2024-07-08_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=811 mlxscore=0 adultscore=0 malwarescore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 phishscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2406140001 definitions=main-2407090024 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240708_210605_334175_EC5190DC X-CRM114-Status: GOOD ( 23.48 ) 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 On Mon, Jul 08, 2024 at 12:44:43PM +0200, Krzysztof Kozlowski wrote: > On 08/07/2024 05:16, JieGan wrote: > > > >> > >>> + > >>> + drvdata->base = devm_ioremap(dev, res->start, resource_size(res)); > >> > >> Use proper wrapper for this two. > > Replaced by: > > res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > > drvdata->base = devm_ioremap_resource(dev, res); > > Why? > > Use the wrapper. Sorry, I misunderstood the "wrapper" before. Just wrapped drvdata->base by void __iomem *base; > > > ... > > >>> + > >>> +static struct platform_driver ccu_driver = { > >>> + .probe = ccu_probe, > >>> + .remove = ccu_remove, > >>> + .driver = { > >>> + .name = "coresight-ccu", > >>> + .of_match_table = ccu_match, > >>> + .suppress_bind_attrs = true, > >> > >> Why? > > Sorry, I dont get the point here. > > You do not get the point why I am asking "why?"? > > Why do you need it? > > > We dont need automatic bind/unbind, so the suppress_bind_attrs sets to true. > > But I need it... > > > We need configure some settings before we register the device. > > Hm, is this expected for coresight devices? The coresight device cannot be unbinded independently. As we known, The coresight devices collaborate to form a path, from source, link, to sink. If an unexpected unbinding occurs for a coresight device that is part of the path, it will disrupt the entire path. I think it's the reason why the coresight device driver does not need automatic bind/unbind. Here is the previous discussion for suppress_bind_attrs: https://lore.kernel.org/all/1453753248-1716-1-git-send-email-mathieu.poirier@linaro.org/#r > > Best regards, > Krzysztof > Thanks, Jie