* [PATCH 0/2] ARM: mvebu: additional cleanups
@ 2013-12-26 8:20 Thomas Petazzoni
2013-12-26 8:20 ` [PATCH 1/2] ARM: mvebu: remove prototypes of non-existing functions from common.h Thomas Petazzoni
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Thomas Petazzoni @ 2013-12-26 8:20 UTC (permalink / raw)
To: linux-arm-kernel
Jason, Gregory, Andrew, Sebastian,
Here are two additional minor cleanups to the mach-mvebu code
base. They are intended for mvebu/soc. Note that they are based on
3.13-rc5, so there might be some conflicts while applying them to
mvebu/soc, but the resolution should be trivial considering how simple
the patches are.
Thanks!
Thomas
Thomas Petazzoni (2):
ARM: mvebu: remove prototypes of non-existing functions from common.h
ARM: mvebu: move Armada 370/XP specific definitions to armada-370-xp.h
arch/arm/mach-mvebu/armada-370-xp.h | 2 ++
arch/arm/mach-mvebu/common.h | 8 +-------
2 files changed, 3 insertions(+), 7 deletions(-)
--
1.8.3.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/2] ARM: mvebu: remove prototypes of non-existing functions from common.h
2013-12-26 8:20 [PATCH 0/2] ARM: mvebu: additional cleanups Thomas Petazzoni
@ 2013-12-26 8:20 ` Thomas Petazzoni
2013-12-26 8:20 ` [PATCH 2/2] ARM: mvebu: move Armada 370/XP specific definitions to armada-370-xp.h Thomas Petazzoni
2013-12-27 18:12 ` [PATCH 0/2] ARM: mvebu: additional cleanups Jason Cooper
2 siblings, 0 replies; 10+ messages in thread
From: Thomas Petazzoni @ 2013-12-26 8:20 UTC (permalink / raw)
To: linux-arm-kernel
The mach-mvebu/common.h file contains prototypes of functions that
have been removed, so this commit removes the corresponding
prototypes.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
arch/arm/mach-mvebu/common.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/arch/arm/mach-mvebu/common.h b/arch/arm/mach-mvebu/common.h
index e366010..4c84689 100644
--- a/arch/arm/mach-mvebu/common.h
+++ b/arch/arm/mach-mvebu/common.h
@@ -21,12 +21,7 @@
void mvebu_restart(enum reboot_mode mode, const char *cmd);
-void armada_370_xp_init_irq(void);
-void armada_370_xp_handle_irq(struct pt_regs *regs);
-
void armada_xp_cpu_die(unsigned int cpu);
-int armada_370_xp_coherency_init(void);
-int armada_370_xp_pmsu_init(void);
void armada_xp_secondary_startup(void);
extern struct smp_operations armada_xp_smp_ops;
#endif
--
1.8.3.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/2] ARM: mvebu: move Armada 370/XP specific definitions to armada-370-xp.h
2013-12-26 8:20 [PATCH 0/2] ARM: mvebu: additional cleanups Thomas Petazzoni
2013-12-26 8:20 ` [PATCH 1/2] ARM: mvebu: remove prototypes of non-existing functions from common.h Thomas Petazzoni
@ 2013-12-26 8:20 ` Thomas Petazzoni
2013-12-26 16:00 ` Andrew Lunn
2013-12-27 18:12 ` [PATCH 0/2] ARM: mvebu: additional cleanups Jason Cooper
2 siblings, 1 reply; 10+ messages in thread
From: Thomas Petazzoni @ 2013-12-26 8:20 UTC (permalink / raw)
To: linux-arm-kernel
In preparation to the introduction of the support for additional SoC,
the mvebu/common.h should be clear of Armada 370/XP-specific
definitions. Therefore, move the Armada 370/XP SMP specific
definitions to the armada-370-xp.h file.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
arch/arm/mach-mvebu/armada-370-xp.h | 2 ++
arch/arm/mach-mvebu/common.h | 3 +--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-mvebu/armada-370-xp.h b/arch/arm/mach-mvebu/armada-370-xp.h
index c612b2c..775d9c3 100644
--- a/arch/arm/mach-mvebu/armada-370-xp.h
+++ b/arch/arm/mach-mvebu/armada-370-xp.h
@@ -20,6 +20,8 @@
void armada_mpic_send_doorbell(const struct cpumask *mask, unsigned int irq);
void armada_xp_mpic_smp_cpu_init(void);
+void armada_xp_secondary_startup(void);
+extern struct smp_operations armada_xp_smp_ops;
#endif
#endif /* __MACH_ARMADA_370_XP_H */
diff --git a/arch/arm/mach-mvebu/common.h b/arch/arm/mach-mvebu/common.h
index 4c84689..c23b077 100644
--- a/arch/arm/mach-mvebu/common.h
+++ b/arch/arm/mach-mvebu/common.h
@@ -22,6 +22,5 @@
void mvebu_restart(enum reboot_mode mode, const char *cmd);
void armada_xp_cpu_die(unsigned int cpu);
-void armada_xp_secondary_startup(void);
-extern struct smp_operations armada_xp_smp_ops;
+
#endif
--
1.8.3.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/2] ARM: mvebu: move Armada 370/XP specific definitions to armada-370-xp.h
2013-12-26 14:22 [PATCH 0/2] ARM: mvebu: minor improvements Thomas Petazzoni
@ 2013-12-26 14:22 ` Thomas Petazzoni
0 siblings, 0 replies; 10+ messages in thread
From: Thomas Petazzoni @ 2013-12-26 14:22 UTC (permalink / raw)
To: linux-arm-kernel
In preparation to the introduction of the support for additional SoC,
the mvebu/common.h should be clear of Armada 370/XP-specific
definitions. Therefore, move the Armada 370/XP SMP specific
definitions to the armada-370-xp.h file.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
arch/arm/mach-mvebu/armada-370-xp.h | 2 ++
arch/arm/mach-mvebu/common.h | 3 +--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-mvebu/armada-370-xp.h b/arch/arm/mach-mvebu/armada-370-xp.h
index c612b2c..775d9c3 100644
--- a/arch/arm/mach-mvebu/armada-370-xp.h
+++ b/arch/arm/mach-mvebu/armada-370-xp.h
@@ -20,6 +20,8 @@
void armada_mpic_send_doorbell(const struct cpumask *mask, unsigned int irq);
void armada_xp_mpic_smp_cpu_init(void);
+void armada_xp_secondary_startup(void);
+extern struct smp_operations armada_xp_smp_ops;
#endif
#endif /* __MACH_ARMADA_370_XP_H */
diff --git a/arch/arm/mach-mvebu/common.h b/arch/arm/mach-mvebu/common.h
index 4c84689..c23b077 100644
--- a/arch/arm/mach-mvebu/common.h
+++ b/arch/arm/mach-mvebu/common.h
@@ -22,6 +22,5 @@
void mvebu_restart(enum reboot_mode mode, const char *cmd);
void armada_xp_cpu_die(unsigned int cpu);
-void armada_xp_secondary_startup(void);
-extern struct smp_operations armada_xp_smp_ops;
+
#endif
--
1.8.3.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/2] ARM: mvebu: move Armada 370/XP specific definitions to armada-370-xp.h
2013-12-26 8:20 ` [PATCH 2/2] ARM: mvebu: move Armada 370/XP specific definitions to armada-370-xp.h Thomas Petazzoni
@ 2013-12-26 16:00 ` Andrew Lunn
2013-12-26 16:04 ` Thomas Petazzoni
0 siblings, 1 reply; 10+ messages in thread
From: Andrew Lunn @ 2013-12-26 16:00 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Dec 26, 2013 at 09:20:26AM +0100, Thomas Petazzoni wrote:
> In preparation to the introduction of the support for additional SoC,
> the mvebu/common.h should be clear of Armada 370/XP-specific
> definitions. Therefore, move the Armada 370/XP SMP specific
> definitions to the armada-370-xp.h file.
Hi Thomas
Just a question. How much of armada-370-xp.h is specific to just one
of these? Things like all the SMP support is XP only. Does it make
sense to have armada-370.h, armada-xp.h, then a shared
armada-370-xp.h, followed by common.h?
As more SoCs move in, having a clean well defined structure is going
to help with the merging.
Thanks
Andrew
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> arch/arm/mach-mvebu/armada-370-xp.h | 2 ++
> arch/arm/mach-mvebu/common.h | 3 +--
> 2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mach-mvebu/armada-370-xp.h b/arch/arm/mach-mvebu/armada-370-xp.h
> index c612b2c..775d9c3 100644
> --- a/arch/arm/mach-mvebu/armada-370-xp.h
> +++ b/arch/arm/mach-mvebu/armada-370-xp.h
> @@ -20,6 +20,8 @@
>
> void armada_mpic_send_doorbell(const struct cpumask *mask, unsigned int irq);
> void armada_xp_mpic_smp_cpu_init(void);
> +void armada_xp_secondary_startup(void);
> +extern struct smp_operations armada_xp_smp_ops;
> #endif
>
> #endif /* __MACH_ARMADA_370_XP_H */
> diff --git a/arch/arm/mach-mvebu/common.h b/arch/arm/mach-mvebu/common.h
> index 4c84689..c23b077 100644
> --- a/arch/arm/mach-mvebu/common.h
> +++ b/arch/arm/mach-mvebu/common.h
> @@ -22,6 +22,5 @@
> void mvebu_restart(enum reboot_mode mode, const char *cmd);
>
> void armada_xp_cpu_die(unsigned int cpu);
> -void armada_xp_secondary_startup(void);
> -extern struct smp_operations armada_xp_smp_ops;
> +
> #endif
> --
> 1.8.3.2
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/2] ARM: mvebu: move Armada 370/XP specific definitions to armada-370-xp.h
2013-12-26 16:00 ` Andrew Lunn
@ 2013-12-26 16:04 ` Thomas Petazzoni
2013-12-26 16:18 ` Andrew Lunn
0 siblings, 1 reply; 10+ messages in thread
From: Thomas Petazzoni @ 2013-12-26 16:04 UTC (permalink / raw)
To: linux-arm-kernel
Dear Andrew Lunn,
On Thu, 26 Dec 2013 17:00:48 +0100, Andrew Lunn wrote:
> Just a question. How much of armada-370-xp.h is specific to just one
> of these? Things like all the SMP support is XP only. Does it make
> sense to have armada-370.h, armada-xp.h, then a shared
> armada-370-xp.h, followed by common.h?
>
> As more SoCs move in, having a clean well defined structure is going
> to help with the merging.
As it is today, none of the contents of armada-370-xp.h are useful for
Armada 370. However, the "main" file is also named armada-370-xp.c and
handles both SoC, so it made sense to have a file named armada-370-xp.h
as well.
That said, I'm fine with moving the Armada XP SMP specific bits in a
armada-xp.h, file included in armada-370-xp.c. For now, we wouldn't
need a armada-370.h file or even an armada-370-xp.h file.
The upcoming SOCs will not be handled in armada-370-xp.c, due to quite
important differences in these SOCs compared to 370/XP.
Thanks for the feedback!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/2] ARM: mvebu: move Armada 370/XP specific definitions to armada-370-xp.h
2013-12-26 16:04 ` Thomas Petazzoni
@ 2013-12-26 16:18 ` Andrew Lunn
2013-12-26 16:49 ` Thomas Petazzoni
0 siblings, 1 reply; 10+ messages in thread
From: Andrew Lunn @ 2013-12-26 16:18 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Dec 26, 2013 at 05:04:54PM +0100, Thomas Petazzoni wrote:
> Dear Andrew Lunn,
>
> On Thu, 26 Dec 2013 17:00:48 +0100, Andrew Lunn wrote:
>
> > Just a question. How much of armada-370-xp.h is specific to just one
> > of these? Things like all the SMP support is XP only. Does it make
> > sense to have armada-370.h, armada-xp.h, then a shared
> > armada-370-xp.h, followed by common.h?
> >
> > As more SoCs move in, having a clean well defined structure is going
> > to help with the merging.
>
> As it is today, none of the contents of armada-370-xp.h are useful for
> Armada 370. However, the "main" file is also named armada-370-xp.c and
> handles both SoC, so it made sense to have a file named armada-370-xp.h
> as well.
Hi Thomas
So thinking about dove, kirkwood, this new SoC, all living in mvebu,
should we have a board-dt.c file which all SoCs share, and then one
.c/.h pair of files per SoC? I'm saying this without looking at the
actual content, so i've no idea is this is actually possible. I guess
we need to do something like this sometime, but does it need to be
now?
Andrew
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/2] ARM: mvebu: move Armada 370/XP specific definitions to armada-370-xp.h
2013-12-26 16:18 ` Andrew Lunn
@ 2013-12-26 16:49 ` Thomas Petazzoni
2013-12-27 17:06 ` Jason Cooper
0 siblings, 1 reply; 10+ messages in thread
From: Thomas Petazzoni @ 2013-12-26 16:49 UTC (permalink / raw)
To: linux-arm-kernel
Dear Andrew Lunn,
On Thu, 26 Dec 2013 17:18:06 +0100, Andrew Lunn wrote:
> > As it is today, none of the contents of armada-370-xp.h are useful for
> > Armada 370. However, the "main" file is also named armada-370-xp.c and
> > handles both SoC, so it made sense to have a file named armada-370-xp.h
> > as well.
>
> Hi Thomas
>
> So thinking about dove, kirkwood, this new SoC, all living in mvebu,
> should we have a board-dt.c file which all SoCs share, and then one
> .c/.h pair of files per SoC? I'm saying this without looking at the
> actual content, so i've no idea is this is actually possible. I guess
> we need to do something like this sometime, but does it need to be
> now?
I think it's a bit hard to see now what will be the common parts. I
personally would worry too much about this though, as code can easily be
reorganized as needed as we see patterns emerge and gain a better
understanding of what's common and what's specific.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/2] ARM: mvebu: move Armada 370/XP specific definitions to armada-370-xp.h
2013-12-26 16:49 ` Thomas Petazzoni
@ 2013-12-27 17:06 ` Jason Cooper
0 siblings, 0 replies; 10+ messages in thread
From: Jason Cooper @ 2013-12-27 17:06 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Dec 26, 2013 at 05:49:20PM +0100, Thomas Petazzoni wrote:
> Dear Andrew Lunn,
>
> On Thu, 26 Dec 2013 17:18:06 +0100, Andrew Lunn wrote:
>
> > > As it is today, none of the contents of armada-370-xp.h are useful for
> > > Armada 370. However, the "main" file is also named armada-370-xp.c and
> > > handles both SoC, so it made sense to have a file named armada-370-xp.h
> > > as well.
> >
> > Hi Thomas
> >
> > So thinking about dove, kirkwood, this new SoC, all living in mvebu,
> > should we have a board-dt.c file which all SoCs share, and then one
> > .c/.h pair of files per SoC? I'm saying this without looking at the
> > actual content, so i've no idea is this is actually possible. I guess
> > we need to do something like this sometime, but does it need to be
> > now?
>
> I think it's a bit hard to see now what will be the common parts. I
> personally would worry too much about this though, as code can easily be
> reorganized as needed as we see patterns emerge and gain a better
> understanding of what's common and what's specific.
I agree. We need to keep an eye on it, but no need to churn. The
necessary changes can be made as new code is introduced.
thx,
Jason.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 0/2] ARM: mvebu: additional cleanups
2013-12-26 8:20 [PATCH 0/2] ARM: mvebu: additional cleanups Thomas Petazzoni
2013-12-26 8:20 ` [PATCH 1/2] ARM: mvebu: remove prototypes of non-existing functions from common.h Thomas Petazzoni
2013-12-26 8:20 ` [PATCH 2/2] ARM: mvebu: move Armada 370/XP specific definitions to armada-370-xp.h Thomas Petazzoni
@ 2013-12-27 18:12 ` Jason Cooper
2 siblings, 0 replies; 10+ messages in thread
From: Jason Cooper @ 2013-12-27 18:12 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Dec 26, 2013 at 09:20:24AM +0100, Thomas Petazzoni wrote:
> Jason, Gregory, Andrew, Sebastian,
>
> Here are two additional minor cleanups to the mach-mvebu code
> base. They are intended for mvebu/soc. Note that they are based on
> 3.13-rc5, so there might be some conflicts while applying them to
> mvebu/soc, but the resolution should be trivial considering how simple
> the patches are.
>
> Thanks!
>
> Thomas
>
> Thomas Petazzoni (2):
> ARM: mvebu: remove prototypes of non-existing functions from common.h
> ARM: mvebu: move Armada 370/XP specific definitions to armada-370-xp.h
>
> arch/arm/mach-mvebu/armada-370-xp.h | 2 ++
> arch/arm/mach-mvebu/common.h | 8 +-------
> 2 files changed, 3 insertions(+), 7 deletions(-)
Whole series applied to mvebu/soc
thx,
Jason.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-12-27 18:12 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-26 8:20 [PATCH 0/2] ARM: mvebu: additional cleanups Thomas Petazzoni
2013-12-26 8:20 ` [PATCH 1/2] ARM: mvebu: remove prototypes of non-existing functions from common.h Thomas Petazzoni
2013-12-26 8:20 ` [PATCH 2/2] ARM: mvebu: move Armada 370/XP specific definitions to armada-370-xp.h Thomas Petazzoni
2013-12-26 16:00 ` Andrew Lunn
2013-12-26 16:04 ` Thomas Petazzoni
2013-12-26 16:18 ` Andrew Lunn
2013-12-26 16:49 ` Thomas Petazzoni
2013-12-27 17:06 ` Jason Cooper
2013-12-27 18:12 ` [PATCH 0/2] ARM: mvebu: additional cleanups Jason Cooper
-- strict thread matches above, loose matches on Subject: below --
2013-12-26 14:22 [PATCH 0/2] ARM: mvebu: minor improvements Thomas Petazzoni
2013-12-26 14:22 ` [PATCH 2/2] ARM: mvebu: move Armada 370/XP specific definitions to armada-370-xp.h Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).