From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Scholz Date: Mon, 20 Oct 2003 19:00:44 +0200 Subject: [U-Boot-Users] Fix for MII utils Message-ID: <3F9414BC.8030701@imc-berlin.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi there, the attached patch addresses two MII related issues: a) mii info ignored and always showed info for 32 PHYs b) The "Trick" mentioned in miiphy_info(): " * Trick: we are reading two 16 registers into a 32 bit variable * so we do a 16 read into the high order bits of the variable (big * endian, you know), shift it down 16 bits, and the read the rest." does obviously not work on little endian machines. * Patch by Steven Scholz, 20 Oct 2003 - "mii info " now only shows the info for PHY "addr" as the help message already suggests - Endian fix for miiphy_info() Thanks, Steven