[PATCH] {PATCH] Fix IBM EMAC driver ioctl bug

Fix IBM EMAC driver ioctl bug.

I found IBM EMAC driver bug.
So mii-tool command print wrong status.

# mii-tool
eth0: 10 Mbit, half duplex, no link
eth1: 10 Mbit, half duplex, no link

I can get correct status on fixed kernel.

# mii-tool
eth0: negotiated 100baseTx-FD, link okZZ
eth1: negotiated 100baseTx-FD, link ok

Hiroaki Fuse

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> for CELF

authored by

Geoff Levand and committed by
Jeff Garzik
99718699 f7a3aae1

+1 -1
+1 -1
drivers/net/ibm_emac/ibm_emac_core.c
··· 1595 1595 static int emac_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) 1596 1596 { 1597 1597 struct ocp_enet_private *fep = dev->priv; 1598 - uint *data = (uint *) & rq->ifr_ifru; 1598 + uint16_t *data = (uint16_t *) & rq->ifr_ifru; 1599 1599 1600 1600 switch (cmd) { 1601 1601 case SIOCGMIIPHY: