Updated status of the removal of plat headers
Subsystems (7)
Tony Lindgren
maintainerHi all,
Here's a quick status update on the removal of remaining #include <plat/*.h> files. Most files are now fixed up, and we only have the following remaining:
cpu.h wrapper only left, will be removed as soon as drivers are fixed
dmtimer.h Jon is fixing this
mailbox.h Omar, are you fixing this?
omap-serial.h this will be dealt with mostly by Russell
prcm.h Paul has posted patches for this, missing move of the header
sdrc.h Paul has posted patches for this, missing move of the header
timex.h Igor is looking into this
usb.h Felipe, Kishon & Keshawa, are you fixing this?
vram.h Tomi is fixing this
vrfb.h Tomi is fixing this
I have not yet posted my omap-for-v3.8/cleanup-headers branch as I'm waiting for a minimal tty branch from Greg for the 8250 changes, and acks for the menelaus and iommu changes.
Regards,
Tony
Hi
Quoted 3 lines · Tony Lindgren
prcm.hPaul has posted patches for this, missing move of the header
sdrc.hPaul has posted patches for this, missing move of the header
Just to clarify these, I've only posted 1 of 2 series to clean up prcm.h. With luck the second one will be posted within a week.
Also I haven't yet posted a sdrc.h cleanup patch, but it's coming shortly.
- Paul
PATCH 1/1 arm: omap: move OMAP USB platform data to <linux/platform_data/omap-usb.h>
In reply to Tony LindgrenIn order to make single zImage work for ARM architecture, we need to make sure we don't depend on private headers.
Move USB platform_data to <linux/platform_data/omap-usb.h> and keep only internal functions in <plat/usb.h>.
--- arch/arm/mach-omap2/usb-host.c | 1 + arch/arm/mach-omap2/usb-musb.c | 1 + arch/arm/mach-omap2/usb-tusb6010.c | 1 + arch/arm/plat-omap/include/plat/usb.h | 126 +-------------------- drivers/mfd/omap-usb-host.c | 2 +- drivers/usb/musb/am35x.c | 3 +- drivers/usb/musb/musb_dsps.c | 3 +- drivers/usb/musb/omap2430.h | 2 +- .../linux/platform_data/usb-omap.h | 80 +++++-------- 9 files changed, 36 insertions(+), 183 deletions(-) copy arch/arm/plat-omap/include/plat/usb.h => include/linux/platform_data/usb-omap.h (69%)
arch/arm/mach-omap2/usb-host.c +1 -0
@@ -22,6 +22,7 @@#include <linux/platform_device.h> #include <linux/slab.h> #include <linux/dma-mapping.h> +#include <linux/platform_data/usb-omap.h> #include <asm/io.h>
arch/arm/mach-omap2/usb-musb.c +1 -0
@@ -23,6 +23,7 @@#include <linux/clk.h> #include <linux/dma-mapping.h> #include <linux/io.h> +#include <linux/platform_data/usb-omap.h> #include <linux/usb/musb.h> #include <plat/usb.h>
arch/arm/mach-omap2/usb-tusb6010.c +1 -0
@@ -15,6 +15,7 @@#include <linux/platform_device.h> #include <linux/gpio.h> #include <linux/export.h> +#include <linux/platform_data/usb-omap.h> #include <linux/usb/musb.h>
arch/arm/plat-omap/include/plat/usb.h +1 -125
146 lines not on this page · raw message
drivers/mfd/omap-usb-host.c +1 -1
@@ -26,7 +26,7 @@#include <linux/spinlock.h> #include <linux/gpio.h> #include <plat/cpu.h> -#include <plat/usb.h> +#include <linux/platform_data/usb.h> #include <linux/pm_runtime.h> #define USBHS_DRIVER_NAME "usbhs_omap"
drivers/usb/musb/am35x.c +1 -2
@@ -34,8 +34,7 @@#include <linux/platform_device.h> #include <linux/dma-mapping.h> #include <linux/usb/nop-usb-xceiv.h> - -#include <plat/usb.h> +#include <linux/platform_data/usb-omap.h> #include "musb_core.h"
drivers/usb/musb/musb_dsps.c +1 -2
@@ -38,13 +38,12 @@#include <linux/pm_runtime.h> #include <linux/module.h> #include <linux/usb/nop-usb-xceiv.h> +#include <linux/platform_data/usb-omap.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/of_address.h> -#include <plat/usb.h> -#include "musb_core.h" #ifdef CONFIG_OF
drivers/usb/musb/omap2430.h +1 -1
@@ -10,7 +10,7 @@#ifndef __MUSB_OMAP243X_H__#define __MUSB_OMAP243X_H__ -#include <plat/usb.h> +#include <linux/platform_data/usb-omap.h> /* * OMAP2430-specific definitions
include/linux/platform_data/usb-omap.h renamed from arch/arm/plat-omap/include/plat/usb.h +28 -52
106 lines not on this page · raw message
Signature · 1 line
1.8.0.rc0
PATCH 1/1 arm: omap: move OMAP USB platform data to <linux/platform_data/omap-usb.h>
Hi,
Quoted 120 lines · Felipe Balbi
In order to make single zImage work for ARM architecture, we need to make sure we don't depend on private headers.
Move USB
platform_datato <linux/platform_data/omap-usb.h> and keep only internal functions in <plat/usb.h>.Signed-off-by Felipe Balbi <[email protected]>--- arch/arm/mach-omap2/usb-host.c | 1 + arch/arm/mach-omap2/usb-musb.c | 1 + arch/arm/mach-omap2/usb-tusb6010.c | 1 + arch/arm/plat-omap/include/plat/usb.h | 126 +-------------------- drivers/mfd/omap-usb-host.c | 2 +- drivers/usb/musb/am35x.c | 3 +- drivers/usb/musb/musb_dsps.c | 3 +- drivers/usb/musb/omap2430.h | 2 +- .../linux/platform_data/usb-omap.h | 80 +++++-------- 9 files changed, 36 insertions(+), 183 deletions(-) copy arch/arm/plat-omap/include/plat/usb.h => include/linux/platform_data/usb-omap.h (69%)arch/arm/mach-omap2/usb-host.c +1
-0@@ -22,6 +22,7 @@#include <linux/platform_device.h> #include <linux/slab.h> #include <linux/dma-mapping.h> +#include <linux/platform_data/usb-omap.h> #include <asm/io.h> arch/arm/mach-omap2/usb-musb.c +1
-0@@ -23,6 +23,7 @@#include <linux/clk.h> #include <linux/dma-mapping.h> #include <linux/io.h> +#include <linux/platform_data/usb-omap.h> #include <linux/usb/musb.h> #include <plat/usb.h> arch/arm/mach-omap2/usb-tusb6010.c +1
-0@@ -15,6 +15,7 @@#include <linux/platform_device.h> #include <linux/gpio.h> #include <linux/export.h> +#include <linux/platform_data/usb-omap.h> #include <linux/usb/musb.h> arch/arm/plat-omap/include/plat/usb.h +1
-51@@ -3,86 +3,15 @@#ifndef __ASM_ARCH_OMAP_USB_H#define __ASM_ARCH_OMAP_USB_H -#include <linux/io.h> #include <linux/platform_device.h> -#include <linux/usb/musb.h> - -#define OMAP3_HS_USB_PORTS 3 - -enum usbhs_omap_port_mode { -OMAP_USBHS_PORT_MODE_UNUSED , -OMAP_EHCI_PORT_MODE_PHY , -OMAP_EHCI_PORT_MODE_TLL , -OMAP_EHCI_PORT_MODE_HSIC , -OMAP_OHCI_PORT_MODE_PHY_6PIN_DATSE0 , -OMAP_OHCI_PORT_MODE_PHY_6PIN_DPDM , -OMAP_OHCI_PORT_MODE_PHY_3PIN_DATSE0 , -OMAP_OHCI_PORT_MODE_PHY_4PIN_DPDM , -OMAP_OHCI_PORT_MODE_TLL_6PIN_DATSE0 , -OMAP_OHCI_PORT_MODE_TLL_6PIN_DPDM , -OMAP_OHCI_PORT_MODE_TLL_3PIN_DATSE0 , -OMAP_OHCI_PORT_MODE_TLL_4PIN_DPDM , -OMAP_OHCI_PORT_MODE_TLL_2PIN_DATSE0 , -OMAP_OHCI_PORT_MODE_TLL_2PIN_DPDM -}; - -struct usbhs_omap_board_data { -enum usbhs_omap_port_mode port_mode[OMAP3_HS_USB_PORTS ]; - -/* have to be valid if phy_reset is true and portx is in phy mode */ -int reset_gpio_port[OMAP3_HS_USB_PORTS ]; - -/* Set this to true for ES2.x silicon */ -unsigned es2_compatibility:1 ; - -unsigned phy_reset:1 ; - -/* -* Regulators for USB PHYs. -* Each PHY can have a separate regulator. -*/ -struct regulator *regulator[OMAP3_HS_USB_PORTS ]; -}; +#include <linux/platform_data/usb-omap.h> #ifdef CONFIG_ARCH_OMAP2PLUS -struct ehci_hcd_omap_platform_data { -enum usbhs_omap_port_mode port_mode[OMAP3_HS_USB_PORTS ]; -int reset_gpio_port[OMAP3_HS_USB_PORTS ]; -struct regulator *regulator[OMAP3_HS_USB_PORTS ]; -unsigned phy_reset:1 ; -}; - -struct ohci_hcd_omap_platform_data { -enum usbhs_omap_port_mode port_mode[OMAP3_HS_USB_PORTS ]; -unsigned es2_compatibility:1 ; -}; -
arch/arm/plat-omap/include/plat/usb.h line 14
Quoted 10 lines
arch/arm/plat-omap/include/plat/usb.h +0
-6-struct usbhs_omap_platform_data { -enum usbhs_omap_port_mode port_mode[OMAP3_HS_USB_PORTS ]; - -struct ehci_hcd_omap_platform_data *ehci_data; -struct ohci_hcd_omap_platform_data *ohci_data; -};struct usbtll_omap_platform_data {enum usbhs_omap_port_mode port_mode[OMAP3_HS_USB_PORTS ]; };
looks like should be moved too... I'll respin the patch.
Signature · 8 lines
balbi -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20121017/c35f9a6e/attachment-0001.sig>
PATCH v2 1/1 arm: omap: move OMAP USB platform data to <linux/platform_data/omap-usb.h>
In reply to Tony LindgrenIn order to make single zImage work for ARM architecture, we need to make sure we don't depend on private headers.
Move USB platform_data to <linux/platform_data/omap-usb.h> and keep only internal functions in <plat/usb.h>.
--- arch/arm/mach-omap2/usb-host.c | 1 + arch/arm/mach-omap2/usb-musb.c | 1 + arch/arm/mach-omap2/usb-tusb6010.c | 1 + arch/arm/plat-omap/include/plat/usb.h | 130 +-------------------- drivers/mfd/omap-usb-host.c | 2 +- drivers/usb/musb/am35x.c | 3 +- drivers/usb/musb/musb_dsps.c | 3 +- drivers/usb/musb/omap2430.h | 2 +- .../linux/platform_data/usb-omap.h | 84 +++++-------- 9 files changed, 40 insertions(+), 187 deletions(-) copy arch/arm/plat-omap/include/plat/usb.h => include/linux/platform_data/usb-omap.h (71%)
arch/arm/mach-omap2/usb-host.c +1 -0
@@ -22,6 +22,7 @@#include <linux/platform_device.h> #include <linux/slab.h> #include <linux/dma-mapping.h> +#include <linux/platform_data/usb-omap.h> #include <asm/io.h>
arch/arm/mach-omap2/usb-musb.c +1 -0
@@ -23,6 +23,7 @@#include <linux/clk.h> #include <linux/dma-mapping.h> #include <linux/io.h> +#include <linux/platform_data/usb-omap.h> #include <linux/usb/musb.h> #include <plat/usb.h>
arch/arm/mach-omap2/usb-tusb6010.c +1 -0
@@ -15,6 +15,7 @@#include <linux/platform_device.h> #include <linux/gpio.h> #include <linux/export.h> +#include <linux/platform_data/usb-omap.h> #include <linux/usb/musb.h>
arch/arm/plat-omap/include/plat/usb.h +1 -129
146 lines not on this page · raw message
drivers/mfd/omap-usb-host.c +1 -1
@@ -26,7 +26,7 @@#include <linux/spinlock.h> #include <linux/gpio.h> #include <plat/cpu.h> -#include <plat/usb.h> +#include <linux/platform_data/usb.h> #include <linux/pm_runtime.h> #define USBHS_DRIVER_NAME "usbhs_omap"
drivers/usb/musb/am35x.c +1 -2
@@ -34,8 +34,7 @@#include <linux/platform_device.h> #include <linux/dma-mapping.h> #include <linux/usb/nop-usb-xceiv.h> - -#include <plat/usb.h> +#include <linux/platform_data/usb-omap.h> #include "musb_core.h"
drivers/usb/musb/musb_dsps.c +1 -2
@@ -38,13 +38,12 @@#include <linux/pm_runtime.h> #include <linux/module.h> #include <linux/usb/nop-usb-xceiv.h> +#include <linux/platform_data/usb-omap.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/of_address.h> -#include <plat/usb.h> -#include "musb_core.h" #ifdef CONFIG_OF
drivers/usb/musb/omap2430.h +1 -1
@@ -10,7 +10,7 @@#ifndef __MUSB_OMAP243X_H__#define __MUSB_OMAP243X_H__ -#include <plat/usb.h> +#include <linux/platform_data/usb-omap.h> /* * OMAP2430-specific definitions
include/linux/platform_data/usb-omap.h renamed from arch/arm/plat-omap/include/plat/usb.h +32 -52
116 lines not on this page · raw message
Signature · 1 line
1.8.0.rc0
Tony Lindgren
maintainerPATCH v2 1/1 arm: omap: move OMAP USB platform data to <linux/platform_data/omap-usb.h>
Quoted 5 lines · Felipe Balbi
In order to make single zImage work for ARM architecture, we need to make sure we don't depend on private headers.
Move USB
platform_datato <linux/platform_data/omap-usb.h> and keep only internal functions in <plat/usb.h>.
Thanks, looks like I can't make this apply against v3.7-rc1:
patching file arch/arm/plat-omap/include/plat/usb.h
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 26.
Hunk #3 FAILED at 44.
Hunk #4 FAILED at 65.
Hunk #5 FAILED at 81.
Hunk #6 succeeded at 28 with fuzz 2 (offset -128 lines).
5 out of 6 hunks FAILED -- rejects in file arch/arm/plat-omap/include/plat/usb.h
Can you please check it?
Regards,
Tony
PATCH v2 1/1 arm: omap: move OMAP USB platform data to <linux/platform_data/omap-usb.h>
Hi,
Quoted 18 lines · Tony Lindgren
Quoted 5 lines · Felipe Balbi
In order to make single zImage work for ARM architecture, we need to make sure we don't depend on private headers.
Move USB
platform_datato <linux/platform_data/omap-usb.h> and keep only internal functions in <plat/usb.h>.Thanks, looks like I can't make this apply against v3.7-rc1:
patching file
arch/arm/plat-omap/include/plat/usb.h
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 26.
Hunk #3 FAILED at 44.
Hunk #4 FAILED at 65.
Hunk #5 FAILED at 81.
Hunk #6 succeeded at 28 with fuzz 2 (offset -128 lines).
5 out of 6 hunks FAILED -- rejects in filearch/arm/plat-omap/include/plat/usb.h
Quoted 1 line
Can you please check it?
Are you sure you have a clean v3.7-rc1 ?
commit 9b1ebba0f43e7bf6a8fdd8aa84da65e5e0344fb7
Author: Felipe Balbi <[email protected]> Date: Fri Sep 28 09:51:01 2012 +0300
arm: omap: move OMAP USB platform data to <linux/platform_data/omap-usb.h>
In order to make single zImage work for ARM architecture, we need to make sure we don't depend on private headers.
Move USB platform_data to <linux/platform_data/omap-usb.h> and keep only internal functions in <plat/usb.h>.
commit ddffeb8c4d0331609ef2581d84de4d763607bd37
Author: Linus Torvalds <[email protected]> Date: Sun Oct 14 14:41:04 2012 -0700
Linux 3.7-rc1
That's my branch. Patch is right on top of v3.7-rc1 commit.
Signature · 8 lines
balbi -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20121018/0c4bdbcb/attachment-0001.sig>
Tony Lindgren
maintainerPATCH v2 1/1 arm: omap: move OMAP USB platform data to <linux/platform_data/omap-usb.h>
Quoted 21 lines · Felipe Balbi
Hi,
Quoted 18 lines · Tony Lindgren
Quoted 5 lines · Felipe Balbi
In order to make single zImage work for ARM architecture, we need to make sure we don't depend on private headers.
Move USB
platform_datato <linux/platform_data/omap-usb.h> and keep only internal functions in <plat/usb.h>.Thanks, looks like I can't make this apply against v3.7-rc1:
patching file
arch/arm/plat-omap/include/plat/usb.h
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 26.
Hunk #3 FAILED at 44.
Hunk #4 FAILED at 65.
Hunk #5 FAILED at 81.
Hunk #6 succeeded at 28 with fuzz 2 (offset -128 lines).
5 out of 6 hunks FAILED -- rejects in filearch/arm/plat-omap/include/plat/usb.h
Quoted 3 lines
Quoted 1 line
Can you please check it?
Are you sure you have a clean v3.7-rc1 ?
Yes. Figured it out, it fails to apply with quilt, but applies with git.
But it does not compile with all configs though, and does not remove plat/usb.h. Thanks anyways. I'll post a proper series shortly with your patch fixed up.
Regards,
Tony
PATCH v2 1/1 arm: omap: move OMAP USB platform data to <linux/platform_data/omap-usb.h>
Hi,
Quoted 22 lines · Tony Lindgren
Quoted 21 lines · Felipe Balbi
Hi,
Quoted 18 lines · Tony Lindgren
Quoted 5 lines · Felipe Balbi
In order to make single zImage work for ARM architecture, we need to make sure we don't depend on private headers.
Move USB
platform_datato <linux/platform_data/omap-usb.h> and keep only internal functions in <plat/usb.h>.Thanks, looks like I can't make this apply against v3.7-rc1:
patching file
arch/arm/plat-omap/include/plat/usb.h
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 26.
Hunk #3 FAILED at 44.
Hunk #4 FAILED at 65.
Hunk #5 FAILED at 81.
Hunk #6 succeeded at 28 with fuzz 2 (offset -128 lines).
5 out of 6 hunks FAILED -- rejects in filearch/arm/plat-omap/include/plat/usb.h
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Can you please check it?
Are you sure you have a clean v3.7-rc1 ?
Yes. Figured it out, it fails to apply with quilt, but applies with git.
probably because of file rename.
Quoted 3 lines
But it does not compile with all configs though, and does not remove
plat/usb.h. Thanks anyways. I'll post a proper series shortly with your patch fixed up.
ok... I'll check it out. I kept the non-static functions in plat/usb.h because they didn't belong on platform_data/usb-omap.h. What should be done with those, then ? move to mach/ ?
Signature · 8 lines
balbi -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20121019/fc967dd3/attachment.sig>
Tony Lindgren
maintainerPATCH v2 1/1 arm: omap: move OMAP USB platform data to <linux/platform_data/omap-usb.h>
Quoted 6 lines · Felipe Balbi
Quoted 3 lines · Tony Lindgren
Yes. Figured it out, it fails to apply with quilt, but applies with git.
probably because of file rename.
Yeh so it seems.
Quoted 7 lines
Quoted 3 lines
But it does not compile with all configs though, and does not remove
plat/usb.h. Thanks anyways. I'll post a proper series shortly with your patch fixed up.ok... I'll check it out. I kept the non-static functions in
plat/usb.hbecause they didn't belong onplatform_data/usb-omap.h. What should be done with those, then ? move to mach/ ?
I made a clean-up patch that creates local usb.h file for those that applies before your patch.
Regards,
Tony
Hi Tony,
Quoted 9 lines · Tony Lindgren
Hi all,
Here's a quick status update on the removal of remaining #include <plat/*.h> files. Most files are now fixed up, and we only have the following remaining:
cpu.hwrapper only left, will be removed as soon as drivers are fixed
dmtimer.hJon is fixing this
I have patches ready for this. However, as you know I have a few timer series cooking at the moment and just sent out the latest timer DT series today [1][2].
I have also updated my timer fixes series [3] too, however, I was not going to send out until the DT stuff is sorted. At the moment I have included the dmtimer header patches with the fixes series as there are some dependencies but this series has now grown into a 20+ patch series. So if it is easier to manage, I could split this into a fixes series and a clean-up series. Or if you only want the header stuff now, I could send this and send the fixes and clean-up later.
Cheers
Jon
[1] http://marc.info/?l=linux-omap&m=135049690119218&w=2
[2] http://marc.info/?l=linux-omap&m=135049882020029&w=2
[3] http://marc.info/?l=linux-arm-kernel&m=134687192121865&w=2
Tony Lindgren
maintainerQuoted 17 lines · Jon Hunter
Hi Tony,
Quoted 9 lines · Tony Lindgren
Hi all,
Here's a quick status update on the removal of remaining #include <plat/*.h> files. Most files are now fixed up, and we only have the following remaining:
cpu.hwrapper only left, will be removed as soon as drivers are fixed
dmtimer.hJon is fixing thisI have patches ready for this. However, as you know I have a few timer series cooking at the moment and just sent out the latest timer DT series today [1][2].
Quoted 7 lines
I have also updated my timer fixes series [3] too, however, I was not going to send out until the DT stuff is sorted. At the moment I have included the dmtimer header patches with the fixes series as there are some dependencies but this series has now grown into a 20+ patch series. So if it is easier to manage, I could split this into a fixes series and a clean-up series. Or if you only want the header stuff now, I could send this and send the fixes and clean-up later.
When they are ready, two separate pull requests against v3.7-rc1 for fixes and cleanup would be perfect.
Thanks,
Tony
Hi,
Quoted 11 lines · Tony Lindgren
Hi all,
Here's a quick status update on the removal of remaining #include <plat/*.h> files. Most files are now fixed up, and we only have the following remaining:
cpu.hwrapper only left, will be removed as soon as drivers are fixed
dmtimer.hJon is fixing this
mailbox.hOmar, are you fixing this?
Yes, I'm taking this.
Regards,
Omar
Tony Lindgren
maintainerQuoted 9 lines · Omar Ramirez Luna
Hi,
Quoted 6 lines · Tony Lindgren
Hi all,
Here's a quick status update on the removal of remaining #include <plat/*.h> files. Most files are now fixed up, and we only have the following remaining:
Quoted 7 lines
Quoted 5 lines
cpu.hwrapper only left, will be removed as soon as drivers are fixed
dmtimer.hJon is fixing this
mailbox.hOmar, are you fixing this?Yes, I'm taking this.
OK thanks, a patch against v3.7-rc1 is preferred in case some driver branches need it too.
Regards,
Tony