* [PATCH] Hexagon: kernel: use IRQCHIP_SKIP_SET_WAKE instead of irq_set_wake callback
@ 2015-06-15 16:56 Sudeep Holla
2015-06-18 17:45 ` rkuo
0 siblings, 1 reply; 2+ messages in thread
From: Sudeep Holla @ 2015-06-15 16:56 UTC (permalink / raw)
To: Richard Kuo; +Cc: linux-hexagon, Sudeep Holla
Commit 60f96b41f71d ("genirq: Add IRQCHIP_SKIP_SET_WAKE flag")
introduced a new flag to skip the irq_set_wake callback in the irqchip
core to avoid adding dummy irq_set_wake in the irqchip implementations.
This patch removes the dummy callback and sets the IRQCHIP_SKIP_SET_WAKE
flags.
Cc: Richard Kuo <rkuo@codeaurora.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
---
arch/hexagon/kernel/irq_cpu.c | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/arch/hexagon/kernel/irq_cpu.c b/arch/hexagon/kernel/irq_cpu.c
index 85883e1fdc12..36b8ccfda43a 100644
--- a/arch/hexagon/kernel/irq_cpu.c
+++ b/arch/hexagon/kernel/irq_cpu.c
@@ -43,24 +43,12 @@ static void eoi_irq(struct irq_data *data)
__vmintop_globen((long) data->irq);
}
-/* Power mamangement wake call. We don't need this, however,
- * if this is absent, then an -ENXIO error is returned to the
- * msm_serial driver, and it fails to correctly initialize.
- * This is a bug in the msm_serial driver, but, for now, we
- * work around it here, by providing this bogus handler.
- * XXX FIXME!!! remove this when msm_serial is fixed.
- */
-static int set_wake(struct irq_data *data, unsigned int on)
-{
- return 0;
-}
-
static struct irq_chip hexagon_irq_chip = {
.name = "HEXAGON",
.irq_mask = mask_irq,
.irq_unmask = unmask_irq,
- .irq_set_wake = set_wake,
- .irq_eoi = eoi_irq
+ .irq_eoi = eoi_irq,
+ .flags = IRQCHIP_SKIP_SET_WAKE,
};
/**
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Hexagon: kernel: use IRQCHIP_SKIP_SET_WAKE instead of irq_set_wake callback
2015-06-15 16:56 [PATCH] Hexagon: kernel: use IRQCHIP_SKIP_SET_WAKE instead of irq_set_wake callback Sudeep Holla
@ 2015-06-18 17:45 ` rkuo
0 siblings, 0 replies; 2+ messages in thread
From: rkuo @ 2015-06-18 17:45 UTC (permalink / raw)
To: Sudeep Holla; +Cc: linux-hexagon
On Mon, Jun 15, 2015 at 05:56:17PM +0100, Sudeep Holla wrote:
> Commit 60f96b41f71d ("genirq: Add IRQCHIP_SKIP_SET_WAKE flag")
> introduced a new flag to skip the irq_set_wake callback in the irqchip
> core to avoid adding dummy irq_set_wake in the irqchip implementations.
>
> This patch removes the dummy callback and sets the IRQCHIP_SKIP_SET_WAKE
> flags.
>
> Cc: Richard Kuo <rkuo@codeaurora.org>
> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
> ---
> arch/hexagon/kernel/irq_cpu.c | 16 ++--------------
> 1 file changed, 2 insertions(+), 14 deletions(-)
>
> diff --git a/arch/hexagon/kernel/irq_cpu.c b/arch/hexagon/kernel/irq_cpu.c
> index 85883e1fdc12..36b8ccfda43a 100644
> --- a/arch/hexagon/kernel/irq_cpu.c
> +++ b/arch/hexagon/kernel/irq_cpu.c
> @@ -43,24 +43,12 @@ static void eoi_irq(struct irq_data *data)
> __vmintop_globen((long) data->irq);
> }
>
> -/* Power mamangement wake call. We don't need this, however,
> - * if this is absent, then an -ENXIO error is returned to the
> - * msm_serial driver, and it fails to correctly initialize.
> - * This is a bug in the msm_serial driver, but, for now, we
> - * work around it here, by providing this bogus handler.
> - * XXX FIXME!!! remove this when msm_serial is fixed.
> - */
> -static int set_wake(struct irq_data *data, unsigned int on)
> -{
> - return 0;
> -}
> -
> static struct irq_chip hexagon_irq_chip = {
> .name = "HEXAGON",
> .irq_mask = mask_irq,
> .irq_unmask = unmask_irq,
> - .irq_set_wake = set_wake,
> - .irq_eoi = eoi_irq
> + .irq_eoi = eoi_irq,
> + .flags = IRQCHIP_SKIP_SET_WAKE,
> };
>
> /**
> --
> 1.9.1
>
Thanks!
Acked-by: Richard Kuo <rkuo@codeaurora.org>
--
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-18 17:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-15 16:56 [PATCH] Hexagon: kernel: use IRQCHIP_SKIP_SET_WAKE instead of irq_set_wake callback Sudeep Holla
2015-06-18 17:45 ` rkuo
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).