From patchwork Wed May 30 04:47:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 9034 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 1ABF323E58 for ; Wed, 30 May 2012 04:48:50 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id DE814A185A3 for ; Wed, 30 May 2012 04:48:49 +0000 (UTC) Received: by mail-yx0-f180.google.com with SMTP id q6so3248783yen.11 for ; Tue, 29 May 2012 21:48:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=0aBMr3LezWe1oULGSr4ruyvW2y90OWZ8iei7krg4x2Y=; b=hW9vyrUhqPgIhN3vhG07oPEfCtY7u8cPsLO6hU/sOPglBdudiWF6kHRcCRf2fv0w+D n37XXvERBHl6ADeyELIXgMn1dcvUiSy17YaoqC+9OhyDobLgSOZU07vsYbF8BVoxrU9i olF3fSPrQeYDS5CejQeE52KdZ6Mf7WFeC1AnVE8APP6Z4mvU82oGnZqi66wBWMNo2i/P FRkZDQK6Q1ttNpf9RGgzdjhxFWrcCzHZY8pN7Vh6HKv8h8SGQhkV7MRPjvIXsxUb8Od3 a/tOj830tNh0K9q3V0Pof/eZpyhfeQUH4PYdmCGD8fRb1JTKYtnajdePwn3qUNJRt9vz mJ4Q== Received: by 10.42.89.72 with SMTP id f8mr8531538icm.33.1338353327756; Tue, 29 May 2012 21:48:47 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp170272ibb; Tue, 29 May 2012 21:48:47 -0700 (PDT) Received: by 10.68.231.36 with SMTP id td4mr45904016pbc.141.1338353327188; Tue, 29 May 2012 21:48:47 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id ic5si23533843pbc.267.2012.05.29.21.48.47 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 May 2012 21:48:47 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-pb0-f50.google.com with SMTP id rr4so7848934pbb.37 for ; Tue, 29 May 2012 21:48:47 -0700 (PDT) Received: by 10.68.239.161 with SMTP id vt1mr25598970pbc.15.1338353326960; Tue, 29 May 2012 21:48:46 -0700 (PDT) Received: from localhost.localdomain ([118.143.64.134]) by mx.google.com with ESMTPS id kd6sm25122557pbc.24.2012.05.29.21.48.44 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 May 2012 21:48:46 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, arnd@arndb.de, linus.walleij@stericsson.com, grant.likely@secretlab.ca, cjb@laptop.org, broonie@opensource.wolfsonmicro.com, sameo@linux.intel.com Cc: Lee Jones , linux-kernel@vger.kernel.org Subject: [PATCH 16/22] mfd: ab8500-gpadc: Enable IRQF_ONESHOT when requesting a threaded IRQ Date: Wed, 30 May 2012 12:47:34 +0800 Message-Id: <1338353260-10097-17-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1338353260-10097-1-git-send-email-lee.jones@linaro.org> References: <1338353260-10097-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQkanucJ5OCikr+LLUYgKGpHCq7GUVSM5XDafpRJXICRIo3+wuHOeexUVjb4GhEc70zorADc The kernel now forces IRQs to be ONESHOT if no IRQ handler is passed. Cc: Samuel Ortiz Cc: linux-kernel@vger.kernel.org Signed-off-by: Lee Jones --- drivers/mfd/ab8500-gpadc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/ab8500-gpadc.c b/drivers/mfd/ab8500-gpadc.c index c39fc71..358d502 100644 --- a/drivers/mfd/ab8500-gpadc.c +++ b/drivers/mfd/ab8500-gpadc.c @@ -599,7 +599,8 @@ static int __devinit ab8500_gpadc_probe(struct platform_device *pdev) /* Register interrupt - SwAdcComplete */ ret = request_threaded_irq(gpadc->irq, NULL, ab8500_bm_gpswadcconvend_handler, - IRQF_NO_SUSPEND | IRQF_SHARED, "ab8500-gpadc", gpadc); + IRQF_ONESHOT | IRQF_NO_SUSPEND | IRQF_SHARED, + "ab8500-gpadc", gpadc); if (ret < 0) { dev_err(gpadc->dev, "Failed to register interrupt, irq: %d\n", gpadc->irq);