From patchwork Wed Nov 18 15:30:44 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alessandro Zummo X-Patchwork-Id: 38760 Return-Path: <3JhMESw0MCYgmB6yy0-s00sxq508q35qot.u535o-xuz69s00sxqs30614.o0y@groups.bounces.google.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-yx0-f158.google.com (mail-yx0-f158.google.com [209.85.210.158]) by ozlabs.org (Postfix) with ESMTP id 05204B6EF7 for ; Thu, 19 Nov 2009 02:30:46 +1100 (EST) Received: by mail-yx0-f158.google.com with SMTP id 30sf1861812yxe.29 for ; Wed, 18 Nov 2009 07:30:46 -0800 (PST) Received: by 10.90.107.20 with SMTP id f20mr228703agc.27.1258558246419; Wed, 18 Nov 2009 07:30:46 -0800 (PST) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.204.15.19 with SMTP id i19ls6002238bka.3.p; Wed, 18 Nov 2009 07:30:45 -0800 (PST) Received: by 10.204.23.75 with SMTP id q11mr398081bkb.16.1258558245254; Wed, 18 Nov 2009 07:30:45 -0800 (PST) Received: by 10.204.23.75 with SMTP id q11mr398080bkb.16.1258558245240; Wed, 18 Nov 2009 07:30:45 -0800 (PST) Received: from elettra.colt-to.towertech.it (elettra.colt-to.towertech.it [213.215.222.70]) by gmr-mx.google.com with ESMTP id 18si17254bwz.5.2009.11.18.07.30.45; Wed, 18 Nov 2009 07:30:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of a.zummo@towertech.it designates 213.215.222.70 as permitted sender) client-ip=213.215.222.70; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of a.zummo@towertech.it designates 213.215.222.70 as permitted sender) smtp.mail=a.zummo@towertech.it Received: from linux.lan.towertech.it (93-39-51-125.ip74.fastwebnet.it [93.39.51.125]) by elettra.colt-to.towertech.it (Postfix) with ESMTPA id CB7B61167E1; Wed, 18 Nov 2009 16:30:44 +0100 (CET) Subject: [rtc-linux] [PATCH 7/7] rtc: ds1307 make it possible to share an irq To: akpm@linux-foundation.org From: Alessandro Zummo Cc: Dmitry Eremin-Solenikov , rtc-linux@googlegroups.com Date: Wed, 18 Nov 2009 16:30:44 +0100 Message-ID: <20091118153044.24824.51987.stgit@linux.lan.towertech.it> In-Reply-To: <20091118153010.24824.14155.stgit@linux.lan.towertech.it> References: <20091118153010.24824.14155.stgit@linux.lan.towertech.it> User-Agent: StGit/0.15 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.95.2 at elettra X-Virus-Status: Clean Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: X-Thread-Url: http://groups.google.com/group/rtc-linux/t/3d37b7123be786a4 X-Message-Url: http://groups.google.com/group/rtc-linux/msg/e277fa97deac5f66 From: Dmitry Eremin-Solenikov It's possible to have RTC irq shared with other device (e.g. mpc8349e-mitx board shares ds1339 irq with phy one). Handle this in driver. Signed-off-by: Dmitry Eremin-Solenikov Signed-off-by: Alessandro Zummo patch-name: 38476-rtc-ds1307-share-irq patch-rev1: 1bb5545a284e34fad8f7cd6ced35fd9ecb3f51d4 patch-rev2: cd931d009c74cbb674d3cb44e4de9fb25ce6c9b8 --- drivers/rtc/rtc-ds1307.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index eb99ee4..8a99da6 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -874,7 +874,7 @@ read_rtc: } if (want_irq) { - err = request_irq(client->irq, ds1307_irq, 0, + err = request_irq(client->irq, ds1307_irq, IRQF_SHARED, ds1307->rtc->name, client); if (err) { dev_err(&client->dev,