From mboxrd@z Thu Jan 1 00:00:00 1970 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 1D1CF20E4; Sun, 17 Dec 2023 09:23:08 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="6Hz6PNrm" 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=e2syS5gfOYyTr1CcR6QHmRC/0bl7RHoQ4/8xLhREdX8=; b=6Hz6PNrmyyEJISORozhhdBYTY3 oCYrHfTrHC5dCh/2oN7MYLlvb4ZNm+Xm+PqdtDqnmj6Nk5iIbgQoGR8P++3zL1823xf/tcyCROb/z 1N+DZzTwvBTiRilx6pjfrflCX0og/+Qudc4vSg1cAgb31CPpqLOw9sRDOgRkyEr2F+/E=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rEnMM-00399Q-7F; Sun, 17 Dec 2023 10:22:54 +0100 Date: Sun, 17 Dec 2023 10:22:54 +0100 From: Andrew Lunn To: Dimitri Fedrau Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Stefan Eichenberger , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: phy: marvell-88q2xxx: add driver for the Marvell 88Q2220 PHY Message-ID: <28cc73bf-ed6d-49d8-b80b-4fbf5fa0442f@lunn.ch> References: <20231215213102.35994-1-dima.fedrau@gmail.com> <74d4b8f9-700e-45bc-af59-95a40a777b00@lunn.ch> <20231216221151.GA143483@debian> 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: <20231216221151.GA143483@debian> > > > + /* Set IEEE power down */ > > > + ret = phy_write_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_CTRL1, 0x840); > > > > 0x800 is MDIO_CTRL1_LPOWER. What is the other? It seems like a speed > > selection bit? > > > The other is MDIO_PMA_CTRL1_SPEED1000. Will fix this in V2. It seems odd to set a speed, and power it down. But i guess you have blindly copied the reference code, so have no idea why? Andrew