From patchwork Tue Oct 5 15:32:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Russell King (Oracle)" X-Patchwork-Id: 12537081 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0632DC433EF for ; Tue, 5 Oct 2021 15:33:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D140161165 for ; Tue, 5 Oct 2021 15:33:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235968AbhJEPe6 (ORCPT ); Tue, 5 Oct 2021 11:34:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231513AbhJEPe5 (ORCPT ); Tue, 5 Oct 2021 11:34:57 -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 EB98DC061749 for ; Tue, 5 Oct 2021 08:33:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:Content-Type:MIME-Version: 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:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=vdo/Roq2CRXdvz4HpLrGPRa/L0o4Z6268vZII2ENmW4=; b=DavTtbylGdGvltojzGGVrZH0uw w3xid6rqt47V+2QzpHT7fcgHqUFjwR3bq2hdDdLwI00LIvQpT7VobOufg3PhaE/xWvSA+wwQBdLEs 2a6LcGBqPvKgRhkLUR9n4SFawuoCq6epmffgXf9OmANM7wfXrzdGUdMxUG2rc7AkFWHqgTy7VuScz ZEETPX8nP1W2Xa25e+l28Rt+5ui92OSt/ZZmOIe+YiC6tnewXYjYKfaMzwL/htTZslzQQehjtCZhZ 7FzutTqOU/3UOLfzXuPMDAmzxquA5X8X5ThiCO/loXikqrMsGN9LFD1sawI/7U8Yi1ULglh69/trR 9sYk/LIQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:54958) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mXmRA-0000UT-0z; Tue, 05 Oct 2021 16:33:00 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1mXmR7-00007J-6z; Tue, 05 Oct 2021 16:32:57 +0100 Date: Tue, 5 Oct 2021 16:32:57 +0100 From: "Russell King (Oracle)" To: Andrew Lunn , Heiner Kallweit , Sean Anderson Cc: "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org Subject: [PATCH net-next 0/2] Add mdiobus_modify_changed() helper Message-ID: MIME-Version: 1.0 Content-Disposition: inline Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Hi, Sean Anderson's recent patch series is introducing more read-write operations on the MDIO bus that only need to happen if a change is being made. We have similar logic in __mdiobus_modify_changed(), but we didn't add its correponding locked variant mdiobus_modify_changed() as we had very few users. Now that we are getting more, let's add the helper. drivers/net/phy/mdio_bus.c | 22 ++++++++++++++++++++++ drivers/net/phy/phylink.c | 28 ++++------------------------ include/linux/mdio.h | 2 ++ 3 files changed, 28 insertions(+), 24 deletions(-)