From patchwork Wed Dec 18 03:53:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonghwa Lee X-Patchwork-Id: 3367301 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 074C49F44F for ; Wed, 18 Dec 2013 03:54:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 12D62203AD for ; Wed, 18 Dec 2013 03:54:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0EFA6203E1 for ; Wed, 18 Dec 2013 03:54:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753036Ab3LRDyE (ORCPT ); Tue, 17 Dec 2013 22:54:04 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:61645 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752824Ab3LRDyA (ORCPT ); Tue, 17 Dec 2013 22:54:00 -0500 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MXZ005C9HHYOZ50@mailout4.samsung.com> for linux-pm@vger.kernel.org; Wed, 18 Dec 2013 12:53:58 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.114]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 8D.72.06316.65C11B25; Wed, 18 Dec 2013 12:53:58 +0900 (KST) X-AuditID: cbfee691-b7fe66d0000018ac-3f-52b11c56b9f1 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 2B.83.22838.65C11B25; Wed, 18 Dec 2013 12:53:58 +0900 (KST) Received: from localhost.localdomain ([10.252.82.199]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MXZ002NVHHW6CE0@mmp1.samsung.com>; Wed, 18 Dec 2013 12:53:58 +0900 (KST) From: Jonghwa Lee To: linux-pm@vger.kernel.org Cc: anton@enomsg.org, dwmw2@infradead.org, Jonghwa Lee , MyungJoo Ham Subject: [PATCH 2/3] fuelgauge: max17042: Add IRQF_ONESHOT flag to use default irq handler. Date: Wed, 18 Dec 2013 12:53:53 +0900 Message-id: <1387338834-4046-3-git-send-email-jonghwa3.lee@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1387338834-4046-1-git-send-email-jonghwa3.lee@samsung.com> References: <1387338834-4046-1-git-send-email-jonghwa3.lee@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKLMWRmVeSWpSXmKPExsWyRsSkSDdMZmOQwdELWhYHt2paTFw5mdmi 8+wTZovPvUcYLW43rmBzYPWY0P+J0WPzCi2Pvi2rGD0+b5ILYInisklJzcksSy3St0vgytix cCFzwXyOiufT97A3ML5g62Lk5JAQMJH4Ou8YlC0mceHeeiCbi0NIYCmjxOtnPxhhin71rGCC SCxilLgz/xg7hNPGJPF68jkmkCo2AR2J//tusoPYIgIyElOv7GcFsZkFaiTWX+oDmyQsECux 5PMasHUsAqoSP79PAbN5BdwlHt3dAFTPAbRNQWLOJBuQMKeAh8T3nT/BxgsBlVyevIkZZK+E QDO7xOx/N5gg5ghIfJt8iAWiV1Zi0wFmiKMlJQ6uuMEygVF4ASPDKkbR1ILkguKk9CJTveLE 3OLSvHS95PzcTYzAID7979nEHYz3D1gfYkwGGjeRWUo0OR8YBXkl8YbGZkYWpiamxkbmlmak CSuJ86Y/SgoSEkhPLEnNTk0tSC2KLyrNSS0+xMjEwSnVwJi9LSV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X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds IRQF_ONESHOT flag to max17042's irq since it uses primary default handler. Without this flag, requesting irq will be denied with returning error. Signed-off-by: Jonghwa Lee Signed-off-by: MyungJoo Ham --- drivers/power/max17042_battery.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/max17042_battery.c b/drivers/power/max17042_battery.c index bbb2e01..c611ce7 100644 --- a/drivers/power/max17042_battery.c +++ b/drivers/power/max17042_battery.c @@ -710,9 +710,9 @@ static int max17042_probe(struct i2c_client *client, if (client->irq) { ret = request_threaded_irq(client->irq, NULL, - max17042_thread_handler, - IRQF_TRIGGER_FALLING, - chip->battery.name, chip); + max17042_thread_handler, + IRQF_TRIGGER_FALLING | IRQF_ONESHOT, + chip->battery.name, chip); if (!ret) { regmap_read(chip->regmap, MAX17042_CONFIG, &val); val |= CONFIG_ALRT_BIT_ENBL;