Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4341099rwo; Tue, 25 Jul 2023 04:51:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlH511A6eHVp4XaH1diWJ70S7fKstlHCMf6TaCx1tcP93/I/KxGJLBrHFeraJzqORRG2lIlp X-Received: by 2002:a17:906:64cf:b0:994:4be4:a106 with SMTP id p15-20020a17090664cf00b009944be4a106mr11295726ejn.10.1690285873781; Tue, 25 Jul 2023 04:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690285873; cv=none; d=google.com; s=arc-20160816; b=V4a5G3oZxXgLgvRfHajuAbBVi6ETrByA49AMGwWXaZCjDFpaaiyQ39HIR0VEm2bgBf baHDZ4HpjDqmNn8kbfX0aDYIsjwEzkXH/ObG8jauodQ5EAeddl/VQzn+I2zzTbWCApOA RNjoq0PdUY4T+yEkhyAzgy/55G/w+bkMFVlDh7U5C/TcvUhjQjEa7vqXQ6hcZK1tkwmC aDYhqRUi0gg6U/fifP1rp5EWzuseuGAJkDRZTffhmjy74vjfKdogyxvUgrzLOf+w6o14 VX/ID+IZptu9rsAFQBN/y2e2I/7h80Lj+4ZpDtb4RCW7YlLg5/dnx2C0DqfvWBKfSQcZ 4BrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Zxup0ZB33r1kbm3A7ozwR394TBd/65UqUOTZ/imQrpM=; fh=tYU23j9djhAC5QTjxRrsAa84VxfLnId8Wa87SKpMTgg=; b=xuCpMhm1ltVQQPFxj6YzF3vZmQalrE9X+WkmKh9OiPyrIiNpRvE0X+jwpCKCDUIFyI TS2knuUwSOaIJBQmzmy/Bs7VP+2sOUbshDv7PU2qFhKimnmba2vTdP3+SvuLetuCx1DC oJ+wOSnt0PaYnMnfzo1hmrcDAEuaOjjwnpM6reWTNp8BJtwzOGzCwbbTmIXufcHrGjfd YCppmKlVIbMkmA+5ELyk00iIvz3OwzPP9WloLmHRdQXe/9i80JSsv4b51EhM2GIkIPIG 9WuUopwmpyzqyo+fV4i0t9ofRFgfmj9K3MI8x4Hp9ChLpXHL2X+3XRd5gFr0nnHGT4L3 yDJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=EV4JAqed; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e20-20020a170906505400b00992a096678fsi8068334ejk.813.2023.07.25.04.50.48; Tue, 25 Jul 2023 04:51:13 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=EV4JAqed; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233823AbjGYK75 (ORCPT + 99 others); Tue, 25 Jul 2023 06:59:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233541AbjGYK7k (ORCPT ); Tue, 25 Jul 2023 06:59:40 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB0DC2720; Tue, 25 Jul 2023 03:56:49 -0700 (PDT) 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=Zxup0ZB33r1kbm3A7ozwR394TBd/65UqUOTZ/imQrpM=; b=EV4JAqedVH1oP+vTphQdjR8flZ RhPLXAB2RLG7/YyJl9jozEEGlKNShGEFGp5ItcpcbufPePAwscYZ9KvP2z0RCI/VftJQsNizCihlk F1BuKhiIkTEXTiD+Rww55kaQoctwvYVYV3BRDxZmIOuJ9h/Nw1gNvBQ53nPvGhgOt+VdvQ5gA5+tU vxla2LHRtrY7dCBpa/vH90DRDyySyca5Rxq/v0zxfa9ayIcfZgFgT0dpROHeA8ttiBTuccFQ76C4x GWSNFqPV3X0mK1ZrM004w7+w/wmSF/FXFDQXA32BB25SvTy6N0qx1CPhamFbr/A+qxgrKObjJ/fY5 1t/xTOqg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:53228) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qOFid-0001wE-0m; Tue, 25 Jul 2023 11:56:43 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qOFic-0001lh-11; Tue, 25 Jul 2023 11:56:42 +0100 Date: Tue, 25 Jul 2023 11:56:41 +0100 From: "Russell King (Oracle)" To: Paolo Abeni Cc: Ante Knezic , andrew@lunn.ch, davem@davemloft.net, edumazet@google.com, f.fainelli@gmail.com, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, olteanv@gmail.com Subject: Re: [PATCH net-next v3] net: dsa: mv88e6xxx: Add erratum 3.14 for 88E6390X and 88E6190X Message-ID: References: <30e262679bfdfd975c2880b990fe8375b9860aab.camel@redhat.com> <20230725095925.25121-1-ante.knezic@helmholz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Tue, Jul 25, 2023 at 12:47:43PM +0200, Paolo Abeni wrote: > [adding Russell] > On Tue, 2023-07-25 at 11:59 +0200, Ante Knezic wrote: > > On Tue, 25 Jul 2023 10:56:25 +0200 Paolo Abeni wrote > > > It looks like you are ignoring the errors reported by > > > mv88e6390_erratum_3_14(). Should the above be: > > > > > > return mv88e6390_erratum_3_14(mpcs); > > > > > > instead? > > > > > > > I guess you are right. Would it make sense to do the evaluation for the > > mv88e639x_sgmii_pcs_control_pwr(mpcs, true); > > above as well? > > Good question ;) it looks like pcs_post_config() errors are always > ignored by the core, but I guess it's better to report them as > accurately as possible. ... because if they occur, it's way too late to attempt to unwind the changes that have already occurred. > @Russell, what it your preference here, should we just ignore the > generate errors earlier, or try to propagate them to the core/phylink, > should that later be changed to deal with them? How would we deal with an error? If it's a "we can't support this configuration" then that's a driver problem, and means that the validation failed to exclude the unsupported configuration. If it's a communication error of some sort, then we're unlikely to be able to back out the configuration change, because we probably can't communicate with some device anymore - and there are paths in phylink where these methods are called where there is no possibility of propagating an error (due to being called in a workqueue.) I did decide that phylink_major_config() ought not proceed if mac_prepare() fails, but really once mac_prepare() has been called we're committed - and if an error happens after that, the network interface is dead. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!