Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4805809pxj; Tue, 22 Jun 2021 08:24:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyO22oFwuKbJ1i4/zZunXzzcj+eeH4QPRTHbuzbN7j1C7+kErug1a//ZMOv+PwTzF6cTVFV X-Received: by 2002:a05:6402:120b:: with SMTP id c11mr5759948edw.209.1624375451436; Tue, 22 Jun 2021 08:24:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624375451; cv=none; d=google.com; s=arc-20160816; b=Tb73xUVICz3NAzoFvknfKANyZyom1eEZRUyJL77CG3QJ2/WaTYUvkMbHGlWCpV2ESS 4BhrfpGDUm4H/nzCX2yyxqjb9m1YHFqWNx4TgCR3JQxXj3sj8YrBGhT7tlVM6RkmZ3eo /YBVq6SAtqQtR9WvYQu/FTfxcCGYCETrGzquWtdML8+vA5uHIcnHo5OcTrRsJhoB6FGR E/BP9ywZn7psg6HUFN7k/pCbrkyLgGgSUGgZp2tXPMDmiH3W/Ep3aPjkXWmvNLUW2GhH ZxiZYOTpC7vAnQ9i2tyQdFkCFSSGo7FJMWSe/k2TPT7jUZRLijTtLdaNrU/rn5TYfbXu 5B7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bpqGkk/JGVe/MnPyoETv0p8uKc3pSJj4YexxopDDd2U=; b=YnZVREC/7/ONJgqxjLiU3fiH0AXjDOGMrzqKIDBVxZJii13eFYiLHjgObVeMvpZRTI 7+oKwVWYRJh3xsEkia943jgs7zk/CSOJ9XB0iA4ZKn6wPmsnPz1w1Zd7ImIf2J0w35rU ewJN+1ogl09/iEbW8Oc2ePvxjwxPWEyDJzlXHuM+ITIeILDgRcyGbtxlEE/2g3owwUUh 6/pt/XO1mF5+FGCSHs7Gt37yp9dXgQcrmW4JDWLgXcIRP18czNzbtY4sj3eVIj/COW6G VFmLqsUblBMkzpeKrTvExy8Y+JsIv5xTVu+iBUT+XQuYpxeknn40xiJNiFj3FnNt1OUk pbNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WLtAFBCc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w19si293216edq.308.2021.06.22.08.23.46; Tue, 22 Jun 2021 08:24:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WLtAFBCc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231552AbhFVPWu (ORCPT + 99 others); Tue, 22 Jun 2021 11:22:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231936AbhFVPWt (ORCPT ); Tue, 22 Jun 2021 11:22:49 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4405EC061574 for ; Tue, 22 Jun 2021 08:20:32 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id j2so36601722lfg.9 for ; Tue, 22 Jun 2021 08:20:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bpqGkk/JGVe/MnPyoETv0p8uKc3pSJj4YexxopDDd2U=; b=WLtAFBCczgLWoAx5u/xKxcRWJO0HNR6yVqDk+l8R3m+JsOWedfC6dxPJ0mhagcz+5K pzjeCg9kaBJUrpA2ySWvC5cu6MfVaxmxHmNjq2FNGbWzWw4/7Y2IKQXHnAR0CtM0spvG 6ql5tmTlMHQNAGJ2lOmr7QKkejf+ZwcjpfhlvwZVgToxzbfSrYren053WLBLciXXr7AS bvggn8Kiz0A3YCR9fNo1hIfKyk/0ei3k7nRWo1Y0j944cFgoxzbUwTWlnLMtJre4oqZN znE/RpQ6dhr/I20sFxQDyiV2Txk8sOqA7IFz0r2LCkuZYgmWccid1xu5pOCRtWPLnUaO bWmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bpqGkk/JGVe/MnPyoETv0p8uKc3pSJj4YexxopDDd2U=; b=kUG3h7FKzTDohS8YTgd7Ip81UiGPxL5artGg73lCKx8/SGx3Vcr3YPI1moY83vxYZn 2xWuoBtR6fAa3usHz3z/mQfmHURTJZVqVcu3ZHBLMLLUl/J4sG7tPWLsLnDQ6zEQeHNm B+rlThDY/r5clsuvya7+oRR3LjuOLXphXYE9oBEOotn9LtHiQRXy9XJdr1WTbwso5jqG qrRpcGX34Mpq6f6//8PRpMb6jeksb+NfVKwR+e+GZm8nG9lsV2k85MGq9GHrh+PRt/H8 Iqgh6uMgQKFI2+Lmc44W7+ZGXprTrTzfei49UeSdhSBxSkkhZYToiOGvEHECJf4zvGT+ 2eig== X-Gm-Message-State: AOAM533mFLSFaLnFqlR47bkplg5XPGNNWkDteNAx+6i/vycKlzHW9IJW d1W1j+xKnzRjKQZ7+N4K1oc1I5ErLwmnDzC3BoM= X-Received: by 2002:ac2:4d25:: with SMTP id h5mr3257357lfk.583.1624375230527; Tue, 22 Jun 2021 08:20:30 -0700 (PDT) MIME-Version: 1.0 References: <1624365084-7934-1-git-send-email-shengjiu.wang@nxp.com> In-Reply-To: <1624365084-7934-1-git-send-email-shengjiu.wang@nxp.com> From: Fabio Estevam Date: Tue, 22 Jun 2021 12:20:19 -0300 Message-ID: Subject: Re: [PATCH] ASoC: fsl_spdif: Fix unexpected interrupt after suspend To: Shengjiu Wang Cc: Timur Tabi , Nicolin Chen , Xiubo Li , Mark Brown , Jaroslav Kysela , Takashi Iwai , Linux-ALSA , linuxppc-dev@lists.ozlabs.org, linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 22, 2021 at 9:50 AM Shengjiu Wang wrote: > > When system enter suspend, the machine driver suspend callback > function will be called, then the cpu driver trigger callback > (SNDRV_PCM_TRIGGER_SUSPEND) be called, it would disable the > interrupt. > > But the machine driver suspend and cpu dai driver suspend order > maybe changed, the cpu dai driver's suspend callback is called before > machine driver's suppend callback, then the interrupt is not cleared > successfully in trigger callback. > > So need to clear interrupts in cpu dai driver's suspend callback > to avoid such issue. > > Fixes: 9cb2b3796e08 ("ASoC: fsl_spdif: Add pm runtime function") > Signed-off-by: Shengjiu Wang Reviewed-by: Fabio Estevam