From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB452C433EF for ; Tue, 3 May 2022 22:26:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243654AbiECWaF (ORCPT ); Tue, 3 May 2022 18:30:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235020AbiECWaC (ORCPT ); Tue, 3 May 2022 18:30:02 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C6A225C59; Tue, 3 May 2022 15:26:28 -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=dQbAhLGYkSC9p3//MdXKmbMJRWP0vX5cZWdr61xwGEA=; b=ERVmPGm9UX70qdCIc8SmknZp6v vevqhSa9AvYZNoyRPL4S8d1qqQTt5PvluKbYQ2vN1EyI5YxulgNcvwW5iqYXac7soQ5R7aALvxY9Q AtnzbzSgA09Pv0ttjlAmwtRJKtHLxcxQNLqsZl55BR3nsIqNxE75qWEpEnIvnHLSr2ao=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nm0yM-00173O-Lh; Wed, 04 May 2022 00:26:22 +0200 Date: Wed, 4 May 2022 00:26:22 +0200 From: Andrew Lunn To: Lukas Wunner Cc: "David S. Miller" , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-usb@vger.kernel.org, Steve Glendinning , UNGLinuxDriver@microchip.com, Oliver Neukum , Andre Edich , Oleksij Rempel , Martyn Welch , Gabriel Hojda , Christoph Fritz , Lino Sanfilippo , Philipp Rosenberger , Heiner Kallweit , Russell King , Ferry Toth Subject: Re: [PATCH net-next v2 6/7] net: phy: smsc: Cache interrupt mask Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, May 03, 2022 at 03:15:06PM +0200, Lukas Wunner wrote: > Cache the interrupt mask to avoid re-reading it from the PHY upon every > interrupt. > > This will simplify a subsequent commit which detects hot-removal in the > interrupt handler and bails out. > > Analyzing and debugging PHY transactions also becomes simpler if such > redundant reads are avoided. > > Last not least, interrupt overhead and latency is slightly improved. > > Tested-by: Oleksij Rempel # LAN9514/9512/9500 > Tested-by: Ferry Toth # LAN9514 > Signed-off-by: Lukas Wunner Reviewed-by: Andrew Lunn Andrew