From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sun, 10 May 2015 18:12:07 +0200 Subject: [U-Boot] [PATCH v5 12/15] usb: ohci: Skip unnecessary mdelay(1) calls in various places In-Reply-To: <1431259827-8109-13-git-send-email-hdegoede@redhat.com> References: <1431259827-8109-1-git-send-email-hdegoede@redhat.com> <1431259827-8109-13-git-send-email-hdegoede@redhat.com> Message-ID: <201505101812.07740.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 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 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 [...] Best regards, Marek Vasut