From: Andrew Lunn Subject: Re: [PATCH] net: phy: marvell: avoid pause mode on SGMII-to-Copper for 88e151x Date: Wed, 13 Dec 2017 17:44:35 +0100 Message-ID: <20171213164435.GA28466@lunn.ch> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Florian Fainelli , Jon Nettleton , netdev@vger.kernel.org To: Russell King Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:59706 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753266AbdLMQoj (ORCPT ); Wed, 13 Dec 2017 11:44:39 -0500 Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Dec 13, 2017 at 09:22:09AM +0000, Russell King wrote: > Observed on the 88e1512 in SGMII-to-Copper mode, negotiating pause > is unreliable. While the pause bits can be set in the advertisment > register, they clear shortly after negotiation with a link partner > commences irrespective of the cause of the negotiation. > > While these bits may be correctly conveyed to the link partner on the > first negotiation, a subsequent negotiation (eg, due to negotiation > restart by the link partner, or reconnection of the cable) will result > in the link partner seeing these bits as zero, while the kernel > believes that it has advertised pause modes. > > This leads to the local kernel evaluating (eg) symmetric pause mode, > while the remote end evaluates that we have no pause mode capability. > > Since we can't guarantee the advertisment, disable pause mode support > with this PHY when used in SGMII-to-Copper mode. > > The 88e1510 in RGMII-to-Copper mode appears to behave correctly. > > Signed-off-by: Russell King Reviewed-by: Andrew Lunn Andrew