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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E0BC8C433F5 for ; Tue, 25 Jan 2022 16:18:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Date:Message-Id:MIME-Version:Subject:Cc :To:From:References:In-Reply-To:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RgNfXQwBCyyEprccSLv59Lg9ssBC8SuBC8cX8D+QeDc=; b=LqlieemFc2wLFY nRjqjVUs3acKxY5K4wX7qr2ssxUby7X5LyQewnOTTwDzjqnjeW3qi+v3xHMZV5zWvxBF+oY04uaCf fqcw2PDZHR8p9VcKrC1cKJHeeXExuf8xwn/hVEjepJv0F+KlcLVckXv20QpOG9axgzdwX3z5zIhkE SBYuLiT/mJZEMwB5U80GLE8v9jYkE264OjZxA0fpU/zxYMIDu+oXj5lcwRBKuJ+yCZZM/bBHe49zU DROWmGSXSLTmp2hv2uaLNN0VEQBeWsyfVogQpw6vhTW8MOr3LCgHbjNBpxhzXlzj74/MAlpP95uS/ b306PBr6bCt/GTJexJZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCOUp-008cU7-D6; Tue, 25 Jan 2022 16:16:41 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCOOi-008aBS-QB for linux-arm-kernel@lists.infradead.org; Tue, 25 Jan 2022 16:10:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Date:Sender:Message-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Subject:Cc:To:From:References: In-Reply-To:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jfRhHeCItZdJDoUJOFAMeKNxqjZwLe2HA/DR6O7B1PE=; b=kb37uETahOj+nlD4Rodr6GAA8g r8fURlYIzTPqNag4LqHwvLqDZepgTQoZ2P4UQ1YT4b4E27PcIg62VHfPvHDUOh5gNw7noHlRN6pVy 5s8gV7EfFvJPoazsCO7x91TzbTpzB+Cw61A4TSB7EukiMoZfXBCMRB6vN7LjlvEp6ElXXmpGLJfxB ptMfhpo+37EOLcfMcJtI4RfnFBURYCzXpeP/rbZCvE46PxGtgB0WetugBXLVkdkMWPTOMArfrgDvT DOSvr1XQ46U/sMzKM1ie90HLv/M2gHPzWAdyc4iO+LtRHryNgtwBd8x9WPMGlEw98tGKB9XojX8vd E7ORlwrA==; Received: from e0022681537dd.dyn.armlinux.org.uk ([fd8f:7570:feb6:1:222:68ff:fe15:37dd]:57224 helo=rmk-PC.armlinux.org.uk) 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 1nCOOf-00028E-6q; Tue, 25 Jan 2022 16:10:17 +0000 Received: from rmk by rmk-PC.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1nCOOe-005L92-JE; Tue, 25 Jan 2022 16:10:16 +0000 In-Reply-To: References: From: "Russell King (Oracle)" To: Michal Simek , Harini Katakam , Radhey Shyam Pandey Cc: Sean Anderson , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH net-next 2/2] net: axienet: replace mdiobus_write() with mdiodev_write() MIME-Version: 1.0 Content-Disposition: inline Message-Id: Date: Tue, 25 Jan 2022 16:10:16 +0000 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220125_081020_952103_84B4550C X-CRM114-Status: GOOD ( 10.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Commit 0ebecb2644c8 ("net: mdio: Add helper functions for accessing MDIO devices") added support for mdiodev accessor operations that neatly wrap the mdiobus accessor operations. Since we are dealing with a mdio device here, update the driver to use mdiodev_write(). Tested-by: Harini Katakam Signed-off-by: Russell King (Oracle) --- drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c index 1ebdf1c62db8..de0a6372ae0e 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c @@ -1568,8 +1568,7 @@ static int axienet_pcs_config(struct phylink_pcs *pcs, unsigned int mode, int ret; if (lp->switch_x_sgmii) { - ret = mdiobus_write(pcs_phy->bus, pcs_phy->addr, - XLNX_MII_STD_SELECT_REG, + ret = mdiodev_write(pcs_phy, XLNX_MII_STD_SELECT_REG, interface == PHY_INTERFACE_MODE_SGMII ? XLNX_MII_STD_SELECT_SGMII : 0); if (ret < 0) { -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel