Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp972033lqj; Mon, 3 Jun 2024 06:42:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVS+TrSrWdBHeA4PoTLOMoqT51r/dqhOaevnVxFTyMY1/I3JKqyHirb+xChelyD+o16EDfby0lkPbyHDi93nd9oCwgjtaDMP/qkr0+u7w== X-Google-Smtp-Source: AGHT+IGyyA6ExIUbYNIUo8+BYsZovX4SeOc/tjQtgYqLxRJaVv3eqgR92SBOk6cg1mFSP19MLrx1 X-Received: by 2002:a05:6a00:2da4:b0:6ed:de70:5ef9 with SMTP id d2e1a72fcca58-702454e1740mr12465659b3a.0.1717422130556; Mon, 03 Jun 2024 06:42:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717422130; cv=pass; d=google.com; s=arc-20160816; b=b9BVf80oa2Z3pM3gC/cVqwFCWqVeytJZs1luS8u0wUXICoR1zi+bJMWQDrTD80D/gs DceHz477+J6rCyJr0usl0ouu9fwi0bkqKFysE9ru/B8iSzOoBD+TN37JPdfgUwetur1C uDUKW0XKhYtFYgrKaGoFKw9ch+zLDeYXBdN6bPfMP+9GLIanZvEhNHzOrUUJwL8qCj1O td/vR80z5g7WIjD6iehY44Z9oU7gHJ6qf1ZT0GWYNH6CmRUqf15n6RpbLvCZltqhQXJd t7uB1KQFoqsy7z0i5VlPkj/xy+0O3eIHTGP+hqIY+ScYsanrFGhFrKMUQuhtnuWcAYkH fVIA== ARC-Message-Signature: i=2; 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=tWf90TqEv33tkhaPkxRH0Ei2G5Na7AiQ0T1KjGRgchw=; fh=xZWgcigVLRj7l9WT5wQbagScbcgrVpl4CAe9fw6OkI4=; b=QcgSEa+RMKdkucjFtAOzkIWIrWazeVIORsCz8idnBEhGclA9f5DjEV9U9ElhhP+icK 2Ly7XQMiQ8UXOT8Ax+7TFYa9msbaI//jYPZLc05aW25LMyvu55xC6GWHwI/ZCYPoNbqB CyxKKeN2ynzSpxNc7YbmbvQMCquYPrig1hiVdSKXT0bxkcGogg9Zos7tQV4BKvg3VaRL OH/ZaTOtOfRAjHsQc5m+tWzgn7M7UxNf/mdXrLUggrWyXtnWZUZ0ziTHHbeb18zRQA1q DmLPHhX0c5b4YTXAt1B4LQtuRgFilF9bfylpt1Vvcvg7ukVmfTrq8sUYdl0+E0DcMI7N i66Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=KEveu3xA; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-199205-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199205-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 sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6d19d2486b5si200262a12.339.2024.06.03.06.42.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 06:42:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199205-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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=KEveu3xA; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-199205-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199205-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0D7C8B25E05 for ; Mon, 3 Jun 2024 13:25:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3AB6612D75F; Mon, 3 Jun 2024 13:25:21 +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="KEveu3xA" 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 1B42F12C48A; Mon, 3 Jun 2024 13:25:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717421120; cv=none; b=hfhyTNorjApPaqNmlrn2YjFjA3Q7TuslrCa1jhrH66I9NHFvoUxkJuyrDmENGF+0faKplReCPbaeoRSd/EU6HrFP8Bw/Pop6J+vo2DH7BtFl4h3hWpCvpSOe43o75SSApOBOxUrP0XT0/lm72FCgxebrGa/yx72L+sK4v9IAGxo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717421120; c=relaxed/simple; bh=bMPPMt40JcCI7qT1Vp8JvvHPnPCsgx0PvHanmVERJPc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pesHdVEQRjEXVXTgnfgqTEdcVhlDbNAaersirK2GCnNxhf7quE1+B80yUqEv2+f/GXYFYMXOr+OSbSkuqrOdg4nppOD89hRgWNB8tM3M15nC1WCmuIpS2DIEPnrVf6wKZE5EQWM0ZLgevBbD8iQdJc/NYfFisEcOip0dsePAxLA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=KEveu3xA; arc=none smtp.client-ip=78.32.30.218 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=tWf90TqEv33tkhaPkxRH0Ei2G5Na7AiQ0T1KjGRgchw=; b=KEveu3xARg02n//HGVdyAS3k0L 0+OpND2w3tEvWcNfABvyknDo0o4Q3G8SkiWap/eZf6kwJ+ySQmBG9ZX/j3s5aiUwRrTDge/PuDKf3 JKEvayPNO0SyM13/UbRXnO51WTWvW7FDqovIWEDp0OyYn8kqbL4e9Su8kHXIK2NiyP6TKYfVGKRr1 VQZSW8WjTL5OHx5X6+TOjBiHSpNEFf5Fp+Y4UFRQgBFxC6/wbJ3hhIgski9LdhdeUEgQf6pyPNMMW 0IlL2dpuX5/ambYbTQEFw52BvsCWq+Y3KeCUMTWLtL2DA2irbleJ9rTIRye4KE1/OoykgFQHk5Eas Pb+GEH2g==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:52102) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sE7gL-0002mY-2H; Mon, 03 Jun 2024 14:25:01 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1sE7gL-0000T6-H9; Mon, 03 Jun 2024 14:25:01 +0100 Date: Mon, 3 Jun 2024 14:25:01 +0100 From: "Russell King (Oracle)" To: Sky Huang Cc: Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Daniel Golle , Qingfang Deng , Matthias Brugger , AngeloGioacchino Del Regno , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Steven Liu Subject: Re: [PATCH net-next v6 5/5] net: phy: add driver for built-in 2.5G ethernet PHY on MT7988 Message-ID: References: <20240603121834.27433-1-SkyLake.Huang@mediatek.com> <20240603121834.27433-6-SkyLake.Huang@mediatek.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: <20240603121834.27433-6-SkyLake.Huang@mediatek.com> Sender: Russell King (Oracle) On Mon, Jun 03, 2024 at 08:18:34PM +0800, Sky Huang wrote: > Add support for internal 2.5Gphy on MT7988. This driver will load > necessary firmware, add appropriate time delay and figure out LED. > Also, certain control registers will be set to fix link-up issues. Based on our previous discussion, it may be worth checking in the .config_init() method whether phydev->interface is one of the PHY interface modes that this PHY supports. As I understand from one of your previous emails, the possibilities are XGMII, USXGMII or INTERNAL. Thus: > +static int mt798x_2p5ge_phy_config_init(struct phy_device *phydev) > +{ > + struct pinctrl *pinctrl; > + int ret; /* Check that the PHY interface type is compatible */ if (phydev->interface != PHY_INTERFACE_MODE_INTERNAL && phydev->interface != PHY_INTERFACE_MODE_XGMII && phydev->interface != PHY_INTERFACE_MODE_USXGMII) return -ENODEV; Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!