Received: by 2002:a05:7412:3210:b0:e2:908c:2ebd with SMTP id eu16csp988124rdb; Fri, 1 Sep 2023 09:25:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHisYncCQBWWY4xfM0L7Iw3sVKU2JHK2IGgUi7TNDI5V8LcKQONmxKfgEwfJz0uML/e1gQO X-Received: by 2002:a05:6808:1887:b0:3a3:9df9:1918 with SMTP id bi7-20020a056808188700b003a39df91918mr3592516oib.20.1693585539342; Fri, 01 Sep 2023 09:25:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693585539; cv=none; d=google.com; s=arc-20160816; b=DMCMVeAVADLCGyRV1AshWv0Imy8cOYNlxOcLOvE/Xsu5PJJZR+e5xpZjNE6iJ/vN1X ayweq6Jyserlr4EPJsUDJBxBl/gGWS2WXa4x4LRS8BVQfXBhNrwQRDw2lzYXRVkzoiIF +wJyNrlKwnxeaWTOLG83pjwkXFzarIDZjMLtmChd0LdpPE0+Zt3hj7KDhyXJpNwhEaX4 TxCOMHFS+LC5Sw3DDZVzwNWjKpCmiwaXYUHr1vqSy3xyWvbbOjy1ZEmrfz3+btafyB// 8+KntDRxHO6xn9KxLQ9JYUjoKCOs8ldSXM2Tur/cWPZey4u02a2AqFSVnZAhTbJWAPyE qYig== 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=XIusW0m1E8VscwLTOTsY+xzTnz+U+iqdOkrObW70Mt0=; fh=IBeMtqOP/tXNr/4y5FwS3l7yjb4lCYczRZ8MduqKp5w=; b=PLy2J1PBm3DDLEjOtxxIK4fRFjHKkAoxfrueJ8I3lRNwRStwC0GLSM2WC5HRcTsC3m bdclXfp1MqZ60nwCt7eiDEmhhOmSASJ/KGuxd+xqjlT7Zy5bXlmenu/9NMMGM2RhsanU WRacHWPP6RcBftx8qcErX7jHs0p2zxZqoLMUWVL9CIme6ERzwunwKANDrg+ftwuxs8fE kXzMA/HXKw8UJBxy258Fy/Ao3sVtwyfopdjTmia/ZguhnvZqXrMM+P7NbypewTk2jAwH yLiwminj4cG6dvpPgOb5Fg4JwcDV0m3JS7J3WonpQ0rnfMp2eIgelpywJb20AC7OZTI1 atQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=CwUh4HPS; 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 bk13-20020a056a02028d00b0056fc3ceaba4si3021558pgb.432.2023.09.01.09.25.24; Fri, 01 Sep 2023 09:25:39 -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=CwUh4HPS; 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 S1348799AbjIAJ1a (ORCPT + 99 others); Fri, 1 Sep 2023 05:27:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348794AbjIAJ13 (ORCPT ); Fri, 1 Sep 2023 05:27:29 -0400 Received: from pandora.armlinux.org.uk (unknown [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86B2DC0; Fri, 1 Sep 2023 02:27:23 -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=XIusW0m1E8VscwLTOTsY+xzTnz+U+iqdOkrObW70Mt0=; b=CwUh4HPSI5V8fX2wl9V7QYdslm aUYA3b/XXt5Uk8ttQemTxsdN3q/ivypM4BhHwJcPBM/Pi0yP9gg7yKJRYl0/x/cJhEOyvqnomow7d DoUXcs0sj91/q53LN/yUgNaI7fYqQMTPXKLAAjpqufyOW1Mw3FH7m3kGmguRS6ipHXKarO1xFX7I4 g66Wj5j14+BRMxZ1NUV+3uLq4tw/Gj/aSUESVK1d6D4PVNo7RDWmZvjxFeWobppFHLdeL+pKN5EuG YwG1MzSyAFMlnzC477l94HTnDlZDQt3ym8IGzpyYnFJ78hm1FUNhK4+xSJRPV8Eys6nkhQk0XkJ4N lduakg4g==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:57120) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qc0Qt-0003rZ-1p; Fri, 01 Sep 2023 10:27:15 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qc0Qs-0007iJ-IT; Fri, 01 Sep 2023 10:27:14 +0100 Date: Fri, 1 Sep 2023 10:27:14 +0100 From: "Russell King (Oracle)" To: Radu Pirea Cc: "atenart@kernel.org" , "Radu-nicolae Pirea (OSS)" , "sd@queasysnail.net" , "andrew@lunn.ch" , "hkallweit1@gmail.com" , "davem@davemloft.net" , Sebastian Tobuschat , "linux-kernel@vger.kernel.org" , "pabeni@redhat.com" , "richardcochran@gmail.com" , "edumazet@google.com" , "kuba@kernel.org" , "netdev@vger.kernel.org" Subject: Re: [RFC net-next v2 5/5] net: phy: nxp-c45-tja11xx: implement mdo_insert_tx_tag Message-ID: References: <20230824091615.191379-1-radu-nicolae.pirea@oss.nxp.com> <20230824091615.191379-6-radu-nicolae.pirea@oss.nxp.com> <5d42d6c9-2f0c-8913-49ec-50a25860c49f@oss.nxp.com> <518c11e9000f895fddb5b3dc4d5b2bf445cf320f.camel@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <518c11e9000f895fddb5b3dc4d5b2bf445cf320f.camel@nxp.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,RDNS_NONE, SPF_HELO_NONE,SPF_NONE autolearn=no 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 Fri, Sep 01, 2023 at 09:09:06AM +0000, Radu Pirea wrote: > On Wed, 2023-08-30 at 13:35 +0200, Sabrina Dubroca wrote: > ... > > > And it's not restored when the link goes back up? That's inconvenient > > :/ > > Do we end up with inconsistent state? ie driver and core believe > > everything is still offloaded, but HW lost all state? do we leak > > some resources allocated by the driver? > > Yes. We end up with inconsistent state. The HW will lost all state when > the phy is reseted. No resource is leaked, everything is there, but the > configuration needs to be reapplied. If it's happening because the PHY is being re-attached from the network driver, then wouldn't it be a good idea to synchronise the hardware state with the software configuration in the ->config_init function? Presumably the hardware state is also lost when resuming from suspend as well? If so, that'll also fix that issue as well. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!