ARM: omap1: move omap15xx local bus handling to usb.c
Subsystems (6)
PATCH 1/1 ARM: omap1: move omap15xx local bus handling to usb.c
From: Arnd Bergmann <[email protected]>
Commit 38225f2ef2f4 ("ARM/omap1: switch to use dma_direct_set_offset for lbus DMA offsets") removed a lot of mach/memory.h, but left the USB offset handling split into arch/arm/mach-omap1/usb.c and drivers/usb/host/ohci-omap.c.
This can cause a randconfig build warning that now fails the build with -Werror:
arch/arm/mach-omap1/usb.c:561:30: error: 'omap_1510_usb_ohci_nb' defined but not used [-Werror=unused-variable]
561 | static struct notifier_block omap_1510_usb_ohci_nb = {
| ^~~~~~~~~~~~~~~~~~~~~Move it all into the platform file to get rid of the final location that relies on mach/memory.h.
---
If there are no objections, I'd apply this to the soc tree for 5.16, or let Tony pick it up into his tree. This was originally part of a longer series to bring omap1 closer to an allmodconfig build. If I manage to find some time, I'll also try to resurrect the rest of that series.
--- arch/arm/mach-omap1/include/mach/memory.h | 12 --- arch/arm/mach-omap1/usb.c | 116 +++++++++++++++------- drivers/usb/host/ohci-omap.c | 72 +------------- include/linux/platform_data/usb-omap1.h | 2 + 4 files changed, 86 insertions(+), 116 deletions(-)
arch/arm/mach-omap1/include/mach/memory.h +0 -12
@@ -9,16 +9,4 @@/* REVISIT: omap1 legacy drivers still rely on this */ #include <mach/soc.h> -/* -* Bus address is physical address, except for OMAP-1510 Local Bus. -* OMAP-1510 bus address is translated into a Local Bus address if the -* OMAP bus type is lbus. We do the address translation based on the -* device overriding the defaults used in the dma-mapping API. -*/ - -/* -* OMAP-1510 Local Bus address offset -*/ -#define OMAP1510_LB_OFFSET UL(0x30000000) -#endif
arch/arm/mach-omap1/usb.c +82 -34
168 lines not on this page · raw message
drivers/usb/host/ohci-omap.c +2 -70
90 lines not on this page · raw message
include/linux/platform_data/usb-omap1.h +2 -0
@@ -48,6 +48,8 @@ struct omap_usb_config {u32 (*usb2_init)(unsigned nwires,unsigned alt_pingroup);int (*ocpi_enable)(void ); + + void (*lb_reset)(void); };#endif /* __LINUX_USB_OMAP1_H */
Signature · 1 line
2.29.2
Quoted 11 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
Commit
38225f2ef2f4("ARM/omap1: switch to usedma_direct_set_offsetfor lbus DMA offsets") removed a lot ofmach/memory.h, but left the USB offset handling split intoarch/arm/mach-omap1/usb.canddrivers/usb/host/ohci-omap.c.This can cause a randconfig build warning that now fails the build with -Werror:
arch/arm/mach-omap1/usb.c:561:30: error: 'omap_1510_usb_ohci_nb' defined but not used [-Werror=unused-variable]
Quoted 8 lines
561 | static struct notifier_block omap_1510_usb_ohci_nb = { | ^~~~~~~~~~~~~~~~~~~~~Move it all into the platform file to get rid of the final location that relies on
mach/memory.h.Acked-by Felipe Balbi <[email protected]>Signed-off-by Arnd Bergmann <[email protected]>
For the ohci-omap.c portion:
Quoted 6 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
If there are no objections, I'd apply this to the soc tree for 5.16, or let Tony pick it up into his tree. This was originally part of a longer series to bring omap1 closer to an allmodconfig build. If I manage to find some time, I'll also try to resurrect the rest of that series.
Looks good to me, it should not conflict with anything else so please feel free to apply:
Quoted 17 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
Commit
38225f2ef2f4("ARM/omap1: switch to usedma_direct_set_offsetfor lbus DMA offsets") removed a lot ofmach/memory.h, but left the USB offset handling split intoarch/arm/mach-omap1/usb.canddrivers/usb/host/ohci-omap.c.This can cause a randconfig build warning that now fails the build with -Werror:
arch/arm/mach-omap1/usb.c:561:30: error: 'omap_1510_usb_ohci_nb' defined but not used [-Werror=unused-variable]561 | static struct notifier_block omap_1510_usb_ohci_nb = { | ^~~~~~~~~~~~~~~~~~~~~Move it all into the platform file to get rid of the final location that relies on
mach/memory.h.
Quoted 8 lines
Acked-by Felipe Balbi <[email protected]>Signed-off-by Arnd Bergmann <[email protected]>---
If there are no objections, I'd apply this to the soc tree for 5.16, or let Tony pick it up into his tree. This was originally part of a longer series to bring omap1 closer to an allmodconfig build. If I manage to find some time, I'll also try to resurrect the rest of that series.
This patch was applied to soc/soc.git (refs/heads/arm/fixes):
Hello:
This patch was applied to soc/soc.git (refs/heads/arm/fixes):
Quoted 8 lines · On Mon, 27 Sep 2021 16:40:50 +0200 you wrote:
From: Arnd Bergmann <[email protected]>
Commit
38225f2ef2f4("ARM/omap1: switch to usedma_direct_set_offsetfor lbus DMA offsets") removed a lot ofmach/memory.h, but left the USB offset handling split intoarch/arm/mach-omap1/usb.canddrivers/usb/host/ohci-omap.c.[...]
Here is the summary with links:
- ARM: omap1: move omap15xx local bus handling to usb.c
https://git.kernel.org/soc/soc/c/94ad8aacbc2d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html