[U-Boot] [PATCH 14/16] usb: ohci: Skip unnecessary mdelay(1) calls in various places
Marek Vasut
marex at denx.de
Wed May 6 01:01:50 CEST 2015
On Tuesday, May 05, 2015 at 11:56:17 PM, Hans de Goede wrote:
> For some reason the ohci code is full with:
>
> pkt_print(...)
> mdelay(1);
>
> 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>
You might as well define a ohcidelay(1) function to avoid poluting the
code with ifdefs .
Best regards,
Marek Vasut
More information about the U-Boot
mailing list