From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Wed, 6 May 2015 01:01:50 +0200 Subject: [U-Boot] [PATCH 14/16] usb: ohci: Skip unnecessary mdelay(1) calls in various places In-Reply-To: <1430862979-4684-15-git-send-email-hdegoede@redhat.com> References: <1430862979-4684-1-git-send-email-hdegoede@redhat.com> <1430862979-4684-15-git-send-email-hdegoede@redhat.com> Message-ID: <201505060101.50575.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 You might as well define a ohcidelay(1) function to avoid poluting the code with ifdefs . Best regards, Marek Vasut