All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] usb: ohci: Add header file for ARCH_DMA_MINALIGN
@ 2020-05-30 16:29 Simon Glass
  2020-05-30 16:29 ` [PATCH 2/2] dma-mapping: " Simon Glass
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Simon Glass @ 2020-05-30 16:29 UTC (permalink / raw)
  To: u-boot

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@gmail.com>
Signed-off-by: Simon Glass <sjg@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

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/2] dma-mapping: Add header file for ARCH_DMA_MINALIGN
  2020-05-30 16:29 [PATCH 1/2] usb: ohci: Add header file for ARCH_DMA_MINALIGN Simon Glass
@ 2020-05-30 16:29 ` Simon Glass
  2020-05-30 17:20   ` Tom Rini
  2020-06-03 16:27   ` Tom Rini
  2020-05-30 16:35 ` [PATCH 1/2] usb: ohci: " Adam Ford
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 10+ messages in thread
From: Simon Glass @ 2020-05-30 16:29 UTC (permalink / raw)
  To: u-boot

This is defined in the asm/cache.h header file. Update this header file to
include it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/linux/dma-mapping.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h
index 20b6d60dd8..6a107d52e0 100644
--- a/include/linux/dma-mapping.h
+++ b/include/linux/dma-mapping.h
@@ -2,6 +2,7 @@
 #ifndef _LINUX_DMA_MAPPING_H
 #define _LINUX_DMA_MAPPING_H
 
+#include <asm/cache.h>
 #include <linux/dma-direction.h>
 #include <linux/types.h>
 #include <asm/dma-mapping.h>
-- 
2.27.0.rc0.183.gde8f92d652-goog

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 1/2] usb: ohci: Add header file for ARCH_DMA_MINALIGN
  2020-05-30 16:29 [PATCH 1/2] usb: ohci: Add header file for ARCH_DMA_MINALIGN Simon Glass
  2020-05-30 16:29 ` [PATCH 2/2] dma-mapping: " Simon Glass
@ 2020-05-30 16:35 ` Adam Ford
  2020-05-30 17:28 ` Tom Rini
  2020-06-03 16:27 ` Tom Rini
  3 siblings, 0 replies; 10+ messages in thread
From: Adam Ford @ 2020-05-30 16:35 UTC (permalink / raw)
  To: u-boot

On Sat, May 30, 2020 at 11:29 AM Simon Glass <sjg@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@gmail.com>
> Reported-by: Adam Ford <aford173@gmail.com>
> Signed-off-by: Simon Glass <sjg@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
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 2/2] dma-mapping: Add header file for ARCH_DMA_MINALIGN
  2020-05-30 16:29 ` [PATCH 2/2] dma-mapping: " Simon Glass
@ 2020-05-30 17:20   ` Tom Rini
  2020-05-30 17:27     ` Tom Rini
  2020-06-03 16:27   ` Tom Rini
  1 sibling, 1 reply; 10+ messages in thread
From: Tom Rini @ 2020-05-30 17:20 UTC (permalink / raw)
  To: u-boot

On Sat, May 30, 2020 at 10:29:04AM -0600, Simon Glass wrote:

> This is defined in the asm/cache.h header file. Update this header file to
> include it.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>

Reviewed-by: Tom Rini <trini@konsulko.com>

There's also drivers/usb/host/ohci.h and lib/elf.c which also reference
ARCH_DMA_MINALIGN without also logically pulling it in, I'll fix those.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200530/6db53a76/attachment.sig>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 2/2] dma-mapping: Add header file for ARCH_DMA_MINALIGN
  2020-05-30 17:20   ` Tom Rini
@ 2020-05-30 17:27     ` Tom Rini
  2020-05-30 18:15       ` Adam Ford
  2020-05-31 14:10       ` Simon Glass
  0 siblings, 2 replies; 10+ messages in thread
From: Tom Rini @ 2020-05-30 17:27 UTC (permalink / raw)
  To: u-boot

On Sat, May 30, 2020 at 01:20:10PM -0400, Tom Rini wrote:
> On Sat, May 30, 2020 at 10:29:04AM -0600, Simon Glass wrote:
> 
> > This is defined in the asm/cache.h header file. Update this header file to
> > include it.
> > 
> > Signed-off-by: Simon Glass <sjg@chromium.org>
> 
> Reviewed-by: Tom Rini <trini@konsulko.com>
> 
> There's also drivers/usb/host/ohci.h and lib/elf.c which also reference
> ARCH_DMA_MINALIGN without also logically pulling it in, I'll fix those.

Dunno how I missed that 1/2 is what fixed that one, sorry.  And
lib/elf.c is a problem in theory but would be a fail to build if not
pulled in logically so I'll leave it be for now.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200530/a9625b92/attachment.sig>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 1/2] usb: ohci: Add header file for ARCH_DMA_MINALIGN
  2020-05-30 16:29 [PATCH 1/2] usb: ohci: Add header file for ARCH_DMA_MINALIGN Simon Glass
  2020-05-30 16:29 ` [PATCH 2/2] dma-mapping: " Simon Glass
  2020-05-30 16:35 ` [PATCH 1/2] usb: ohci: " Adam Ford
@ 2020-05-30 17:28 ` Tom Rini
  2020-06-03 16:27 ` Tom Rini
  3 siblings, 0 replies; 10+ messages in thread
From: Tom Rini @ 2020-05-30 17:28 UTC (permalink / raw)
  To: u-boot

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@gmail.com>
> Signed-off-by: Simon Glass <sjg@chromium.org>

Reviewed-by: Tom Rini <trini@konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200530/04c04b61/attachment.sig>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 2/2] dma-mapping: Add header file for ARCH_DMA_MINALIGN
  2020-05-30 17:27     ` Tom Rini
@ 2020-05-30 18:15       ` Adam Ford
  2020-05-31 14:10       ` Simon Glass
  1 sibling, 0 replies; 10+ messages in thread
From: Adam Ford @ 2020-05-30 18:15 UTC (permalink / raw)
  To: u-boot

On Sat, May 30, 2020 at 12:27 PM Tom Rini <trini@konsulko.com> wrote:
>
> On Sat, May 30, 2020 at 01:20:10PM -0400, Tom Rini wrote:
> > On Sat, May 30, 2020 at 10:29:04AM -0600, Simon Glass wrote:
> >
> > > This is defined in the asm/cache.h header file. Update this header file to
> > > include it.
> > >
> > > Signed-off-by: Simon Glass <sjg@chromium.org>
> >

Tested-by: Adam Ford <aford173@gmail.com> #da850-evm

> > Reviewed-by: Tom Rini <trini@konsulko.com>
> >
> > There's also drivers/usb/host/ohci.h and lib/elf.c which also reference
> > ARCH_DMA_MINALIGN without also logically pulling it in, I'll fix those.
>
> Dunno how I missed that 1/2 is what fixed that one, sorry.  And
> lib/elf.c is a problem in theory but would be a fail to build if not
> pulled in logically so I'll leave it be for now.
>
> --
> Tom

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 2/2] dma-mapping: Add header file for ARCH_DMA_MINALIGN
  2020-05-30 17:27     ` Tom Rini
  2020-05-30 18:15       ` Adam Ford
@ 2020-05-31 14:10       ` Simon Glass
  1 sibling, 0 replies; 10+ messages in thread
From: Simon Glass @ 2020-05-31 14:10 UTC (permalink / raw)
  To: u-boot

Hi Tom,

On Sat, 30 May 2020 at 11:27, Tom Rini <trini@konsulko.com> wrote:
>
> On Sat, May 30, 2020 at 01:20:10PM -0400, Tom Rini wrote:
> > On Sat, May 30, 2020 at 10:29:04AM -0600, Simon Glass wrote:
> >
> > > This is defined in the asm/cache.h header file. Update this header file to
> > > include it.
> > >
> > > Signed-off-by: Simon Glass <sjg@chromium.org>
> >
> > Reviewed-by: Tom Rini <trini@konsulko.com>
> >
> > There's also drivers/usb/host/ohci.h and lib/elf.c which also reference
> > ARCH_DMA_MINALIGN without also logically pulling it in, I'll fix those.
>
> Dunno how I missed that 1/2 is what fixed that one, sorry.  And
> lib/elf.c is a problem in theory but would be a fail to build if not
> pulled in logically so I'll leave it be for now.

Yes I think the issue is the #ifdef default. Probably that should be
removed at some point as it is quite risky to have that sort of thing.

Regards,
Simon

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 1/2] usb: ohci: Add header file for ARCH_DMA_MINALIGN
  2020-05-30 16:29 [PATCH 1/2] usb: ohci: Add header file for ARCH_DMA_MINALIGN Simon Glass
                   ` (2 preceding siblings ...)
  2020-05-30 17:28 ` Tom Rini
@ 2020-06-03 16:27 ` Tom Rini
  3 siblings, 0 replies; 10+ messages in thread
From: Tom Rini @ 2020-06-03 16:27 UTC (permalink / raw)
  To: u-boot

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@gmail.com>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Tested-by: Adam Ford <aford173@gmail.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200603/96f276ea/attachment.sig>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 2/2] dma-mapping: Add header file for ARCH_DMA_MINALIGN
  2020-05-30 16:29 ` [PATCH 2/2] dma-mapping: " Simon Glass
  2020-05-30 17:20   ` Tom Rini
@ 2020-06-03 16:27   ` Tom Rini
  1 sibling, 0 replies; 10+ messages in thread
From: Tom Rini @ 2020-06-03 16:27 UTC (permalink / raw)
  To: u-boot

On Sat, May 30, 2020 at 10:29:04AM -0600, Simon Glass wrote:

> This is defined in the asm/cache.h header file. Update this header file to
> include it.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Tom Rini <trini@konsulko.com>
> Tested-by: Adam Ford <aford173@gmail.com> #da850-evm

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200603/c038aef5/attachment.sig>

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-06-03 16:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-30 16:29 [PATCH 1/2] usb: ohci: Add header file for ARCH_DMA_MINALIGN Simon Glass
2020-05-30 16:29 ` [PATCH 2/2] dma-mapping: " Simon Glass
2020-05-30 17:20   ` Tom Rini
2020-05-30 17:27     ` Tom Rini
2020-05-30 18:15       ` Adam Ford
2020-05-31 14:10       ` Simon Glass
2020-06-03 16:27   ` Tom Rini
2020-05-30 16:35 ` [PATCH 1/2] usb: ohci: " Adam Ford
2020-05-30 17:28 ` Tom Rini
2020-06-03 16:27 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.