linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH Resend 0/3] trivial fixes relating to !CONFIG_OF
@ 2013-08-14 17:23 Jonathan Austin
  2013-08-14 17:23 ` [PATCH Resend 1/3] PSCI: add missing dependency on CONFIG_OF for PSCI Jonathan Austin
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jonathan Austin @ 2013-08-14 17:23 UTC (permalink / raw)
  To: linux-arm-kernel

This series contains 3 trivial fixes picked up along the path of building
kernels without CONFIG_OF enabled. They're things likely to break randconfig
builds, etc, if not fixed up.

[I'm resending these including the clocksource maintainers as suggested by
Daniel Lezcano]

Jonathan Austin (3):
  PSCI: add missing dependency on CONFIG_OF for PSCI.
  clocksource: Add missing dependency on CONFIG_OF for ARM_ARCH_TIMER
  ARM: arch_timer: Add missing include for of_* functions

 arch/arm/Kconfig                     |    1 +
 drivers/clocksource/Kconfig          |    3 ++-
 drivers/clocksource/arm_arch_timer.c |    1 +
 3 files changed, 4 insertions(+), 1 deletion(-)

-- 
1.7.9.5

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

* [PATCH Resend 1/3] PSCI: add missing dependency on CONFIG_OF for PSCI.
  2013-08-14 17:23 [PATCH Resend 0/3] trivial fixes relating to !CONFIG_OF Jonathan Austin
@ 2013-08-14 17:23 ` Jonathan Austin
  2013-08-14 19:54   ` Sergei Shtylyov
  2013-08-15 14:01   ` Jonathan Austin
  2013-08-14 17:23 ` [PATCH Resend 2/3] clocksource: Add missing dependency on CONFIG_OF for ARM_ARCH_TIMER Jonathan Austin
  2013-08-14 17:23 ` [PATCH Resend 3/3] ARM: arch_timer: Add missing include for of_* functions Jonathan Austin
  2 siblings, 2 replies; 7+ messages in thread
From: Jonathan Austin @ 2013-08-14 17:23 UTC (permalink / raw)
  To: linux-arm-kernel

The PSCI initialisation depends on data found in the DT. Without this the
including PSCI support makes little sense, and furthermore the of_* stub
functions aren't broad enough to ensure that this builds without CONFIG_OF.

As there is little enthusiasm for extending these stubs without useful use-cases
(of which this is *not* an example) this patch prevents building of PSCI
without CONFIG_OF.

Signed-off-by: Jonathan Austin <jonathan.austin@arm.com>
---
 arch/arm/Kconfig |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index ba412e0..972ec25 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1577,6 +1577,7 @@ config HOTPLUG_CPU
 config ARM_PSCI
 	bool "Support for the ARM Power State Coordination Interface (PSCI)"
 	depends on CPU_V7
+	depends on CONFIG_OF
 	help
 	  Say Y here if you want Linux to communicate with system firmware
 	  implementing the PSCI specification for CPU-centric power
-- 
1.7.9.5

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

* [PATCH Resend 2/3] clocksource: Add missing dependency on CONFIG_OF for ARM_ARCH_TIMER
  2013-08-14 17:23 [PATCH Resend 0/3] trivial fixes relating to !CONFIG_OF Jonathan Austin
  2013-08-14 17:23 ` [PATCH Resend 1/3] PSCI: add missing dependency on CONFIG_OF for PSCI Jonathan Austin
@ 2013-08-14 17:23 ` Jonathan Austin
  2013-08-14 17:23 ` [PATCH Resend 3/3] ARM: arch_timer: Add missing include for of_* functions Jonathan Austin
  2 siblings, 0 replies; 7+ messages in thread
From: Jonathan Austin @ 2013-08-14 17:23 UTC (permalink / raw)
  To: linux-arm-kernel

Initialisation of the ARM Arch timer requires data from the DT. There is no
fallback initialisation method and hence selecting ARM_ARCH_TIMER without OF
makes little sense.

Furthermore, doing so causes a build error because the of_* stubs for
!CONFIG_OF do not extend to all of the functions being used by this driver,
and will not be extended unless there are valid use-cases for them to be
(this is not a valid case).

Signed-off-by: Jonathan Austin <jonathan.austin@arm.com>
---
 drivers/clocksource/Kconfig |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index b7b9b04..4348902 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -72,7 +72,8 @@ config CLKSRC_DBX500_PRCMU_SCHED_CLOCK
 
 config ARM_ARCH_TIMER
 	bool
-	select CLKSRC_OF if OF
+	depends on OF
+	select CLKSRC_OF
 
 config ARM_GLOBAL_TIMER
 	bool
-- 
1.7.9.5

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

* [PATCH Resend 3/3] ARM: arch_timer: Add missing include for of_* functions
  2013-08-14 17:23 [PATCH Resend 0/3] trivial fixes relating to !CONFIG_OF Jonathan Austin
  2013-08-14 17:23 ` [PATCH Resend 1/3] PSCI: add missing dependency on CONFIG_OF for PSCI Jonathan Austin
  2013-08-14 17:23 ` [PATCH Resend 2/3] clocksource: Add missing dependency on CONFIG_OF for ARM_ARCH_TIMER Jonathan Austin
@ 2013-08-14 17:23 ` Jonathan Austin
  2 siblings, 0 replies; 7+ messages in thread
From: Jonathan Austin @ 2013-08-14 17:23 UTC (permalink / raw)
  To: linux-arm-kernel

The arch timer code uses a bunch of of_* functions that are defined in
linux/of.h. Currently this header is not included and the functions are
available elsewise. This fixes that for correctness.

Signed-off-by: Jonathan Austin <jonathan.austin@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
---
 drivers/clocksource/arm_arch_timer.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c
index ffadd83..857a196 100644
--- a/drivers/clocksource/arm_arch_timer.c
+++ b/drivers/clocksource/arm_arch_timer.c
@@ -15,6 +15,7 @@
 #include <linux/cpu.h>
 #include <linux/clockchips.h>
 #include <linux/interrupt.h>
+#include <linux/of.h>
 #include <linux/of_irq.h>
 #include <linux/io.h>
 
-- 
1.7.9.5

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

* [PATCH Resend 1/3] PSCI: add missing dependency on CONFIG_OF for PSCI.
  2013-08-14 17:23 ` [PATCH Resend 1/3] PSCI: add missing dependency on CONFIG_OF for PSCI Jonathan Austin
@ 2013-08-14 19:54   ` Sergei Shtylyov
  2013-08-15 13:51     ` Jonathan Austin
  2013-08-15 14:01   ` Jonathan Austin
  1 sibling, 1 reply; 7+ messages in thread
From: Sergei Shtylyov @ 2013-08-14 19:54 UTC (permalink / raw)
  To: linux-arm-kernel

Hello.

On 08/14/2013 09:23 PM, Jonathan Austin wrote:

> The PSCI initialisation depends on data found in the DT. Without this the
> including PSCI support makes little sense, and furthermore the of_* stub
> functions aren't broad enough to ensure that this builds without CONFIG_OF.

> As there is little enthusiasm for extending these stubs without useful use-cases
> (of which this is *not* an example) this patch prevents building of PSCI
> without CONFIG_OF.

> Signed-off-by: Jonathan Austin <jonathan.austin@arm.com>
> ---
>   arch/arm/Kconfig |    1 +
>   1 file changed, 1 insertion(+)

> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index ba412e0..972ec25 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -1577,6 +1577,7 @@ config HOTPLUG_CPU
>   config ARM_PSCI
>   	bool "Support for the ARM Power State Coordination Interface (PSCI)"
>   	depends on CPU_V7
> +	depends on CONFIG_OF

    I think you meant just OF. :-)

WBR, Sergei

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

* [PATCH Resend 1/3] PSCI: add missing dependency on CONFIG_OF for PSCI.
  2013-08-14 19:54   ` Sergei Shtylyov
@ 2013-08-15 13:51     ` Jonathan Austin
  0 siblings, 0 replies; 7+ messages in thread
From: Jonathan Austin @ 2013-08-15 13:51 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Sergei,

On 14/08/13 20:54, Sergei Shtylyov wrote:
> Hello.
>
> On 08/14/2013 09:23 PM, Jonathan Austin wrote:
>
>> The PSCI initialisation depends on data found in the DT. Without this the
>> including PSCI support makes little sense, and furthermore the of_* stub
>> functions aren't broad enough to ensure that this builds without CONFIG_OF.
>
>> As there is little enthusiasm for extending these stubs without useful use-cases
>> (of which this is *not* an example) this patch prevents building of PSCI
>> without CONFIG_OF.
>
>> Signed-off-by: Jonathan Austin <jonathan.austin@arm.com>
>> ---
>>    arch/arm/Kconfig |    1 +
>>    1 file changed, 1 insertion(+)
>
>> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
>> index ba412e0..972ec25 100644
>> --- a/arch/arm/Kconfig
>> +++ b/arch/arm/Kconfig
>> @@ -1577,6 +1577,7 @@ config HOTPLUG_CPU
>>    config ARM_PSCI
>>    	bool "Support for the ARM Power State Coordination Interface (PSCI)"
>>    	depends on CPU_V7
>> +	depends on CONFIG_OF
>
>      I think you meant just OF. :-)
>

Yikes, sure did.

Thanks.
Jonny

> WBR, Sergei
>
>

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

* [PATCH Resend 1/3] PSCI: add missing dependency on CONFIG_OF for PSCI.
  2013-08-14 17:23 ` [PATCH Resend 1/3] PSCI: add missing dependency on CONFIG_OF for PSCI Jonathan Austin
  2013-08-14 19:54   ` Sergei Shtylyov
@ 2013-08-15 14:01   ` Jonathan Austin
  1 sibling, 0 replies; 7+ messages in thread
From: Jonathan Austin @ 2013-08-15 14:01 UTC (permalink / raw)
  To: linux-arm-kernel

On 14/08/13 18:23, Jonathan Austin wrote:
> The PSCI initialisation depends on data found in the DT. Without this the
> including PSCI support makes little sense, and furthermore the of_* stub
> functions aren't broad enough to ensure that this builds without CONFIG_OF.
>
> As there is little enthusiasm for extending these stubs without useful use-cases
> (of which this is *not* an example) this patch prevents building of PSCI
> without CONFIG_OF.
>
> Signed-off-by: Jonathan Austin <jonathan.austin@arm.com>
> ---
>   arch/arm/Kconfig |    1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index ba412e0..972ec25 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -1577,6 +1577,7 @@ config HOTPLUG_CPU
>   config ARM_PSCI
>       bool "Support for the ARM Power State Coordination Interface (PSCI)"
>       depends on CPU_V7
> +     depends on CONFIG_OF
>       help
>         Say Y here if you want Linux to communicate with system firmware
>         implementing the PSCI specification for CPU-centric power
>

As Sergei pointed out, this should just be OF not CONFIG_OF....

------8<-------

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 43594d5..f004de7 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1577,6 +1577,7 @@ config HOTPLUG_CPU
 config ARM_PSCI
        bool "Support for the ARM Power State Coordination Interface (PSCI)"
        depends on CPU_V7
+       depends on OF
        help
          Say Y here if you want Linux to communicate with system firmware
          implementing the PSCI specification for CPU-centric power

---->8---------------

-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.

ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No:  2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No:  2548782

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

end of thread, other threads:[~2013-08-15 14:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-14 17:23 [PATCH Resend 0/3] trivial fixes relating to !CONFIG_OF Jonathan Austin
2013-08-14 17:23 ` [PATCH Resend 1/3] PSCI: add missing dependency on CONFIG_OF for PSCI Jonathan Austin
2013-08-14 19:54   ` Sergei Shtylyov
2013-08-15 13:51     ` Jonathan Austin
2013-08-15 14:01   ` Jonathan Austin
2013-08-14 17:23 ` [PATCH Resend 2/3] clocksource: Add missing dependency on CONFIG_OF for ARM_ARCH_TIMER Jonathan Austin
2013-08-14 17:23 ` [PATCH Resend 3/3] ARM: arch_timer: Add missing include for of_* functions Jonathan Austin

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).