Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2433269lqo; Mon, 20 May 2024 06:02:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVvbpPG4vw5745fnUvxlGe/7ZLBlHHd4B+6eFr1TmYh5t36T8xK3s02sGdIVGkyKDCw5rMdV9lUpzMcehfbKPFrxrq2GVRkzqamaaqY7w== X-Google-Smtp-Source: AGHT+IG3v94g8D8J70YaWJlwYJHXc12afszfdY2JE+h+NBVZQYq5CSSWVUlmeETaQritOS+tjEtP X-Received: by 2002:aa7:d787:0:b0:573:55cc:2f50 with SMTP id 4fb4d7f45d1cf-57355cc3092mr23571452a12.37.1716210177643; Mon, 20 May 2024 06:02:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716210177; cv=pass; d=google.com; s=arc-20160816; b=LsPr/Wq4gaxGvgYAN6PsGCyo2SCz7YAPMid28m+NQNctvPPni6Aup4bXA+kdDYxkJM r7Xfjyyi2ytJN6rTCJxoOWUfs4YqY7SbJ065XbUur0jtdedKHioLcoAEP8WKb0zX6CU/ lqYQKmxEcX9heKtdaKI1AfKpCLE+uX5uH6TQ/fFQLx6IZZ7ZlLFpT7YEUoBHV424sxRr BWFM9LVPW7YbSj7WKGpjHJgArTsHxfdK15CQ9KS9HGe1dJDegSHxS2lYv5qcBWYcA+xV /pIk1FlM15mJSig5FducsQTrgPyyt7TZq9mvQcIUu6fZclFlk0Axe4gkS5PLX8T94rPt YE9A== ARC-Message-Signature: i=2; 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=j0jIAAuXSP3n0MB/pRJJ3f6EEsygUxZ+BPC7VxBGXp8=; fh=DjjQ1uymC7hjTF/JCi0sWwgnx6PF9M0jdCgfmFjiD3o=; b=q/oPs1x3hz/eEMXDvzBjD5JaASUyQaZSGTjDGmfBRUVEJUm9bQal5BRzddNm4gQ9T4 GyC+fG6GP0wwFEBSaLyUo/QbvqgqLdRVdO131QgVIQdQ+8kI6EavBiFvfLDh1p3VP7an eTjtJ1a5ZTJhJpY9+xxuIL/amZG900RzCH6HQV0s+figJiv106a22TAvPbmn9JtqAw1C nWxZBYXlOdpd7m64z3jYDvMfEqn4/RKGRnSSbTGfeJyG7RmDCTA7oNFnU5WLMxUlpMgw TMTiqvAM0jP2fywxp6kxeU/Zp9fpZstLL3la5LIXEG7fdByqA2O4eHN1098DuA+XbWTV E/tQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=UN2Dj719; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-183771-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183771-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574fe1089bcsi5915219a12.494.2024.05.20.06.02.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 06:02:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183771-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=UN2Dj719; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-183771-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183771-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4EE9B1F22142 for ; Mon, 20 May 2024 13:02:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B53C8135A6F; Mon, 20 May 2024 13:02:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="UN2Dj719" 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 765DF13440A; Mon, 20 May 2024 13:02:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716210165; cv=none; b=lrFdFvGFciXbGt/6A2ZrNI7AYy8rdIVGOOnMYBUASGCm5+2YhZhO4bFW5rHwYcoIkotKDxtsgWAGrFFqMeiljupFA+64s81vmGWKDzx9RQ8KK4dJyqib/QB4+NPXR9pGoAmjSN9VBO4JeZ0HZx4eY8XSJCA4Ei6U6/RlJOtZH9Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716210165; c=relaxed/simple; bh=NqFfNspuNN/u5d6QKlAxvgR1hDJF0mvILHw8f7JFhmM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=O0QK/e2x9Kjn+8NzcRnNbZ0vokRMAfxNxPFixAz5QMAR+JuzIeLNYWwCGfWl75+Or+O9qvjx2AGp2aNnPybb5OAqI1/e6X1NKybM7cdJONNEoKBURCjCVdcP3MZ/W93kPpOLsEcbAhJzlon6pMljIec+51uyYf7ssfVbTQ/ah6A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=UN2Dj719; arc=none smtp.client-ip=156.67.10.101 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=j0jIAAuXSP3n0MB/pRJJ3f6EEsygUxZ+BPC7VxBGXp8=; b=UN2Dj7198lyU3K4EVT86LEI9IQ cdtpjZUJU1lns6OAl9EJhTDzjCIZ6Amc/gU+q4KDrYk/EKjrZ5/cOduBfsuv5zno3WL2ocpqj6mjH c7IU4uWoyZtQm4NTJxf5g4ntGMbjOrfxZ6ix/ZG8fj1o2PGdp4DGWTOG0LN5/REsWfl8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s92ej-00FhFN-La; Mon, 20 May 2024 15:02:21 +0200 Date: Mon, 20 May 2024 15:02:21 +0200 From: Andrew Lunn To: SkyLake Huang =?utf-8?B?KOm7g+WVn+a+pCk=?= Cc: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "linux@armlinux.org.uk" , "kuba@kernel.org" , "pabeni@redhat.com" , "edumazet@google.com" , "netdev@vger.kernel.org" , "dqfext@gmail.com" , Steven Liu =?utf-8?B?KOWKieS6uuixqik=?= , "matthias.bgg@gmail.com" , "davem@davemloft.net" , "hkallweit1@gmail.com" , "daniel@makrotopia.org" , "angelogioacchino.delregno@collabora.com" Subject: Re: [PATCH net-next v2 5/5] net: phy: add driver for built-in 2.5G ethernet PHY on MT7988 Message-ID: <8a5f14f4-4cd9-48b5-a62c-711800cee942@lunn.ch> References: <20240517102908.12079-1-SkyLake.Huang@mediatek.com> <20240517102908.12079-6-SkyLake.Huang@mediatek.com> <283c893aa17837e7189a852af4f88662cda5536f.camel@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: <283c893aa17837e7189a852af4f88662cda5536f.camel@mediatek.com> > > Is there a version available anywhere for the firmware? > > > Currently, I use "$md5sum /lib/firmware/mediatek/mt7988/i2p5ge-phy- > pmb.bin" command to check version. An md5sum is not really a version. How do you tell if one md5sum is newer or older than another? Is there is an MDIO register you can read to get the version? Or a version in a header in the firmware file? > > > +static int mt798x_2p5ge_phy_get_features(struct phy_device > > *phydev) > > > +{ > > > +int ret; > > > + > > > +ret = genphy_c45_pma_read_abilities(phydev); > > > +if (ret) > > > +return ret; > > > + > > > +/* We don't support HDX at MAC layer on mt7988. > > > > That is a MAC limitation, so it should be the MAC which disables > > this, > > not the Phy. > > > Actually this phy is strictly binded to (XFI)MAC on this platform. > So I directly disable HDX feature of PHY. Sorry, i don't follow your answer: Can the PHY do half duplex? Can the MAC do half duplex? The part which cannot do half-duplex should be the part which disables half-duplex. You should be able to take any vendors MAC and any vendors PHY and put them together, if they have the same MII interface. Say this PHY does support half duplex. And some other vendors MAC supports half duplex. We want it to work. Andrew