From patchwork Wed Oct 6 12:18:41 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: 12539337 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 38226C433EF for ; Wed, 6 Oct 2021 12:18:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 21105610A2 for ; Wed, 6 Oct 2021 12:18:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238492AbhJFMUq (ORCPT ); Wed, 6 Oct 2021 08:20:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238471AbhJFMUn (ORCPT ); Wed, 6 Oct 2021 08:20:43 -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 46A11C061749 for ; Wed, 6 Oct 2021 05:18:50 -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=gYQ0Am+jpqhDlV/+FdxBNLGDxV7amI54MtGKJ4Mopec=; b=ldBsmoB4mu10si1U/3AjSPQIvY rFSKwLa/qKJmPe/bunqXX0kVnp+f/Mbv8Zkx9USliYq7NI0LfDekYuIdOjFG1aqsP2OCQ+J87/NYh QxG9TpvYsjL3QTv575SfMuOzy5PI8M1MTArkoq3spzDgYL6xf83kaCtrCwEEP56EKtYkMxJMQ9ebh 6wf+HHrSa4NI9sCasbQM/SJrAXrl7/gFXgSRIcuKFGI/9ADFFLMOOuS6pNA+fVkPAbwB66WoM7ZlG sDDWLeWMVDUaaxFIwA+psAByMVQdjeuYa5SDjLkzJAuw8dQZD0rk9jW46DVFyYO/vQfD67bjW0hO5 y5tBrXBw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:54978) 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 1mY5si-0001L1-HK; Wed, 06 Oct 2021 13:18:44 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1mY5sf-0000yI-Jw; Wed, 06 Oct 2021 13:18:41 +0100 Date: Wed, 6 Oct 2021 13:18:41 +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. v2: fix build warnings in patch2, add Andrew's RB to patch 1 drivers/net/phy/mdio_bus.c | 22 ++++++++++++++++++++++ drivers/net/phy/phylink.c | 29 ++++------------------------- include/linux/mdio.h | 2 ++ 3 files changed, 28 insertions(+), 25 deletions(-)