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 5F77E33097 for ; Wed, 15 Nov 2023 17:35:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DcESovtN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1213FC433C8; Wed, 15 Nov 2023 17:35:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700069706; bh=o+IurAstOibF2RuOKRlGkX2YVTAnKEoC1eORsyVB0Ok=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DcESovtNiiDztQBGwdBr8ouxz/+okMvfLjyE2VrIIqASuCA2lnFF0De1vg+i65ia2 XL/4Uf21moXtFKpvONFXqMh9HfS0Jl9HRU1s0rT4MJab6u1p32jACmabaZH+7NXTYg 9pgYIVMn0KmMIdLdQSIQ5t1c7WStQSa0iRdEsvLl6RKMT/TyJr2Ccf8G7dG1zuWMpr TlWIw13Yz43EjbPqTEeVqT2/BWjniRG1JEXXkDPkpsd55diZ/NJmmcrAT81pjrLxsK fKih6Z0cTxqB3UbbA77YTRatBiUW83WUZguEu5/3Nn7P8FhUKWKJiL/jaFBpvsFamJ yMVPQNdrP/WTw== Date: Wed, 15 Nov 2023 17:35:02 +0000 From: Simon Horman To: Heiner Kallweit Cc: Realtek linux nic maintainers , Paolo Abeni , Eric Dumazet , Jakub Kicinski , David Miller , Mirsad Todorovac , "netdev@vger.kernel.org" Subject: Re: [PATCH net-next] r8169: improve RTL8411b phy-down fixup Message-ID: <20231115173502.GT74656@kernel.org> References: 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-Disposition: inline In-Reply-To: On Mon, Nov 13, 2023 at 08:13:26PM +0100, Heiner Kallweit wrote: > Mirsad proposed a patch to reduce the number of spinlock lock/unlock > operations and the function code size. This can be further improved > because the function sets a consecutive register block. > > Suggested-by: Mirsad Todorovac > Signed-off-by: Heiner Kallweit > --- > drivers/net/ethernet/realtek/r8169_main.c | 139 +++++----------------- > 1 file changed, 28 insertions(+), 111 deletions(-) Nice. Less code and fewer locks. I manually verified that fix_data matches the code it replaces. Reviewed-by: Simon Horman