Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1724675rdd; Thu, 11 Jan 2024 07:32:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IEBVojEilICqB6IHcmaqQd6A4KJxfSPc+dOL+3vP2S0CeicumprpDuPyyGnBrzIt2G2YJAe X-Received: by 2002:a05:6a20:3ca1:b0:19a:2f05:5363 with SMTP id b33-20020a056a203ca100b0019a2f055363mr1160619pzj.76.1704987130929; Thu, 11 Jan 2024 07:32:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704987130; cv=none; d=google.com; s=arc-20160816; b=R9pjTbtSIW3XGHrWYLLEwTo4szoXtxSDDdVZqrbICZylUEd2/Nln5m00WO6Ve4lmlm r50pGSLf4RR8dFGN3SI+XQQrG6KehG0WgIDseXYKhnPdbD7c2lNO8lQKfEYpfocN0EsX vZWvczVp1STFNtPDTq/qHT4fISwg85LU3qd1wK5JRUQ5qvi3PMYTGIoDL5PX5EIi6I3V LlXVEQFsElWKDMPtFgtSffkcJhCd3odjsagrR8e6vmARVtDzk9vz2V0QQAetoeiRPva4 af7ECJmcBNDfIFy3+3R9K9ZvtLYqRpJ8bQ71RxNgbI4W+ZkTMlmbL2Bi6a+kvjKz7Q5f rfCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=tLmJlo9a7XOpcogJ276/ISRo79ph673bZD10y+Fx8EM=; fh=Gm+BhLlBMcYlh0/2UqyFJV+mYA8zZ48Amo1rthTQ4H8=; b=ku14ijykR0MMladOuIoqFwDFvvvttjQexxyNubuc+K2ZJFJX8P2/h5sNG/mQ9whDtV EHWGGVKRE1z/HbILlb5eo5zayzG9QZVcVhad3/DzgAdHZ5viRDd5k9eOqz9O8r/2zIE/ QtwU6P1QVFgFTHe0qAyZTDdDsspgoNNMemsugjO7LIXv7QS3aD01JogXYkaIlgH6PzYQ Oz4g7srGisOFXaLY2Rkv+enjS2EcQsg8PaZmRKsFmN3+bnyguU8dlgB1XyG/mw6R+Ovc EoNAGEW5XYE9LOJnHAekD+NvMmfgilplrz9lstHwt9GGg+KsOB2XCsFxjxmWC8IthCQS aAvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Xj5PU+4T; spf=pass (google.com: domain of linux-kernel+bounces-23795-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23795-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f128-20020a625186000000b006daf91964e8si1184621pfb.112.2024.01.11.07.32.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 07:32:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23795-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Xj5PU+4T; spf=pass (google.com: domain of linux-kernel+bounces-23795-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23795-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 C26C4284ADE for ; Thu, 11 Jan 2024 15:31:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0E2A4CE0A; Thu, 11 Jan 2024 15:31:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Xj5PU+4T" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 DD2AC4BAB0; Thu, 11 Jan 2024 15:31:01 +0000 (UTC) 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 (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40BDeICA013870; Thu, 11 Jan 2024 15:30:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=tLmJlo9a7XOpcogJ276/ISRo79ph673bZD10y+Fx8EM=; b=Xj 5PU+4TrVzZyncEd26+c6NVlxOQ49eA3PLOmanRaojLh2RWPvZAT09SPWWVftjt3A n0TL29mBXoPnAhGzXsJA26PyBYr/3LZSvYMvEvD1qfGPLVyzQErB3ygJaIeqPXXx M76HGIcInoeLs/D4ha3D1U8Tn+KZYgGEWCY/eOfzQvFkP86qfjY/gOUFM+vDF+Og gEoHGDFsot45kk/ggePlsUazxpyleLE9Jb3QzB9RrDsA3H1vvk0VUMOZYYM9mv+I hnzEZH+huEjBh7HVhewOZq+pvuUdHPBUbjcN63lqcIxXg2gLa8+7vAcBOgA7C3Jg FFnsFXvn8/HPv66HQoLQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vjcsk0xhj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Jan 2024 15:30:57 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40BFUu1H001016 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Jan 2024 15:30:56 GMT Received: from [10.253.37.156] (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.40; Thu, 11 Jan 2024 07:30:52 -0800 Message-ID: Date: Thu, 11 Jan 2024 23:30:48 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/6] arm64: dts: qcom: ipq9574: Add PPE device tree node Content-Language: en-US To: Krzysztof Kozlowski , , , , , CC: , , , , , , , , , , References: <20240110112059.2498-1-quic_luoj@quicinc.com> <20240110112059.2498-2-quic_luoj@quicinc.com> From: Jie Luo In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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-ORIG-GUID: m18IytmkWCOaHnH4b1m_JtGxV9MuEBgm X-Proofpoint-GUID: m18IytmkWCOaHnH4b1m_JtGxV9MuEBgm X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 spamscore=0 mlxscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 phishscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401110121 On 1/10/2024 7:40 PM, Krzysztof Kozlowski wrote: > On 10/01/2024 12:20, Luo Jie wrote: >> The PPE device tree node includes the PPE initialization configurations >> and UNIPHY instance configuration. >> >> Ther are 3 UNIPHYs(PCS) on the platform ipq9574, which register the >> clock provider to output the clock for PPE port to work on the different >> link speed. >> >> Signed-off-by: Luo Jie >> --- >> arch/arm64/boot/dts/qcom/ipq9574.dtsi | 730 +++++++++++++++++++++++++- >> 1 file changed, 724 insertions(+), 6 deletions(-) >> >> diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi >> index 810cda4a850f..5fa241e27c8b 100644 >> --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi >> +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi >> @@ -775,16 +775,734 @@ nsscc: nsscc@39b00000 { >> <&bias_pll_nss_noc_clk>, >> <&bias_pll_ubi_nc_clk>, >> <&gcc_gpll0_out_aux>, >> - <0>, >> - <0>, >> - <0>, >> - <0>, >> - <0>, >> - <0>, >> + <&uniphys 0>, >> + <&uniphys 1>, >> + <&uniphys 2>, >> + <&uniphys 3>, >> + <&uniphys 4>, >> + <&uniphys 5>, >> <&xo_board_clk>; >> #clock-cells = <1>; >> #reset-cells = <1>; >> }; >> + >> + qcom_ppe: qcom-ppe@3a000000 { > > qcom is definitely not a generic name. > > Node names should be generic. See also an explanation and list of > examples (not exhaustive) in DT specification: > https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation Ok, will update to use a generic name in the link, Thanks for the guidance and the link. > > >> + compatible = "qcom,ipq9574-ppe"; > > I don't see this documented. I don't see reference to posted bindings. The DT bindings patch was part of the driver series as below. This property was documented in the DT bindings patch. Attaching it to DTSI series should make it more clear. If this is fine, I will update the DTSI series with the DT bindings patch. https://lore.kernel.org/netdev/20240110142428.52026d9e@kernel.org/ > > Please run scripts/checkpatch.pl and fix reported warnings. Some > warnings can be ignored, but the code here looks like it needs a fix. > Feel free to get in touch if the warning is not clear. > > Ignoring this warning is a sign you don't really check your patches > before sending. We have run the checkpatch.pl on the whole patch series including this device tree patch set together with PPE driver patch set. As mentioned above, I will add the DT bindings patch into the DTS series. This should help with the checkpatch issue. > >> + reg = <0x3a000000 0xb00000>; >> + #address-cells = <1>; >> + #size-cells = <1>; >> + ranges; > > Put after reg. Ok. > >> + status = "okay"; > > Drop Ok. > > All of above comments apply to your entire patchset and all places. > > Looking at code further, it does not look like suitable for mainline, > but copy of downstream code. That's not what we expect upstream. Please > go back to your bindings first. Also, I really insist you reaching out > to other folks to help you in this process. > > Best regards, > Krzysztof > We will do internal review of the gaps and update the patches as per your comments. Thanks for the review comments.