[U-Boot] [PATCH v5 12/15] usb: ohci: Skip unnecessary mdelay(1) calls in various places
Simon Glass
sjg at chromium.org
Tue May 12 00:37:30 CEST 2015
On 10 May 2015 at 10:12, Marek Vasut <marex at denx.de> wrote:
> On Sunday, May 10, 2015 at 02:10:24 PM, Hans de Goede wrote:
>> For some reason the ohci code is full with:
>>
>> #ifdef DEBUG
>> pkt_print(...)
>> #else
>> mdelay(1);
>> #endif
>>
>> AFAICT there is no reason for the mdelay(1) calls. This commit disables
>> them when building the ohci code for new driver-model using boards. It
>> leaves the mdelay(1) calls in place when building for older boards, so as
>> to avoid causing any regressions there.
>>
>> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
>
> Maybe those debug prints can be abstracted into one single function instead
> of having the code littered with #ifdef-else-endif , but let's do that later
> or in another patch.
>
> Acked-by: Marek Vasut <marex at denx.de>
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list