9
0
Fork 0

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>
This commit is contained in:
Baruch Siach 2011-01-18 16:59:12 +02:00 committed by Sascha Hauer
parent 4fb2d9ce0a
commit 2f39e0604e
1 changed files with 1 additions and 1 deletions

View File

@ -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;