From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jC2L7-00049M-AA for barebox@lists.infradead.org; Wed, 11 Mar 2020 14:28:08 +0000 From: Sascha Hauer Date: Wed, 11 Mar 2020 15:27:44 +0100 Message-Id: <20200311142757.25263-4-s.hauer@pengutronix.de> In-Reply-To: <20200311142757.25263-1-s.hauer@pengutronix.de> References: <20200311142757.25263-1-s.hauer@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 03/16] net: phy: mdio-mux: Use mdiobus_read/write() To: Barebox List Cc: Edmund Henniges , =?UTF-8?q?Daniel=20Gl=C3=B6ckner?= Using the callbacks directly bypasses acquiring the slice. Signed-off-by: Sascha Hauer --- drivers/net/phy/mdio-mux.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/phy/mdio-mux.c b/drivers/net/phy/mdio-mux.c index aa63cbde97..1e6278ef35 100644 --- a/drivers/net/phy/mdio-mux.c +++ b/drivers/net/phy/mdio-mux.c @@ -37,11 +37,10 @@ static int mdio_mux_read_or_write(struct mii_bus *bus, int phy_id, if (!r) { pb->current_child = cb->bus_number; if (val) - r = pb->mii_bus->write(pb->mii_bus, phy_id, + r = mdiobus_write (pb->mii_bus, phy_id, regnum, *val); else - r = pb->mii_bus->read(pb->mii_bus, phy_id, - regnum); + r = mdiobus_read(pb->mii_bus, phy_id, regnum); } return r; } -- 2.25.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox