[PATCH][RFC] ibm_newemac and SIOCGMIIREG
Steven A. Falco
sfalco at harris.com
Fri Jun 11 07:26:52 EST 2010
On 06/10/2010 04:35 PM, Arnd Bergmann wrote:
>
> It seems that your program is wrong. On my PC here, it also shows zero,
> while mii-tool works fine.
>
You are correct. I didn't realize I should embed the data
in the ifr_data area - I thought I needed to pass a pointer.
Now I see why you avoid that. And since IFNAMSIZ is 16,
there is enough space for the struct mii_ioctl_data. A bit
dirty, but it obviously works.
Anyway, thanks very much for taking the time to debug my
program, and set me straight. Naturally, I withdraw the
patch. :-)
Steve
>
> Arnd
More information about the Linuxppc-dev
mailing list