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 2/3] ARM: make disable_fiq macro optional
Date: Tue, 07 Feb 2012 16:52:14 -0600	[thread overview]
Message-ID: <4F31AB1E.4010800@gmail.com> (raw)
In-Reply-To: <alpine.LFD.2.02.1202062116210.1656@xanadu.home>

On 02/06/2012 11:24 PM, Nicolas Pitre wrote:
> On Mon, 6 Feb 2012, Rob Herring wrote:
> 
>> Nicolas,
>>
>> On 02/06/2012 04:34 PM, Nicolas Pitre wrote:
>>> On Mon, 6 Feb 2012, Rob Herring wrote:
>>>
>>>> From: Rob Herring <rob.herring@calxeda.com>
>>>>
>>>> Only rpc uses disable_fiq, so make its use conditional on ARCH_RPC.
>>>>
>>>> With this, entry-macro.S is no longer needed for platforms that
>>>> select MULTI_IRQ_HANDLER and the include of it can be conditional.
>>>
>>> Using set_fiq_handler() in the rpc boot code we could get rid of 
>>> disable_fiq entirely.
>>>
>>
>> That's already being done here:
>> arch/arm/mach-rpc/dma.c:290:    set_fiq_handler(fiqhandler_start,
>> fiqhandler_length);
>>
>> Can the macro just be deleted? Or a default handler needs to be setup
>> earlier?
> 
> That's the handler installed by the RPC DMA code.  Another one is needed 
> by default for when that code is not active.

Wouldn't the fiq be masked then? rpc_init_irq masks out the interrupts
in the same register as disable_fiq macro:

iomd_writeb(0, IOMD_FIQMASK);

Rob

  reply	other threads:[~2012-02-07 22:52 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-06 21:03 [PATCH 0/3] entry-macro.S clean-up Rob Herring
2012-02-06 21:03 ` [PATCH 1/3] ARM: make arch_ret_to_user macro optional Rob Herring
2012-02-06 22:21   ` Nicolas Pitre
2012-02-06 21:03 ` [PATCH 2/3] ARM: make disable_fiq " Rob Herring
2012-02-06 22:34   ` Nicolas Pitre
2012-02-07  5:09     ` Rob Herring
2012-02-07  5:24       ` Nicolas Pitre
2012-02-07 22:52         ` Rob Herring [this message]
2012-02-08  8:38           ` Russell King - ARM Linux
2012-02-08 19:58             ` Rob Herring
2012-02-08 20:14               ` Nicolas Pitre
2012-02-08 20:30               ` Russell King - ARM Linux
2012-02-08 20:52                 ` Nicolas Pitre
2012-02-06 21:03 ` [PATCH 3/3] ARM: remove empty disable_fiq and arch_ret_to_user macros Rob Herring
2012-02-06 21:34   ` Jamie Iles
2012-02-06 22:40   ` Nicolas Pitre
2012-02-06 23:01   ` Tony Lindgren
2012-02-07  5:10   ` Linus Walleij
2012-02-07  9:35   ` Nicolas Ferre
2012-02-06 22:22 ` [PATCH 0/3] entry-macro.S clean-up Ryan Mallon

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=4F31AB1E.4010800@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.