All of lore.kernel.org
 help / color / mirror / Atom feed
From: robherring2@gmail.com (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 10/15] ARM: highbank: convert to twd_local_timer_register() interface
Date: Sat, 14 Jan 2012 09:06:08 -0600	[thread overview]
Message-ID: <4F1199E0.5000003@gmail.com> (raw)
In-Reply-To: <20120114024126.GE1810@S2101-09.ap.freescale.net>

On 01/13/2012 08:41 PM, Shawn Guo wrote:
> On Fri, Jan 13, 2012 at 01:07:23PM -0600, Rob Herring wrote:
>> On 01/13/2012 12:28 PM, Marc Zyngier wrote:
>>> Add support for the new smp_twd runtime registration interface
>>> to the highbank platforms, and remove the old compile-time support.
>>>
>>> The highbank DTS file is updated to match the TWD DT documentation.
>>>
>>> Cc: Rob Herring <rob.herring@calxeda.com>
>>> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
>>
>> A couple of minor things below. Otherwise,
>>
>> Acked-by: Rob Herring <rob.herring@calxeda.com>
>>
>>> ---
>>>  arch/arm/boot/dts/highbank.dts      |    4 +-
>>>  arch/arm/mach-highbank/Makefile     |    1 -
>>>  arch/arm/mach-highbank/highbank.c   |    5 ++++
>>>  arch/arm/mach-highbank/localtimer.c |   40 -----------------------------------
>>>  4 files changed, 7 insertions(+), 43 deletions(-)
>>>  delete mode 100644 arch/arm/mach-highbank/localtimer.c
>>>
>>> diff --git a/arch/arm/boot/dts/highbank.dts b/arch/arm/boot/dts/highbank.dts
>>> index 305635b..661373a 100644
>>> --- a/arch/arm/boot/dts/highbank.dts
>>> +++ b/arch/arm/boot/dts/highbank.dts
>>> @@ -72,13 +72,13 @@
>>>  		ranges;
>>>  
>>>  		timer at fff10600 {
>>> -			compatible = "arm,smp-twd";
>>> +			compatible = "arm,cortex-a9-twd-timer";
>>>  			reg = <0xfff10600 0x20>;
>>>  			interrupts = <1 13 0xf04>;
>>
>> Would you mind fixing these to be edge triggered.
>>
> This would just be an indication, since not only SGI but also PPI has
> a read-only Interrupt Configuration Register.  So does the patch below
> make sense?

That is implementation dependent for PPIs IIRC. Whether it's
programmable or not, you still need to know the type of interrupt
(although it doesn't seem to matter here).

Rob

> diff --git a/arch/arm/common/gic.c b/arch/arm/common/gic.c
> index b2dc2dd..23a075f 100644
> --- a/arch/arm/common/gic.c
> +++ b/arch/arm/common/gic.c
> @@ -186,8 +186,8 @@ static int gic_set_type(struct irq_data *d, unsigned int type)
>         bool enabled = false;
>         u32 val;
> 
> -       /* Interrupt configuration for SGIs can't be changed */
> -       if (gicirq < 16)
> +       /* Interrupt configuration for SGIs and PPIs can't be changed */
> +       if (gicirq < 32)
>                 return -EINVAL;
> 
>         if (type != IRQ_TYPE_LEVEL_HIGH && type != IRQ_TYPE_EDGE_RISING)
> 

  parent reply	other threads:[~2012-01-14 15:06 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-13 18:28 [PATCH v2 00/15] Runtime registration for local timers Marc Zyngier
2012-01-13 18:28 ` [PATCH v2 01/15] ARM: smp_twd: make local_timer_stop a symbol instead of a #define Marc Zyngier
2012-01-13 18:28 ` [PATCH v2 02/15] ARM: local timers: introduce a new registration interface Marc Zyngier
2012-01-13 18:28 ` [PATCH v2 03/15] ARM: smp_twd: add runtime registration support Marc Zyngier
2012-01-13 18:28 ` [PATCH v2 04/15] ARM: smp_twd: add device tree support Marc Zyngier
2012-01-13 18:28 ` [PATCH v2 05/15] ARM: OMAP4: convert to twd_local_timer_register() interface Marc Zyngier
2012-01-13 18:28 ` [PATCH v2 06/15] ARM: plat-versatile: " Marc Zyngier
2012-01-13 18:28 ` [PATCH v2 07/15] ARM: tegra: " Marc Zyngier
2012-01-13 18:28 ` [PATCH v2 08/15] ARM: shmobile: " Marc Zyngier
2012-01-13 18:28 ` [PATCH v2 09/15] ARM: ux500: " Marc Zyngier
2012-01-13 18:28 ` [PATCH v2 10/15] ARM: highbank: " Marc Zyngier
2012-01-13 19:07   ` Rob Herring
2012-01-14  2:41     ` Shawn Guo
2012-01-14  8:46       ` Russell King - ARM Linux
2012-01-14 15:06       ` Rob Herring [this message]
2012-01-13 18:28 ` [PATCH v2 11/15] ARM: imx6q: " Marc Zyngier
2012-01-14  2:47   ` Shawn Guo
2012-01-13 18:28 ` [PATCH v2 12/15] ARM: smp_twd: remove old local timer interface Marc Zyngier
2012-01-13 18:28 ` [PATCH v2 13/15] ARM: local timers: convert exynos to runtime registration interface Marc Zyngier
2012-01-13 23:29   ` David Brown
2012-01-13 18:28 ` [PATCH v2 14/15] ARM: local timers: convert MSM " Marc Zyngier
2012-01-13 22:37   ` David Brown
2012-01-13 22:47     ` Russell King - ARM Linux
2012-01-13 23:33       ` David Brown
2012-01-13 23:26   ` David Brown
2012-01-13 23:29     ` Russell King - ARM Linux
2012-01-14 16:27       ` Marc Zyngier
2012-01-13 18:28 ` [PATCH v2 15/15] ARM: local timers: make the runtime registration interface mandatory Marc Zyngier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F1199E0.5000003@gmail.com \
    --to=robherring2@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.