Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1203705rdb; Sun, 7 Jan 2024 08:09:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5s9P+ZbunA4cupEQLYRXhNEdCsYElo7hFn6DUEU1KHRtkA/M48kEZSXv19dl4+O98NUWN X-Received: by 2002:a05:6e02:b43:b0:360:7bff:df5f with SMTP id f3-20020a056e020b4300b003607bffdf5fmr4604872ilu.75.1704643748505; Sun, 07 Jan 2024 08:09:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704643748; cv=none; d=google.com; s=arc-20160816; b=Amb+4GBFy2SwbdymGzznxzI2UHyS6z6G7moOql5fhYBUm1lWqzJA5MGE/X1xylQv82 gw+k8D/pZTx/MnH8MUcN0QamrlAeMJy1I4wfbEqDmDlUX7HAZNAJ4kl6duHlydJXQ9hq SDE4lc68Br5tNvAxQ7gDbV+ByC9Y9k9ao1FNVZinjwPeXuedVDap+AiYV+NuJ/VybkCn 8WzwT80hKMfJqqBHd2NgW5phe5PKbM+A7ilXdLrLvwOpHshBIZ51kGSM2ZrPJtE6EXvL xrGVsADyJxZS6DhTu54Ku50rUowoatgjvaEHGgu79B1jcZ1Ym5mtax/ybnKbUtOQ0L4J EFXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=W5XQx5jK8PhLssysir7FrxPUWqgxrh2IPRl7HIJNB6Y=; fh=9AxLDYLfStIdgmFQCWxAPQgCY4/NAQnZCol2rY90+uY=; b=pzw/iJvDm29cxzwURZApFU6vmv75nBIvrx5dvlYgNF4y1JxOEdo+DmfOwL6ei7c8UJ ycfD2BEm/oqtchAF2wgQzC7kzpa2MqgO6HUPdZ7Ld16zvdNIgfE2VP7NoOjMs4w2YVSt Ic/gZ0UylNGVRV005RhOq84Hp1WuA0oyf/JkOL+3xJ33VtCg/f2fIkuwxHnjlugE6lw1 10SGfq5cRBpkOXmRS8z2b/PDSCim7q08vyjKZo8upo7iMtUcUHdAvTAGMUzGNUFHRQRI XmtYlM4mM22v/T1VdRYTrfFCxcsicxCR/12sCNE1Xrs8xAKgcLg81eOWq922mYc4u6R3 ddbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=A0UzMRz0; spf=pass (google.com: domain of linux-kernel+bounces-18904-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18904-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j17-20020a63e751000000b005bda1051dacsi4585967pgk.471.2024.01.07.08.09.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 08:09:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18904-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=A0UzMRz0; spf=pass (google.com: domain of linux-kernel+bounces-18904-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18904-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 004C0B214A8 for ; Sun, 7 Jan 2024 16:09:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF0C613AE4; Sun, 7 Jan 2024 16:08:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="A0UzMRz0" X-Original-To: linux-kernel@vger.kernel.org Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 7AA6013AC6; Sun, 7 Jan 2024 16:08:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=W5XQx5jK8PhLssysir7FrxPUWqgxrh2IPRl7HIJNB6Y=; b=A0UzMRz0uVAfd4BdgjKVl99KY4 PoGXuGRXaplrb0PFHRXrP5fZcXjJcCDQCbaQtoIfYCZEel6fUlO7AyBQW9+ChliajIhuLEvQRZzvu hD/Z1Vxuwo1Qqkl2LxwryCDzzdLOrC5RInVjAwynuv59SOMuapLIyzDriSPLn65v01QM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rMVhK-004Zle-Tc; Sun, 07 Jan 2024 17:08:26 +0100 Date: Sun, 7 Jan 2024 17:08:26 +0100 From: Andrew Lunn To: Sergey Ryazanov Cc: Jie Luo , agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, hkallweit1@gmail.com, linux@armlinux.org.uk, robert.marko@sartura.hr, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_srichara@quicinc.com Subject: Re: [PATCH v4 0/5] support ipq5332 platform Message-ID: <227543b0-e7a6-4ef6-a0ea-271165f51a6b@lunn.ch> References: <20231225084424.30986-1-quic_luoj@quicinc.com> <895eadd7-1631-4b6b-8db4-d371f2e52611@lunn.ch> <1df87389-d78c-48e0-b743-0fd11bd82b85@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1df87389-d78c-48e0-b743-0fd11bd82b85@gmail.com> > Andrew, thank you so much for pointing me to that API and Christian's work. > I have checked the DT change proposal and it fits this QCA8084 case > perfectly. Not too surprising, since Christian is working on another Qualcomm PHY which is very similar. > Am I right that all one has to do to solve this QCA8084 initialization case > is wrap phys in a ethernet-phy-package node and use devm_phy_package_join() > / phy_package_init_once() to do the basic initialization? So simple? I hope so. Once the correct kernel abstracts are used, it should be reasonably straight forward. The clock stuff should be made into a common clock driver, so all the consumer needs to do is enable the one clock its needs and common clock driver core goes up the tree and enables what ever needs enabling. It could be we need to use ID values in the compatible get the PHY driver probed, rather than enumerate it. Hopefully Lenaro can help get this all done correctly. Andrew