summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2011-01-18 16:59:12 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-01-19 09:36:06 +0100
commit2f39e0604e6830ec5c76c47b59eb642005f5a5b1 (patch)
treea23a3b7b80b6f6d31cf603b6ab6b012954cb15fa
parent4fb2d9ce0a5adf38d08ecfd5913c21686c7529aa (diff)
downloadbarebox-2f39e0604e6830ec5c76c47b59eb642005f5a5b1.tar.gz
miidev: allow read/write of all registers
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> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/net/miidev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/miidev.c b/drivers/net/miidev.c
index 3d552db..fa9d79e 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;