From patchwork Sun Aug 5 23:03:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Vorontsov X-Patchwork-Id: 1275951 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id E01FDDF27F for ; Sun, 5 Aug 2012 23:10:29 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Sy9vE-0007Z5-E8; Sun, 05 Aug 2012 23:07:44 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Sy9vA-0007Wt-ET for linux-arm-kernel@lists.infradead.org; Sun, 05 Aug 2012 23:07:41 +0000 Received: by pbbrq13 with SMTP id rq13so4891620pbb.36 for ; Sun, 05 Aug 2012 16:07:39 -0700 (PDT) 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=ElONC4JZlrY+Wi6Z661llU//fYaXxDq5T9lbfg8w2Bc=; b=QI39NiQ0z2DfH1TYFEvZJrJKi3bfGGC275EUtDNJeyjR/aiKmi4WsTgFgErI+z0xmw 7yMyNPWMBS4uENA1A9COU1WLeLjtcVRRyAoaOvEIK7gwbaebmEZ1Hf84m8Bo/tZyeiEr MSvjADNPbBoEDt69xzGhaN33s8giDW1zGrXNEFceAgP4fGy6Wm+yGKmr6jaPVTnANY5r Y0RhjNzbZyTN3pSj+pl5M0zLw8tu6Ww4CHQN4PBo4ilfWVNq1x6syMY2awM6ZFe49oYS jN+1jMQ0Dk5hRH7lZ2FcVatlwJOCtZ1IGESX9P04qvf5URoBwnbudVJPONkKQoRmgHyC eFlg== Received: by 10.68.221.106 with SMTP id qd10mr14746029pbc.42.1344208059290; Sun, 05 Aug 2012 16:07:39 -0700 (PDT) Received: from localhost (m9f0536d0.tmodns.net. [208.54.5.159]) by mx.google.com with ESMTPS id qt6sm648619pbb.9.2012.08.05.16.07.18 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 05 Aug 2012 16:07:38 -0700 (PDT) From: Anton Vorontsov To: Russell King Subject: [PATCH 4/9] ASoC: imx: Don't use {en,dis}able_fiq() calls Date: Sun, 5 Aug 2012 16:03:34 -0700 Message-Id: <1344207819-3415-4-git-send-email-anton.vorontsov@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <20120805230238.GA1663@lizard> References: <20120805230238.GA1663@lizard> X-Gm-Message-State: ALoCoQlkUAKiSPArxpCpSKZ2cTEpAHoQjA6x3Lyn4IvrVn3MoLNU686eXlIIY9XTsL27gYdx6xof X-Spam-Note: CRM114 invocation failed 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.160.49 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, Sascha Hauer , patches@linaro.org, Tony Lindgren , Mark Brown , linux-kernel@vger.kernel.org, Kukjin Kim , John Stultz , Ben Dooks , kernel-team@android.com, Liam Girdwood , 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 --- 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 ee27ba3..993e37d 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: