Skip to contentSkip to conversation

+ drivers-rtc-rtc-ds3232c-make-it-possible-to-share-an-irq.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Feb 21, 2014 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

Subject: + drivers-rtc-rtc-ds3232c-make-it-possible-to-share-an-irq.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 21 Feb 2014 15:36:38 -0800

The patch titled
Subject: drivers/rtc/rtc-ds3232.c: make it possible to share an irq
has been added to the -mm tree. Its filename is
drivers-rtc-rtc-ds3232c-make-it-possible-to-share-an-irq.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/drivers-rtc-rtc-ds3232c-make-it-possible-to-share-an-irq.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/drivers-rtc-rtc-ds3232c-make-it-possible-to-share-an-irq.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Bharat Bhushan <[email protected]>
Subject: drivers/rtc/rtc-ds3232.c: make it possible to share an irq

It's possible to have RTC irq shared with other device (e.g. t4240qds board shares ds3232irq with phy one). Handle this in driver.

---

 drivers/rtc/rtc-ds3232.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/rtc/rtc-ds3232.c renamed from drivers/rtc/rtc-ds3232.c~drivers-rtc-rtc-ds3232c-make-it-possible-to-share-an-irq +2 -2
diff -puN drivers/rtc/rtc-ds3232.c~drivers-rtc-rtc-ds3232c-make-it-possible-to-share-an-irq drivers/rtc/rtc-ds3232.c
@@ -419,8 +419,8 @@ static int ds3232_probe(struct i2c_clien
 	}
 
 	if (client->irq >= 0) {
-		ret = devm_request_irq(&client->dev, client->irq, ds3232_irq, 0,
-				 "ds3232", client);
+		ret = devm_request_irq(&client->dev, client->irq, ds3232_irq,
+				       IRQF_SHARED, "ds3232", client);
 		if (ret) {
 			dev_err(&client->dev, "unable to request IRQ\n");
 			return ret;

_

Patches currently in -mm which might be from [email protected] are

drivers-rtc-rtc-ds3232c-make-it-possible-to-share-an-irq.patch