From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 25DB9B70D4 for ; Wed, 24 Nov 2010 08:10:47 +1100 (EST) Subject: Re: [PATCH v1] ppc44x:PHY fixup for USB on canyonlands board From: Benjamin Herrenschmidt To: Stefan Roese In-Reply-To: <201011231421.02377.sr@denx.de> References: <201011231256.oANCur3N016433@amcc.com> <201011231421.02377.sr@denx.de> Content-Type: text/plain; charset="UTF-8" Date: Wed, 24 Nov 2010 08:10:21 +1100 Message-ID: <1290546621.32570.85.camel@pasglop> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, Rupjyoti Sarmah , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, rsarmah@apm.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > > + setbits8(&bcsr[7], BCSR_USB_EN); > > + udelay(100000); > > + > > + clrbits8(&bcsr[7], BCSR_USB_EN); > > + udelay(100000); > > Thats a total bootup delay of 200ms. Is this really needed? In addition, so large delays should use msleep() if possible (depends how early we are here). Cheers, Ben, > And I suggest to add a few comments to the code explaining why exactly you are > setting/clearing the bits in the BCSR and the GPIO registers. Seconded, Cheers, Ben.