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:
parent
4fb2d9ce0a
commit
2f39e0604e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue