All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wu Zhangjin <wuzhangjin@gmail.com>
To: yajin <yajinzhou@vm-kernel.org>
Cc: linux-mips@linux-mips.org,
	loongson-dev <loongson-dev@googlegroups.com>,
	apatard@mandriva.com
Subject: Re: [PATCH 1/12] remove set_irq_trigger_mode to mach_init_irq
Date: Tue, 04 May 2010 18:52:20 +0800	[thread overview]
Message-ID: <1272970340.9547.2.camel@localhost> (raw)
In-Reply-To: <v2w180e2c241005040254h59bd552fv160cee08beaa01ca@mail.gmail.com>

Hi, Yajin

Perhaps we can remove this set_irq_trigger_mode() completely via merging
ti into mach_init_irq().

Then We also need to remove the related declaration in
arch/mips/include/asm/mach-loongson/loongson.h.

Regards,
	Wu Zhangjin

On Tue, 2010-05-04 at 17:54 +0800, yajin wrote:
> The function set_irq_trigger_mode is used to set the interrupt trigger
> level and it should be machine specific. That means we need to remove
> this function from common/irq.c to irq.c of different loongson
> machines.
> 
> 
> Signed-off-by: yajin <yajin@vm-kernel.org>
> ---
>  arch/mips/loongson/common/irq.c     |    3 ---
>  arch/mips/loongson/fuloong-2e/irq.c |    3 +++
>  arch/mips/loongson/lemote-2f/irq.c  |    3 +++
>  3 files changed, 6 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/mips/loongson/common/irq.c b/arch/mips/loongson/common/irq.c
> index 20e7328..987feeb 100644
> --- a/arch/mips/loongson/common/irq.c
> +++ b/arch/mips/loongson/common/irq.c
> @@ -56,9 +56,6 @@ void __init arch_init_irq(void)
>  	 */
>  	clear_c0_status(ST0_IM | ST0_BEV);
> 
> -	/* setting irq trigger mode */
> -	set_irq_trigger_mode();
> -
>  	/* no steer */
>  	LOONGSON_INTSTEER = 0;
> 
> diff --git a/arch/mips/loongson/fuloong-2e/irq.c
> b/arch/mips/loongson/fuloong-2e/irq.c
> index 320e937..3881bd3 100644
> --- a/arch/mips/loongson/fuloong-2e/irq.c
> +++ b/arch/mips/loongson/fuloong-2e/irq.c
> @@ -59,6 +59,9 @@ void __init mach_init_irq(void)
>  	 *   32-63        ------> bonito irq
>  	 */
> 
> +	/* setting irq trigger mode */
> +	set_irq_trigger_mode();
> +
>  	/* Sets the first-level interrupt dispatcher. */
>  	mips_cpu_irq_init();
>  	init_i8259_irqs();
> diff --git a/arch/mips/loongson/lemote-2f/irq.c
> b/arch/mips/loongson/lemote-2f/irq.c
> index 1d8b4d2..f3eee56 100644
> --- a/arch/mips/loongson/lemote-2f/irq.c
> +++ b/arch/mips/loongson/lemote-2f/irq.c
> @@ -122,6 +122,9 @@ void __init mach_init_irq(void)
>  	 *   32-63        ------> bonito irq
>  	 */
> 
> +	/* setting irq trigger mode */
> +	set_irq_trigger_mode();
> +
>  	/* Sets the first-level interrupt dispatcher. */
>  	mips_cpu_irq_init();
>  	init_i8259_irqs();

      reply	other threads:[~2010-05-04 10:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-04  9:54 [PATCH 1/12] remove set_irq_trigger_mode to mach_init_irq yajin
2010-05-04 10:52 ` Wu Zhangjin [this message]

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=1272970340.9547.2.camel@localhost \
    --to=wuzhangjin@gmail.com \
    --cc=apatard@mandriva.com \
    --cc=linux-mips@linux-mips.org \
    --cc=loongson-dev@googlegroups.com \
    --cc=yajinzhou@vm-kernel.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.