diff mbox series

[1/2] usb: ohci: Add header file for ARCH_DMA_MINALIGN

Message ID 20200530102901.1.If199dabafae549dee591e7cfbd7df2be1b306d08@changeid
State Accepted
Commit 72be2375614a6e5036a8c3207b187ac318a74991
Headers show
Series [1/2] usb: ohci: Add header file for ARCH_DMA_MINALIGN | expand

Commit Message

Simon Glass May 30, 2020, 4:29 p.m. UTC
This is defined in the asm/cache.h header file. Update this header file to
include it so it gets the same value consistently across U-Boot.

This fixes 'usb host' on omapl138_lcdk.

Fixes: 90526e9fbac ("common: Drop net.h from common header")
Reported-by: Adam Ford <aford173 at gmail.com>
Signed-off-by: Simon Glass <sjg at chromium.org>
---

 drivers/usb/host/ohci.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Adam Ford May 30, 2020, 4:35 p.m. UTC | #1
On Sat, May 30, 2020 at 11:29 AM Simon Glass <sjg at chromium.org> wrote:
>
> This is defined in the asm/cache.h header file. Update this header file to
> include it so it gets the same value consistently across U-Boot.
>
> This fixes 'usb host' on omapl138_lcdk.

Thank you.  This series also fixes the da850-evm.
>
> Fixes: 90526e9fbac ("common: Drop net.h from common header")
Tested-by: Adam Ford <aford173 at gmail.com>
> Reported-by: Adam Ford <aford173 at gmail.com>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  drivers/usb/host/ohci.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/usb/host/ohci.h b/drivers/usb/host/ohci.h
> index 9b264bd92a..a38cd25eb8 100644
> --- a/drivers/usb/host/ohci.h
> +++ b/drivers/usb/host/ohci.h
> @@ -11,6 +11,7 @@
>   * e.g. PCI controllers need this
>   */
>
> +#include <asm/cache.h>
>  #include <asm/io.h>
>
>  #ifdef CONFIG_SYS_OHCI_SWAP_REG_ACCESS
> --
> 2.27.0.rc0.183.gde8f92d652-goog
>
Tom Rini May 30, 2020, 5:28 p.m. UTC | #2
On Sat, May 30, 2020 at 10:29:03AM -0600, Simon Glass wrote:

> This is defined in the asm/cache.h header file. Update this header file to
> include it so it gets the same value consistently across U-Boot.
> 
> This fixes 'usb host' on omapl138_lcdk.
> 
> Fixes: 90526e9fbac ("common: Drop net.h from common header")
> Reported-by: Adam Ford <aford173 at gmail.com>
> Signed-off-by: Simon Glass <sjg at chromium.org>

Reviewed-by: Tom Rini <trini at konsulko.com>
diff mbox series

Patch

diff --git a/drivers/usb/host/ohci.h b/drivers/usb/host/ohci.h
index 9b264bd92a..a38cd25eb8 100644
--- a/drivers/usb/host/ohci.h
+++ b/drivers/usb/host/ohci.h
@@ -11,6 +11,7 @@ 
  * e.g. PCI controllers need this
  */
 
+#include <asm/cache.h>
 #include <asm/io.h>
 
 #ifdef CONFIG_SYS_OHCI_SWAP_REG_ACCESS