mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] miidev: allow read/write of all registers
@ 2011-01-18 14:59 Baruch Siach
  0 siblings, 0 replies; only message in thread
From: Baruch Siach @ 2011-01-18 14:59 UTC (permalink / raw)
  To: barebox

Ethernet PHY devices have 32 registers, each 16 bits wide. Thus, the size of
the phy device should be 64 bytes.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 drivers/net/miidev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/miidev.c b/drivers/net/miidev.c
index 343eb40..b4c6948 100644
--- a/drivers/net/miidev.c
+++ b/drivers/net/miidev.c
@@ -183,7 +183,7 @@ static int miidev_probe(struct device_d *dev)
 	struct mii_device *mdev = dev->priv;
 
 	mdev->cdev.name = asprintf("phy%d", dev->id);
-	mdev->cdev.size = 32;
+	mdev->cdev.size = 64;
 	mdev->cdev.ops = &miidev_ops;
 	mdev->cdev.priv = mdev;
 	mdev->cdev.dev = dev;
-- 
1.7.2.3


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-01-18 15:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-18 14:59 [PATCH] miidev: allow read/write of all registers Baruch Siach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox