From: Ben Warren Date: Fri, 19 Jan 2007 21:13:48 -0800 (PST) Subject: [U-Boot-Users] RFC: miiphy changes Message-ID: <193867.85671.qm@web302.biz.mail.mud.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, For my custom board, I've had to make some changes to the 'miiphy' code in order to handle 'IEEE 802.3ae clause 25' framing. While similar to the typical MDIO framing, this 10GbE extension adds a couple of operation types and uses a different start delimiter. The existing miiphy code defines a structure with read and write function pointers: struct mii_dev { struct list_head link; char *name; int (* read)(char *devname, unsigned char addr, unsigned char reg, unsigned short *value); int (* write)(char *devname, unsigned char addr, unsigned char reg, unsigned short value); }; None of the implementations in the U-boot tree make use of the 'char *devname' parameter, and I'd like to change it to a more useful pointer. Not knowing the history of this code, I'm wary of unintended consequences. I'd obviously prefer to not break anybody's out-of-tree code, but that can never be guaranteed. If anyone has anecdotes or opinions, please let me know. Otherwise, I'll submit a patch within the next few days. regards, Ben