Re: [U-Boot] [PATCH RFC] smc911x: enable mii commands

2011-07-04 Thread Helmut Raiger
On 06/30/2011 04:02 PM, Luca Ceresoli wrote: > +static int smc911x_miiphy_read_byname(char *devname, unsigned char addr, > + unsigned char reg, unsigned short *value) > +{ > + struct eth_device *dev; > + > + if (devname == NULL) > + return -1; >

[U-Boot] [PATCH RFC] smc911x: enable mii commands

2011-06-30 Thread Luca Ceresoli
Signed-off-by: Luca Ceresoli --- This patch is my implementation of the same functionality that Helmut's patch implements. I'm sending it as a reference for him to look at the error checking code and possibly merge it into his own patch. drivers/net/smc911x.c | 41 +