Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1709590rdb; Mon, 8 Jan 2024 07:53:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6ivD9wJaYmlEXENRRL7b+mNYjlc9k0EmYu4F9iW9coMXjqkO/yFP4SU3/XhJgxjovmhMs X-Received: by 2002:a05:6808:4489:b0:3bc:4f4a:2b9e with SMTP id eq9-20020a056808448900b003bc4f4a2b9emr6316262oib.24.1704729233003; Mon, 08 Jan 2024 07:53:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704729232; cv=none; d=google.com; s=arc-20160816; b=BGchGmYk5srVXX4Z3dQMZkPdoaggNW6ilHqbYtLHX0LCUYt3hPXOqCAKlpFvH32MFr T8zztOVKncOMRng9Z8Eer5ckyISDnGlU0buLnvWn5SEQXO9M2y9OK68fapm8drHQMCkE 6bT/Nc3LYnJLog/nh+W4qFO46VlqsHad72Tn4BNC7AiWNVht4h93Vb2Qvr0BykdVpMai b6RRTtGhObMBN6BcRHp1CEXkNlgRxplUqHeIv+MPXgwpczanDdr0BslRVYLG86O+aao6 abKPsDfRKlK+UraBMndGF3qrhyuH4rxoEViALI3rtQJ6+VUbv5QOsewKUKHTgXMuSeYc 0Kfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender: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=oyblU9fS9RIJhRfq92DSb7yUSCuEu12wiegVylc2g30=; fh=3cbCGy/B/2pYPMBKDpLly6CkRuFDpFN7m5bAvudzaVs=; b=aYQGWE9Up8KwVMDkA2glZNFpjTnHDc9ClKzLa22wNaYI41nGVgsou5XbQ9oDjoaKkZ c1hGtxckkK/WkkBAEMFf8C4CqUwdb6lx4rlbB2UsPuz80DasLkYow36BxVcuYd2TSMx5 Ao09abB0sM0rriIc2QdSBU807auBLGypoZM2dNz9LZuLMwLNkJCIcqEzkpRs5QgHIPvl /5jlEV9MsOv/Yu2ZkgfK4k/04DwVWOav5x/37bXHzNUhctsuQOR6Hu3H+PUcZXNnvLcY LTr/yDbtMV5zaStRLHEalZ7iLz8ojkG+AqjEWv9dlYg0wZMmspxwZvV5gKgbFhIt81rF XeYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=odd55ff7; spf=pass (google.com: domain of linux-kernel+bounces-19806-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19806-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w8-20020a0cdf88000000b0067f7b004170si135719qvl.341.2024.01.08.07.53.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 07:53:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19806-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=odd55ff7; spf=pass (google.com: domain of linux-kernel+bounces-19806-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19806-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk 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 880FE1C22DB7 for ; Mon, 8 Jan 2024 15:53:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F7CC524B8; Mon, 8 Jan 2024 15:53:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="odd55ff7" X-Original-To: linux-kernel@vger.kernel.org Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (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 EB2E451C30; Mon, 8 Jan 2024 15:53:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender: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-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=oyblU9fS9RIJhRfq92DSb7yUSCuEu12wiegVylc2g30=; b=odd55ff7qVX3LGHrloljObiz1O v2p/97U82lb9laxeFxsG3dQ6za8J5Q/HPzXk6Gsv9WaXA3PTPRXeDZOxJPz1XGlTfO82eaZIj14U9 JLnVdnniUiBE2p/5QOoIzO32zAzlMcDICGN9t1Ydbx0khVNbx8jgj+4tMgDgEfuprlmYZPAOeaK4W iLe7w3jD18HHkjB6hHS2oh1PTJQraW4OS9BNS94QYqTJ5KsKOeV2fmNUmJhtRlPJErXhc4rbsJIM3 Q0llvh+RPy0yoDh3b545p3E4shhJdRF8rug1bfVCVE1BIpOOTiUa2Za278kUvLqAtVCZWm25p4cMC gCS5fKlw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:36992) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rMrwC-0003BF-0e; Mon, 08 Jan 2024 15:53:16 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rMrwD-0003MQ-F2; Mon, 08 Jan 2024 15:53:17 +0000 Date: Mon, 8 Jan 2024 15:53:17 +0000 From: "Russell King (Oracle)" To: Andrew Lunn Cc: Sergey Ryazanov , 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, 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: References: <20231225084424.30986-1-quic_luoj@quicinc.com> <895eadd7-1631-4b6b-8db4-d371f2e52611@lunn.ch> 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: <895eadd7-1631-4b6b-8db4-d371f2e52611@lunn.ch> Sender: Russell King (Oracle) 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. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!