From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U3kBw-0005wb-GW for barebox@lists.infradead.org; Fri, 08 Feb 2013 09:24:20 +0000 Received: from dude.hi.pengutronix.de ([2001:6f8:1178:2:21e:67ff:fe11:9c5c]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1U3kBu-0000x1-Lh for barebox@lists.infradead.org; Fri, 08 Feb 2013 10:24:18 +0100 Received: from sha by dude.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1U3kBu-0008GD-KR for barebox@lists.infradead.org; Fri, 08 Feb 2013 10:24:18 +0100 From: Sascha Hauer Date: Fri, 8 Feb 2013 10:24:15 +0100 Message-Id: <1360315457-30382-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2] add mdio bus support to miitool To: barebox@lists.infradead.org 2nd version. This adds both the mdio buses and the phy devices to the mdio_bus_type. This is in sync with Linux which also adds the buses (for example i2c_adapter) and the devices (for example i2c devices) to the same bus type. Linux uses a struct device_type pointer in struct device to distinguish between both. As we do not have this struct, we use the type_data field which has the same purpose. ---------------------------------------------------------------- Sascha Hauer (2): net phy: Add mdio buses to mdio_bus_type miitool: Add support for examing mdio bus commands/miitool.c | 94 +++++++++++++++++++++++++++++++++++--------- drivers/net/phy/mdio_bus.c | 18 +++++++++ drivers/net/phy/phy.c | 1 + include/linux/phy.h | 7 ++++ 4 files changed, 101 insertions(+), 19 deletions(-) _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox