From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <411381C7.4010705@rossvideo.com> Date: Fri, 06 Aug 2004 09:04:07 -0400 From: Ralph Siemsen MIME-Version: 1.0 To: Geert Uytterhoeven Cc: Linux PPC Dev , Matt Porter Subject: Re: [PATCH] 44x ethernet MDIO access References: <41128413.7030900@rossvideo.com> <41129315.600@rossvideo.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Sender: owner-linuxppc-dev@lists.linuxppc.org List-Id: Geert Uytterhoeven wrote: >>- udelay(MDIO_DELAY); >>+ count = 0; >>+ while (((stacr = in_be32(&emacp->em0stacr) & EMAC_STACR_OC) == 0) >>+ && (count++ < 5000)) > > ^^^^ > MDIO_DELAY? > > And perhaps you want to create a (possibly inlined) function just for this > loop? Good catch - yes, should be MDIO_DELAY not 5000. I had found that 50 was not enough so I had upped it in my testing - forgot to change it back :( I'd also suggest the default MDIO_DELAY be increased from its present value of 50 to perhaps 100 or 150... Does anyone know what the slowest possible EPB clock speed is? -R ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/