From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 ECE8CEA1 for ; Tue, 27 Jun 2023 03:28:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41BB5C433C8; Tue, 27 Jun 2023 03:28:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687836525; bh=Rvo2sb5xRqGIuOJc76e/Yp7Ddzl6Se8I9RDpIFWMsDo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hMm/PzYvCV88xuRjBBRr8sLFn3UU0y4s++Vk0Plhbc4fB2QBCEtI1D465Wrr+78Ys wQ59N0O7Xv82WgPv8yfCGP2ml1DYl4+iwbGjqoTuNiH9xG78Hlg88j6lfubx/bC3AV AvN1q6IY2tAmNBNcUzogHy2Lj9cFmT8syb4b4y/yESMcEbchuVpz1PwSApKNObLTh2 05qbyr2fC6iVZjT3eFbrJbIPlrfjnOIFkbI6rl/dFZjy1kInS/soqQ8pLN5Op8jmal mhl6EdVmL8dpl/sBYQ8UOAV6H1do/oLe3hdh1wNntB46kiTG20S6UPJJO8wMfZjMLh 4rpRAV+/w2TGQ== Date: Mon, 26 Jun 2023 20:28:44 -0700 From: Jakub Kicinski To: "mengyuanlou@net-swift.com" Cc: Andrew Lunn , Jiawen Wu , netdev@vger.kernel.org Subject: Re: [PATCH net] net: txgbe: change hw reset mode Message-ID: <20230626202844.346de86b@kernel.org> In-Reply-To: <23312110-478A-4AC2-A66D-33C4BD2DBD0E@net-swift.com> References: <20230621090645.125466-1-jiawenwu@trustnetic.com> <20230622192158.50da604e@kernel.org> <362f04fc-dafb-4091-a0cc-b94931083278@lunn.ch> <6964AD00-15BF-4F2D-9473-A84E07025BE8@net-swift.com> <20230626102411.2b067fa8@kernel.org> <23312110-478A-4AC2-A66D-33C4BD2DBD0E@net-swift.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 27 Jun 2023 10:18:46 +0800 mengyuanlou@net-swift.com wrote: > > Why were you using the more complex FW command then rather than just > > the register write, previously then? > > Using FW command can notify fw that lan reset has happened, then FW > can configure something which should reconfigure. This sentence is not entirely clear to me. > Drivers write the register, the FW will not know lan reset has happened. > > Later, we found the things which FW need in NCSI/LLDP/WOL... is only the phy. > So just block phy reset, and use simple the register write. Fair enough, please include the explanation of backward compatibility in the commit message and post a v2.