From patchwork Mon Jun 19 09:49:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiawen Wu X-Patchwork-Id: 13284252 X-Patchwork-Delegate: kuba@kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 BE180BE6D for ; Mon, 19 Jun 2023 09:36:56 +0000 (UTC) Received: from smtpbguseast2.qq.com (smtpbguseast2.qq.com [54.204.34.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E67ACAF for ; Mon, 19 Jun 2023 02:36:48 -0700 (PDT) X-QQ-mid: bizesmtp65t1687167308th49ip9u Received: from wxdbg.localdomain.com ( [122.235.139.240]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 19 Jun 2023 17:34:58 +0800 (CST) X-QQ-SSF: 01400000000000J0Z000000A0000000 X-QQ-FEAT: +ynUkgUhZJm9MO0hB0Dc/gnmzMfNXpy8+affs+IFj0YqwjJlMPL+vCXspfRcA 9FUIshKtIc43VPgj7R9Id9/+AJWPuKZ45WKLPtcMb6t1lnfJkTW/n/IzOt427yIPomssYQl WKTXzAPB35DJiwqJZOuZhGh0ahQN+vAbpo4OFgYO60TLDchxP9PHA8LgyRyQLkYwndnHwGw z+HmYDbXO794JZb0m8nbzjshepC6E4xXnl4v/CfQTxzlnEbMDyOo5B8ldQZjCkf38ImxbE1 jUktTyMwGo5nix5V50V0hrAtP04lJko/6xnaC/UNFdHtgVHq5tWMWNKj/+B2Wj9cDNWOQNX 2LWykfGrPmPME1Ln0sUfDII+fe6uNdF5rAYYTDn5YpN7m2fN39QwXywvZqGfA== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 5743408101749244496 From: Jiawen Wu To: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org Cc: Jiawen Wu Subject: [PATCH net] net: mdio: fix the wrong parameters Date: Mon, 19 Jun 2023 17:49:48 +0800 Message-Id: <20230619094948.84452-1-jiawenwu@trustnetic.com> X-Mailer: git-send-email 2.27.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:trustnetic.com:qybglogicsvrgz:qybglogicsvrgz5a-1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Patchwork-Delegate: kuba@kernel.org PHY address and device address are passed in the wrong order. Fixes: 4e4aafcddbbf ("net: mdio: Add dedicated C45 API to MDIO bus drivers") Signed-off-by: Jiawen Wu Reviewed-by: Andrew Lunn Reviewed-by: Russell King (Oracle) --- drivers/net/phy/mdio_bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c index 389f33a12534..8b3618d3da4a 100644 --- a/drivers/net/phy/mdio_bus.c +++ b/drivers/net/phy/mdio_bus.c @@ -1287,7 +1287,7 @@ EXPORT_SYMBOL_GPL(mdiobus_modify_changed); * @mask: bit mask of bits to clear * @set: bit mask of bits to set */ -int mdiobus_c45_modify_changed(struct mii_bus *bus, int devad, int addr, +int mdiobus_c45_modify_changed(struct mii_bus *bus, int addr, int devad, u32 regnum, u16 mask, u16 set) { int err;