Skip to contentSkip to conversation

input: Request a shared interrupt for AMBA KMI devices.

PATCH Applied Mark Brown 2 participants 2 messages May 8, 2014 – May 14, 2014

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 input: Request a shared interrupt for AMBA KMI devices.

From: Liviu Dudau <[email protected]>

Recent ARM boards have the KMI devices share one interrupt line rather than having dedicated IRQs. Update the driver to take that into account.

---
 drivers/input/serio/ambakmi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/input/serio/ambakmi.c +2 -1
index 762b08432de0..8b748d99b934 100644
@@ -79,7 +79,8 @@ static int amba_kmi_open(struct serio *io)
 	writeb(divisor, KMICLKDIV);
 	writeb(KMICR_EN, KMICR);
 
-	ret = request_irq(kmi->irq, amba_kmi_int, 0, "kmi-pl050", kmi);
+	ret = request_irq(kmi->irq, amba_kmi_int, IRQF_SHARED, "kmi-pl050",
+			  kmi);
 	if (ret) {
 		printk(KERN_ERR "kmi: failed to claim IRQ%d\n", kmi->irq);
 		writeb(0, KMICR);
Signature · 1 line
2.0.0.rc2
maintainer Applied
#1 lore raw
Quoted 7 lines · Mark Brown

From: Liviu Dudau <[email protected]>

Recent ARM boards have the KMI devices share one interrupt line rather than having dedicated IRQs. Update the driver to take that into account.

Applied, thank you.

Quoted 21 lines
---
 drivers/input/serio/ambakmi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/input/serio/ambakmi.c +2 -1
index 762b08432de0..8b748d99b934 100644
@@ -79,7 +79,8 @@ static int amba_kmi_open(struct serio *io)
 	writeb(divisor, KMICLKDIV);
 	writeb(KMICR_EN, KMICR);
 
-	ret = request_irq(kmi->irq, amba_kmi_int, 0, "kmi-pl050", kmi);
+	ret = request_irq(kmi->irq, amba_kmi_int, IRQF_SHARED, "kmi-pl050",
+			  kmi);
 	if (ret) {
 		printk(KERN_ERR "kmi: failed to claim IRQ%d\n", kmi->irq);
 		writeb(0, KMICR);
Signature · 1 line
2.0.0.rc2
Signature · 1 line
Dmitry