[PATCHv5 2.6.34-rc4 4/5] mxc: Add generic USB HW initialization for MX51

Grant Likely grant.likely at secretlab.ca
Mon Apr 19 21:18:42 EDT 2010


On Mon, Apr 19, 2010 at 7:13 PM, Daniel Mack <daniel at caiaq.de> wrote:
> On Mon, Apr 19, 2010 at 05:27:03PM -0500, Dinh.Nguyen at freescale.com wrote:
>> +             /* allow controller to reset, and leave time for
>> +              * the ULPI transceiver to reset too.
>> +              */
>> +             msleep(100);
>
> Does the sleep really need to be that long? You're holding off the
> kernel's by that. If we can reduce that, we should certainly do so.

msleep() should be fine since Linux will schedule something else.
mdelay(100) would be bad indeed.

g.



More information about the linux-arm-kernel mailing list