From patchwork Fri Aug 18 11:48:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 9908427 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C9A23600CC for ; Fri, 18 Aug 2017 11:52:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B851727D0C for ; Fri, 18 Aug 2017 11:52:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AC17E28C8A; Fri, 18 Aug 2017 11:52:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3800228C84 for ; Fri, 18 Aug 2017 11:52:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Date:Message-Id: In-Reply-To:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: References:List-Owner; bh=kq23PknZoyAQH8Gw/496RqI0nPIfQNPX5XORvcNNqBk=; b=GCy 21X5QervxpMBTZWOOvhloaKH8uAMCyJu/AcpBT61MME/k5bXrX8A47xWSB1BG8zWsNyNus6MXgQZE r0uJpZh2pIESqLkvqHiPYaie0NVc0tfPcxXJahILQBZwhycBo1JmWKyR9I8wLf1DlMeA8CJ3bShh7 uBWgyjSYi41ILXn+QE/xN3XwbY+UK/B34/xAu3B4/K0HbYShFVZ9+Bq296VBxkiFneQ5yz5tc7ZvN jxcFD6krJzu8EQnpmXIrN97fG4yxAIIqCN4+cpKCpB/YKeR5LYm6lTT6TMZd6OSAXSBPKpQX7iLeU y4z+inQ9F8SjqaEir09clBjYJOaFFlg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1difp8-0001tG-ID; Fri, 18 Aug 2017 11:52:22 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1difp6-0001t6-SW for linux-mediatek@bombadil.infradead.org; Fri, 18 Aug 2017 11:52:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Date:Message-Id:In-Reply-To:Subject:Cc: To:From:Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:References:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=/eJHlt+w4cB/9uEt1GmjQU+P29OLmKpW2M223ewWg10=; b=rfvKq2cMLOPcfobRJ+JzgGzxUX ufN3CoOVkrznSyltUM7+OxrN1o6AkckdNYYIOKEujN2dGPimlTuW7CHRzIj+1C49QEf7qJYMM6rpt frYSq2nEGa5qHXi1XsrphPp5XM/TqaZ7r25j/PoUzaQ6N4ruV89auBkoaN2epAs/e7rtC2SrZnOTu yIGQVpF6sj1tVxfKiB1FAtV32GOfk7Hxat5kq4hZiNn7GiWGsAPAqQc1Au9PHdOAM8T68M2U2ZGKs 6vEkGyLVTUlRYC6eaX6GI81akxicj8JXFk2AXaqq49ANBfyaORB1cmpo61Q4ncNFFGriglualYdXk iDYDW77w==; Received: from heliosphere.sirena.org.uk ([2a01:7e01::f03c:91ff:fed4:a3b6]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1difp2-0003Nb-Ot for linux-mediatek@lists.infradead.org; Fri, 18 Aug 2017 11:52:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=/eJHlt+w4cB/9uEt1GmjQU+P29OLmKpW2M223ewWg10=; b=orB6UdiEZCAF izG39qKT86tCReffM7+c923E187/u+mpBGM5hB8cwgF8W5sd5MwDg0RwseBKx2if8a+JukZ66tXCK QSMkhsz35GgBYmUZenUoNGkxWXczF1WElvLqV9EjYGTM1EZJzxtLzNwOji3dG+54troQrI+Odzb9X QlyLk=; Received: from [2001:470:1f1d:6b5:7e7a:91ff:fede:4a45] (helo=finisterre) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1diflP-0001Qk-OP; Fri, 18 Aug 2017 11:48:31 +0000 Received: from broonie by finisterre with local (Exim 4.89) (envelope-from ) id 1diflP-0000sb-An; Fri, 18 Aug 2017 12:48:31 +0100 From: Mark Brown To: Ryder Lee Subject: Applied "ASoC: mediatek: switch to use platform_get_irq_byname()" to the asoc tree In-Reply-To: <3c24b787fab90c898450a3027b2d11bf1c04ff24.1503019482.git.ryder.lee@mediatek.com> Message-Id: Date: Fri, 18 Aug 2017 12:48:31 +0100 X-Bad-Reply: In-Reply-To but no 'Re:' in Subject. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Garlic Tseng , linux-kernel@vger.kernel.org, Mark Brown , linux-mediatek@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The patch ASoC: mediatek: switch to use platform_get_irq_byname() has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From f6c1626e28f22115ded520300b56fa049c068f4f Mon Sep 17 00:00:00 2001 From: Ryder Lee Date: Fri, 18 Aug 2017 09:28:50 +0800 Subject: [PATCH] ASoC: mediatek: switch to use platform_get_irq_byname() Switch to use platform_get_irq_byname() so that binding can be agnostic of the IRQ order. Signed-off-by: Ryder Lee CC: Garlic Tseng Signed-off-by: Mark Brown --- sound/soc/mediatek/mt2701/mt2701-afe-pcm.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c b/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c index 10dcd69c5ffa..8fda182f849b 100644 --- a/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c +++ b/sound/soc/mediatek/mt2701/mt2701-afe-pcm.c @@ -1496,14 +1496,12 @@ static int mt2701_afe_runtime_resume(struct device *dev) static int mt2701_afe_pcm_dev_probe(struct platform_device *pdev) { - int ret, i; - unsigned int irq_id; struct mtk_base_afe *afe; struct mt2701_afe_private *afe_priv; struct resource *res; struct device *dev; + int i, irq_id, ret; - ret = 0; afe = devm_kzalloc(&pdev->dev, sizeof(*afe), GFP_KERNEL); if (!afe) return -ENOMEM; @@ -1516,11 +1514,12 @@ static int mt2701_afe_pcm_dev_probe(struct platform_device *pdev) afe->dev = &pdev->dev; dev = afe->dev; - irq_id = platform_get_irq(pdev, 0); - if (!irq_id) { - dev_err(dev, "%s no irq found\n", dev->of_node->name); - return -ENXIO; + irq_id = platform_get_irq_byname(pdev, "asys"); + if (irq_id < 0) { + dev_err(dev, "unable to get ASYS IRQ\n"); + return irq_id; } + ret = devm_request_irq(dev, irq_id, mt2701_asys_isr, IRQF_TRIGGER_NONE, "asys-isr", (void *)afe); if (ret) {