Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp264700rdd; Tue, 9 Jan 2024 03:36:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IEcG28TFqfCzKV8x9fVdsjvLR841v4m71fydwxnm7xwugE3Ni9+MFghkjOQSTD0nJ0WOwfq X-Received: by 2002:a05:6870:c389:b0:205:d7a7:2bf9 with SMTP id g9-20020a056870c38900b00205d7a72bf9mr6165262oao.20.1704800167762; Tue, 09 Jan 2024 03:36:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704800167; cv=none; d=google.com; s=arc-20160816; b=FJEsNsOcQIyUov+pYdZrnb82W72SkYBFH0EyUyl45CGds000UtgEv2vSAl4Di9rhVy wW+k22HBpNZd7eihmi4lqgkDCnyaI0fLjGrFwYfCz+7i+MIw55+WB18DiHhhvxToG+r2 AsCQjIoIsbDSdNEXEHdVCuFa+LBfu8EnaAwF3wxwlOMkMRRke6vHx2F7Y84V+gR1YMBa Gv67xPcQFdSu0wnAHk1qZwe5oYCoEkb/hwClgPF3417p41WLlQRq9/ESl6iv4zc34yWe n7nP8X0EUpu9QX3Wrz8YWT+UmKarwV4eRL5HTCvoRcbSSoA4oTW3Kq7u/Y0a4Hdfs8Yv Yz9Q== 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=11kmWaTfq5gVnjxWEk+ZiTDAdTKMMZdYDV2oLH+AlMw=; fh=391qnXx1TZFFKS/xwgHwd2a41L/Mc4RYAjVD4AKzrRo=; b=rk8fVjf+A/LSwLlhjzi8c/XOKZnPLP6i+eo7252CyxQdcmjVc9zi1d9QLuW6XF9KCT yHu4HwqFNJarwMPYvsLTEhPFtMV8NuKDHgbq/8GVyBAAhTIu3ypjxcGHjqt4wjST3/m0 pqtMK70aUsixILWU7qZfC3uAW4S+siTzj19fsBpAlBr8OMOOtEk2tibIecC/7rGB5F8t 4Hc8Np78ltyhbbiiWaVgrvH6tJ1dproD9FSJbbPiHsMcM+9bIahajpJ6dXvdDcoLiwTm cfX1v8/0dfpjLWEm4nwtVYofeo0B/8PHR+amKD8NmoKvXcL7nu+djnClT8ojdhM9FZZs /wqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="CKhF/9jW"; spf=pass (google.com: domain of linux-kernel+bounces-20784-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20784-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a2-20020a05620a02e200b0078322d76dd0si1778686qko.481.2024.01.09.03.36.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 03:36:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20784-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="CKhF/9jW"; spf=pass (google.com: domain of linux-kernel+bounces-20784-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20784-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7BC861C23893 for ; Tue, 9 Jan 2024 11:36:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91BFC37179; Tue, 9 Jan 2024 11:35:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="CKhF/9jW" 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 66DBC36AFB; Tue, 9 Jan 2024 11:35:53 +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 (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 409AtP93015068; Tue, 9 Jan 2024 11:35:41 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=11kmWaTfq5gVnjxWEk+ZiTDAdTKMMZdYDV2oLH+AlMw=; b=CK hF/9jWshy1a39c4j9jKDxMtnqvSrAfRqL95YAUMt3gncha0emYC5meAGyTZ31vIf 7V49aqGJAWF3bG/xdI9gJggz5LKaLKNjo0M+jwlnrn78vRL7gsCaZ0BsFUnABLqT YvDlTZX5BsCIFflxRtpmaHn2Eib1uWxDt3I0bzEOZa8QuBUVromUCyp+2dyQdjAR H1vhoGJ2Ct2bc4JXAgEYi88JkuzLahtcuTIT9C9GelrhZTOskfCvgA99jYcNt85e PPpd9w3QxLMm1BdQm7ZcdssltiVZYdc8m2ZXw5VJzozVNOrm4/hIsFJ20UW/E7r6 bSo7d3HGB2WhfhRxY4IA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vgwsjrve0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Jan 2024 11:35:41 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 409BZdJT022045 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 9 Jan 2024 11:35:39 GMT Received: from [10.253.15.239] (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; Tue, 9 Jan 2024 03:35:34 -0800 Message-ID: Date: Tue, 9 Jan 2024 19:35:30 +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 v4 0/5] support ipq5332 platform Content-Language: en-US To: "Russell King (Oracle)" , Andrew Lunn CC: Sergey Ryazanov , , , , , , , , , , , , , , , , , References: <20231225084424.30986-1-quic_luoj@quicinc.com> <895eadd7-1631-4b6b-8db4-d371f2e52611@lunn.ch> 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-GUID: NCq1_Gj-E3WFQMevO2Q0k7iay_tjAj4U X-Proofpoint-ORIG-GUID: NCq1_Gj-E3WFQMevO2Q0k7iay_tjAj4U 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_02,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 phishscore=0 priorityscore=1501 adultscore=0 spamscore=0 impostorscore=0 mlxscore=0 bulkscore=0 mlxlogscore=686 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401090092 On 1/8/2024 11:53 PM, Russell King (Oracle) wrote: > On Sat, Jan 06, 2024 at 04:45:08PM +0100, Andrew Lunn wrote: >>> I just realized that the UNIPHY block is a MII (probably SGMII) controller. >>> Isn't it? And I expect that it responsible more then just for clock >>> enabling. It should also activate and perform a basic configuration of MII >>> for actual data transmission. If so, then it should placed somewhere under >>> drivers/net/phy or drivers/net/pcs. >> >> Before we decide that, we need a description of what the UNIPHY >> actually does, what registers it has, etc. Sometimes blocks like this >> get split into a generic PHY, aka drivers/phy/ and a PCS driver. This >> would be true if the UNIPHY is also used for USB SERDES, SATA SERDES >> etc. The SERDES parts go into a generic PHY driver, and the SGMII on >> to of the SERDES is placed is a PCS driver. >> >> The problem i have so far is that there is no usable description of >> any of this hardware, and the developers trying to produce drivers for >> this hardware don't actually seem to understand the Linux architecture >> for things like this. > > +1. I think it's now more convoluted than ever, and someone needs to > take a step back, look at the hardware, look at the kernel model, and > work out how to implement this. It needs to be explained in a clear > and concise way in _one_ go, not spread over multiple emails. Probably > with ASCII art diagrams showing the structure. > > If that isn't possible, then someone needs to provide a detailed > description of the hardware so that the subsystem maintainers get a > proper view of what this hardware is so they can advise. This is the > least preferable option due to the maintainer time it takes. > > If neither of these two things happen, then I'm afraid all bets are > off for getting this into the kernel. > Thanks Russell for suggestions. I will provide the diagram of the hardware and the description in the cover letter of new patch set, i know it is really important to for the review smoothly. Christian's work is designing the PHY package level DT, which is very suitable for the complex clock configs of qca8084 PHY, i also provides some descriptions of the qca8084 PHY, it will be very welcome to review the clock DT model of qca8084 PHY.