From patchwork Fri Nov 23 00:49:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Vorontsov X-Patchwork-Id: 1793331 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 44D703FC64 for ; Fri, 23 Nov 2012 00:57:36 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TbhXD-0006fZ-Ne; Fri, 23 Nov 2012 00:54:23 +0000 Received: from mail-ob0-f177.google.com ([209.85.214.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TbhWS-0006UI-1a for linux-arm-kernel@lists.infradead.org; Fri, 23 Nov 2012 00:53:39 +0000 Received: by mail-ob0-f177.google.com with SMTP id eh20so8362182obb.36 for ; Thu, 22 Nov 2012 16:53:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=7yrhHnifAkG1nDuhFZMP7QYjg8klFb0QzWbPCHETaw4=; b=P82liVMUeZXc4izVQh188CcJNoic/1p95u7HN7ggPjCphPyRGgbC4RBH8njplPzaUB XoLl56bQIYHBFCf1UOGCpCZ7L0RdVun/htNTEJOLnB6/OwZP4+oJSk4xaoo3kDwFcLhQ w9kSu+59zVTDd8eAadUArf286qcibEahFcWRJIcZhGQ/RbSBE8V8agpAqas3PHkF0gZc pHaBHkjN0daWOhWaMJAqrHduNwGfYM4szV5Sn0zv4RqJ6nqmkxaFaL4qYUnv53jifU9I z4kiGEY3shV137OEpXQSihSjnTBuBNaEyYBjN0ykjWzSfKOuEjlIJVDWKFv13GORnMPa MMwA== Received: by 10.182.162.4 with SMTP id xw4mr1674320obb.16.1353632015847; Thu, 22 Nov 2012 16:53:35 -0800 (PST) Received: from localhost (ip-64-134-239-153.public.wayport.net. [64.134.239.153]) by mx.google.com with ESMTPS id hg8sm4460722obb.19.2012.11.22.16.53.34 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Nov 2012 16:53:35 -0800 (PST) From: Anton Vorontsov To: Andrew Morton Subject: [PATCH 04/10] ASoC: imx: Don't use {en,dis}able_fiq() calls Date: Thu, 22 Nov 2012 16:49:57 -0800 Message-Id: <1353631803-4853-4-git-send-email-anton.vorontsov@linaro.org> X-Mailer: git-send-email 1.8.0 In-Reply-To: <20121123003849.GA973@lizard.mcd25758.sjc.wayport.net> References: <20121123003849.GA973@lizard.mcd25758.sjc.wayport.net> X-Gm-Message-State: ALoCoQl4oNUYkavE7IcilVik8fUu0z+dfutlurw3ztWfB3BAwciXjYIz6Pj7MRfqpqa9ZBmxzZ8K X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121122_195336_248237_7AC58C0D X-CRM114-Status: GOOD ( 13.56 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.177 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: linaro-kernel@lists.linaro.org, Russell King , patches@linaro.org, linux-kernel@vger.kernel.org, John Stultz , Jason Wessel , kernel-team@android.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The driver uses platform-specific mxc_set_irq_fiq() with the VIRQ cookie passed to it, so it's pretty clear that the driver is absolutely sure that the FIQ is routed via platform-specific IC, and that the cookie can be used to mask/unmask FIQs. So, let's switch to the genirq routines, since we're about to remove FIQ-specific variants. Signed-off-by: Anton Vorontsov Acked-by: Sascha Hauer Acked-by: Mark Brown --- sound/soc/fsl/imx-pcm-fiq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/imx-pcm-fiq.c b/sound/soc/fsl/imx-pcm-fiq.c index 22c6130..8f1a4a6 100644 --- a/sound/soc/fsl/imx-pcm-fiq.c +++ b/sound/soc/fsl/imx-pcm-fiq.c @@ -139,7 +139,7 @@ static int snd_imx_pcm_trigger(struct snd_pcm_substream *substream, int cmd) hrtimer_start(&iprtd->hrt, ns_to_ktime(iprtd->poll_time_ns), HRTIMER_MODE_REL); if (++fiq_enable == 1) - enable_fiq(imx_pcm_fiq); + enable_irq(imx_pcm_fiq); break; @@ -149,7 +149,7 @@ static int snd_imx_pcm_trigger(struct snd_pcm_substream *substream, int cmd) atomic_set(&iprtd->running, 0); if (--fiq_enable == 0) - disable_fiq(imx_pcm_fiq); + disable_irq(imx_pcm_fiq); break; default: