Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp906110rwi; Thu, 13 Oct 2022 06:48:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4/4G0yEIYQy/mfUIKnVlojfhpYmAkkuTOTvdMQwBZ2eyPT3SAtt+Jje/ddoNNGRsgfTsaa X-Received: by 2002:a05:6402:298b:b0:44f:20a:2db2 with SMTP id eq11-20020a056402298b00b0044f020a2db2mr32726723edb.138.1665668918352; Thu, 13 Oct 2022 06:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665668918; cv=none; d=google.com; s=arc-20160816; b=Iyw3mBBCYh6TSsDpgwHB3naxszpYfzYXhWzxbKcQGHy+iJLz+Y8IyAa8HMxXwqRBfN 6Yk5zMNvakLMmZnV8t3/qA7Gz3TEmF0AW2zveAa/3dj1paJ6US0NcdQoDO1/QxYP6hbH 33DbE7cJXnhc5PTD6kqDTdMpUmkZbsJA1Fo56NqIBpt9gaDZI9+FjV01rXI2oxvqoBsq NzwtVru2IDutYzElnkHDH6IvtUke+4/nKN8pfT+Gwfim3969oBGfRRxaSsNuZR+g8s3p pvxpca+6aX39m8u5GBCKyzIJCADAJrNw49F3TolU0prnK7nJb/VRSaIvemJzk3k6MDgN DvJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=amn3A9zRahU2ByJ3g1pqLOvDGc322030CzbGPu9aypQ=; b=PZlMItRM8vC/jWepAWi+sNk2T7lP/n/wMEoBs5gmf9EwLxKFwXhmGuUPm1/xhaAp+8 Qvp6CAZB7EV574HOXaQytg9+sMe31skHOka5fNsn54fWAsTpUU9d2rip+v1//HNR4CWK hPC+YX+OP+POhv6AmX5b71g1T4nx4eBlIsHr/0Iuhx6fTSgTGx7/Q/5YCTAReShQ2Ip7 ffVgfrIQCGv6CZKbr8DyinRws/33FvPQYJfcjDRa2iITFIlUJGbmyXbBefvtuc8zoBVa vHgyGET6a1n3UjYE5aG0GWJBzF841Mp8eY1TfDl2+bf1FOp7iRF26HELj9XoMloqq2J8 iRPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=R3i7neCC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p31-20020a056402501f00b0044ee4ec8915si4031899eda.39.2022.10.13.06.48.12; Thu, 13 Oct 2022 06:48:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=R3i7neCC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229771AbiJMNYr (ORCPT + 99 others); Thu, 13 Oct 2022 09:24:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbiJMNYp (ORCPT ); Thu, 13 Oct 2022 09:24:45 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E73E9615A; Thu, 13 Oct 2022 06:24:42 -0700 (PDT) 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=amn3A9zRahU2ByJ3g1pqLOvDGc322030CzbGPu9aypQ=; b=R3i7neCCoBrZGTs6xckhJ4Gp0H LfCdPvByalwefMGaGaxuhR0RcgkRwbCpcP1Nix4OzMS4JaLkhjad2JRgybdFwDVdgiZnqGQQyf4HC E5KksyirArOmV7jp3N+U4yaf8oCpQBfvAiy06ZhayGctwWvKZzTsArX4fE8esKdacn/g=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oiyCM-001tFa-Gh; Thu, 13 Oct 2022 15:24:30 +0200 Date: Thu, 13 Oct 2022 15:24:30 +0200 From: Andrew Lunn To: Harini Katakam Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, harinikatakamlinux@gmail.com, michal.simek@amd.com, radhey.shyam.pandey@amd.com Subject: Re: [PATCH] net: phy: dp83867: Extend RX strap quirk for SGMII mode Message-ID: References: <20221013072833.28558-1-harini.katakam@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221013072833.28558-1-harini.katakam@amd.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 13, 2022 at 12:58:33PM +0530, Harini Katakam wrote: > When RX strap in HW is not set to MODE 3 or 4, bit 7 and 8 in CF4 > register should be set. The former is already handled in > dp83867_config_init; add the latter in SGMII specific initialization. > > Signed-off-by: Harini Katakam > --- > drivers/net/phy/dp83867.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c > index 6939563d3b7c..a2aac9032af6 100644 > --- a/drivers/net/phy/dp83867.c > +++ b/drivers/net/phy/dp83867.c > @@ -853,6 +853,13 @@ static int dp83867_config_init(struct phy_device *phydev) > else > val &= ~DP83867_SGMII_TYPE; > phy_write_mmd(phydev, DP83867_DEVADDR, DP83867_SGMIICTL, val); > + /* This is a SW workaround for link instability if RX_CTRL is > + * not strapped to mode 3 or 4 in HW. This is required for SGMII > + * in addition to clearing bit 7, handled above. > + */ Blank line before a comment please. Should this have a fixes tag? Are there deployed boards which are broken because of this? Or do you have a new board, using SGMII, which is not deployed yet? Andrew