Received: by 10.223.176.5 with SMTP id f5csp704267wra; Fri, 9 Feb 2018 05:59:52 -0800 (PST) X-Google-Smtp-Source: AH8x225rTjDnxnhAR0nN5I88WwoQ5M7sHGVLgLtTGLZk7m6mNrSlC5T+eeNz1om4NN3XUn/GtopX X-Received: by 10.101.73.143 with SMTP id r15mr2446756pgs.161.1518184792137; Fri, 09 Feb 2018 05:59:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518184792; cv=none; d=google.com; s=arc-20160816; b=Nw2mhSQrxORZpjGZ25MfzLlC92oySlDVyxpT4A5DszVY3ywT+O30EApY5+P7OMEqT+ jTW7ANxm9Z1/rCKu4OeucwX9vpLIL1PBMqMeWEA4ffTrQOZczeJBRHO1892POqgbsPRu NurPzGhK/RcuBnTTzCZG46RM5VDPyENo9tciVxSkTMuRm1hyWpNB/sQ4MPW3iOcLjYgr oYWOvZ7QsHYYIO/cqUo/wztwQc8Ur2oLXLk/4zUJJDiv1jtOZ2yI0rPsTL8Ibou/OAZw R1FMQh6v9Nmwywf5KFyqLBvJYrqMF+aln3Atf5Hw8rDn2Uf5tQTiRc89QLWx4/+Wfux6 5P5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=tFCE5IcAjYfqyJ44n0QP9yDftz7Pcc6sP2+X+sA0C/4=; b=iBq8Jmc82rbJydFYinCVyFJofyRWJAdhuzWgz1h1yG7AIx4rM60bIcF7CAa2z8MHfB xqSQlKMK63rfYZHbEF1np2diIxN3qYi7vzwgYW782oRxpYeYJZzXSxfGqw9ktQLGDVFn H0T0zsOCm9GOTFyzwE8WDIHrp5xqmcVtAKwlIGUpSK3vtXZYYVTmQQpIK0Rp6Z5b7KFf PBVSKPUYzkYdZnWGqZjPG02C4tsUCS6su4e5lCG1jqigYWnp7a3rcCPk0p8y5UGqcdnb UQOdZbyxyMx8pWzPYrGe0DxwIE4GYobbx4EmISi7PadOktI0tkE9/qh9vOUpnRg7nm0Q bntg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h18si1648907pfi.167.2018.02.09.05.59.37; Fri, 09 Feb 2018 05:59:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753481AbeBINos (ORCPT + 99 others); Fri, 9 Feb 2018 08:44:48 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:51538 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752862AbeBINop (ORCPT ); Fri, 9 Feb 2018 08:44:45 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 339421056; Fri, 9 Feb 2018 13:44:44 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kuninori Morimoto , Mark Brown , thongsyho , Nhan Nguyen Subject: [PATCH 4.9 89/92] ASoC: rsnd: avoid duplicate free_irq() Date: Fri, 9 Feb 2018 14:39:58 +0100 Message-Id: <20180209133937.472738403@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180209133931.211869118@linuxfoundation.org> References: <20180209133931.211869118@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kuninori Morimoto commit e0936c3471a8411a5df327641fa3ffe12a2fb07b upstream. commit 1f8754d4daea5f ("ASoC: rsnd: don't call free_irq() on Parent SSI") fixed Parent SSI duplicate free_irq(). But on Renesas Sound, not only Parent SSI but also Multi SSI have same issue. This patch avoid duplicate free_irq() if it was not pure SSI. Fixes: 1f8754d4daea5f ("ASoC: rsnd: don't call free_irq() on Parent SSI") Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown Signed-off-by: thongsyho Signed-off-by: Nhan Nguyen Signed-off-by: Greg Kroah-Hartman --- sound/soc/sh/rcar/ssi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/sound/soc/sh/rcar/ssi.c +++ b/sound/soc/sh/rcar/ssi.c @@ -699,12 +699,12 @@ static int rsnd_ssi_dma_remove(struct rs struct rsnd_priv *priv) { struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod); - struct rsnd_mod *ssi_parent_mod = rsnd_io_to_mod_ssip(io); + struct rsnd_mod *pure_ssi_mod = rsnd_io_to_mod_ssi(io); struct device *dev = rsnd_priv_to_dev(priv); int irq = ssi->irq; - /* Do nothing for SSI parent mod */ - if (ssi_parent_mod == mod) + /* Do nothing if non SSI (= SSI parent, multi SSI) mod */ + if (pure_ssi_mod != mod) return 0; /* PIO will request IRQ again */