From: Feng Tang <feng.tang@intel.com>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: "platform-driver-x86@vger.kernel.org"
<platform-driver-x86@vger.kernel.org>,
"alan@linux.intel.com" <alan@linux.intel.com>,
"tglx@linutronix.de" <tglx@linutronix.de>,
"Du, Alek" <alek.du@intel.com>
Subject: Re: [PATCH] intel_pmic_gpio: modify EOI handling following change of kernel irq subsystem
Date: Fri, 31 Dec 2010 09:48:20 +0800 [thread overview]
Message-ID: <20101231094820.351dade9@feng-i7> (raw)
In-Reply-To: <20101230134117.GA12686@srcf.ucam.org>
On Thu, 30 Dec 2010 21:41:17 +0800
Matthew Garrett <mjg59@srcf.ucam.org> wrote:
> On Thu, Dec 30, 2010 at 05:32:54PM +0800, Feng Tang wrote:
> > Latest kernel has many changes in IRQ subsystem and its interfaces,
> > like adding "irq_eoi" for struct irq_chip, this patch will make it
> > support both the new and old interface.
>
> There's no point in having compatibility stubs in the mainline
> kernel. Just fix the driver up to match the new behaviour.
>
Thanks for the comments, here is the revised one
-----
From 834453fe4cb94cfcda4487ef68967037f2b5d2f2 Mon Sep 17 00:00:00 2001
From: Feng Tang <feng.tang@intel.com>
Date: Mon, 29 Nov 2010 13:39:40 +0800
Subject: [PATCH] intel_pmic_gpio: modify EOI handling following change of kernel irq subsystem
Latest kernel has many changes in IRQ subsystem and its interfaces, like adding
"irq_eoi" for struct irq_chip, this patch will make it support both the new
and old interface.
Cc: Alek Du <alek.du@intel.com>
Signed-off-by: Feng Tang <feng.tang@intel.com>
---
drivers/platform/x86/intel_pmic_gpio.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/drivers/platform/x86/intel_pmic_gpio.c b/drivers/platform/x86/intel_pmic_gpio.c
index e61db9d..930e627 100644
--- a/drivers/platform/x86/intel_pmic_gpio.c
+++ b/drivers/platform/x86/intel_pmic_gpio.c
@@ -244,7 +244,11 @@ static void pmic_irq_handler(unsigned irq, struct irq_desc *desc)
generic_handle_irq(pg->irq_base + gpio);
}
}
- desc->chip->eoi(irq);
+
+ if (desc->chip->irq_eoi)
+ desc->chip->irq_eoi(irq_get_irq_data(irq));
+ else
+ dev_warn(pg->chip.dev, "missing EOI handler for irq %d\n", irq);
}
static int __devinit platform_pmic_gpio_probe(struct platform_device *pdev)
next prev parent reply other threads:[~2010-12-31 1:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-30 9:32 [PATCH] intel_pmic_gpio: modify EOI handling following change of kernel irq subsystem Feng Tang
2010-12-30 13:41 ` Matthew Garrett
2010-12-31 1:48 ` Feng Tang [this message]
2011-01-07 22:27 ` Matthew Garrett
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=20101231094820.351dade9@feng-i7 \
--to=feng.tang@intel.com \
--cc=alan@linux.intel.com \
--cc=alek.du@intel.com \
--cc=mjg59@srcf.ucam.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=tglx@linutronix.de \
/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.