Add support for 802.3ae [...]
PATCH 1/2 Add support for 802.3ae [...]
Hello list,
inside the automatic U-Boot patch tracking system a new ticket [DNX#2007012542000048] was created:
<snip>
Quoted 9 lines · Ben Warren
Quoted 2 lines
+int
miiphy_set_attribute(char *devname, enum miiphy_attr attr, void *value)Maybe it's just me, but the need for a function like this just screams "give ownership of struct
mii_devback to the driver". And it's not really about "attributes" at all -- it's about callbacks, so I think the function is misnamed.
Quoted 4 lines
Why not simply let the driver allocate its own struct
mii_devand initialize it as it sees fit? It would simplify the interface a lot.Haavard
</snip>
Your U-Boot support team