Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1524478pxj; Fri, 18 Jun 2021 08:59:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybjo5QdXrmcXhLJPrNWDMlBkjuirRxXPEswKj470anrR6EmtzKtjC5nRlu32o47tQM6Kfv X-Received: by 2002:a17:906:1790:: with SMTP id t16mr11790933eje.203.1624031948027; Fri, 18 Jun 2021 08:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624031948; cv=none; d=google.com; s=arc-20160816; b=NITMsxYcDKhitzvE/XHO3HG7uXBiyunQGb31mnCIsP1KcI1ZVgY2hYCbv8z80HDRPg Yxdq9WqXDcD0XumfQXEyD/REtEkWlEP8STQyLfeO6S1btU8Wtdgv8Wb6cggw4aKlRJn6 dJJMRVJEPYvNZkt9xmMNoud1r3FNXrdZIzjuCgNvVoMAHcRIyM0K3Yv54lIgXDivgtmi pw7JyRX6VwRs/iSIl9eV9HpBZ/S7lrcnSwPd8DjOQehxiRq3jHq+NWEeRu3wda3FvbS0 jbsJ6kG+RO8dTgBbAkZMmS6R66bdAfXYYnKPTN6rzwbIO3It3dXn7ImMwPHg3g7/nz/2 lZ+g== 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=hnZIrqamucMgtoQRhalXW35f06vviRSLKNiJcGvVIRY=; b=WaImicKkmkn1Ede9fSBKnYJ4ewVxV55f0ntfduTW98eT80y7njC7DQ97WRm8rzWRde UUuHeEVpdwYdoUyEErFzvoy431u519a9YafTzjBQxyoFYK1XJX9jfmRO9bv1LFUvYEyS giWtA6m+PHHhSrj8KgFpLnU0y+9d76scdGftBl76fkfa9oU+AtnooGJnAFNLR+VHgyQK 3IYFoXDScBWLgKJAPF5neF4vRT6O4pcemjSgz4fJQqcYa9XSjmotuL+R2xSF2S2l4j7v PrTQyU0dxjwo98FIJ071zPs4jvkQsfE6/Vw3WtbDXZE1OKEsYlHOMa+fK1QaMzUNRK8N 43Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PR0QsGfN; 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 l19si5453791edb.416.2021.06.18.08.58.44; Fri, 18 Jun 2021 08:59:08 -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=PR0QsGfN; 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 S233977AbhFRLXB (ORCPT + 99 others); Fri, 18 Jun 2021 07:23:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231240AbhFRLXA (ORCPT ); Fri, 18 Jun 2021 07:23:00 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FE48C061574 for ; Fri, 18 Jun 2021 04:20:51 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id j2so16104398lfg.9 for ; Fri, 18 Jun 2021 04:20:50 -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=hnZIrqamucMgtoQRhalXW35f06vviRSLKNiJcGvVIRY=; b=PR0QsGfN3ZzRnmtP2GvpRBUfh1fS2bB3MVYoqYFIfQ5y3OtmE1H4Bi5MkHfwqNstN+ sIdovZvPvvNyNOOE84n6c+/whP9ME8CgCVKNDFDjbmCLV/SJ/Osrr5Dk9vUiGGGnRgDT Ulj6kyWju4RyjfaUCvhazK66qs0HhwQiFm/0qOB73JXbK8ooV/OSn1wJ3huEN347SYDR g7efyEFPYMBD3p1dbqv+kUsjK5w+L+Ckz33klkhIfqGxyD2HDtU2rRw3BvWSw+bnjNdW UQMvQqLSCSV/OqCc61vs4BlSEazhXwNbCMfH6PNCYuVL6dI6ovqzpBzkfjzQve886+lL VksA== 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=hnZIrqamucMgtoQRhalXW35f06vviRSLKNiJcGvVIRY=; b=Ik5cGo2fePRA+SDi6bd3l4GVvwKIIgl4jWqrboUVBGbh3EmVOpkj8f43nYe2ZdM0aX d6ne8w/6Y/DN+HfIiUL9ulM8yy9rDzR2f4chEsOjbVCig81xJnk1jTMSwzgjYxqpi9AD hYguH8+44PDpndFfvshHYXzirFsza703xqBPLfZi3Ws1Kivk0NSt6OlSFNz8Siy8XZau xcYL1DnFXGZ+kAE99twpefDEBVgBlPi0vQZVOFdTqf9bRezD7wgrwbZkXB3B+hPJOuU6 3e5TO2HGIaBstXkf6hhA5xxHDkmbgyT9wYvHkonFEzlpdJBVFLsdI7Cfex3P2zezDeyt 94hw== X-Gm-Message-State: AOAM531nkyC8tre38yJ8f6kkNkBx5c2Yseg+ppC6xIEiRgl15svz3tgk sx/JMk7DRr9BbUuStl1eVQ+dQT0GfZSxfcKjICU= X-Received: by 2002:a05:6512:15a4:: with SMTP id bp36mr2830068lfb.539.1624015249338; Fri, 18 Jun 2021 04:20:49 -0700 (PDT) MIME-Version: 1.0 References: <1624009876-3076-1-git-send-email-shengjiu.wang@nxp.com> In-Reply-To: <1624009876-3076-1-git-send-email-shengjiu.wang@nxp.com> From: Fabio Estevam Date: Fri, 18 Jun 2021 08:20:38 -0300 Message-ID: Subject: Re: [PATCH] ASoC: fsl_xcvr: disable all interrupts when suspend happens 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 Hi Shengjiu, On Fri, Jun 18, 2021 at 7:10 AM Shengjiu Wang wrote: > > There is an unhandled interrupt after suspend, which cause endless > interrupt when system resume, so system may hang. > > Disable all interrupts in runtime suspend callback to avoid above > issue. Fixe tag? > + ret = regmap_update_bits(xcvr->regmap, FSL_XCVR_EXT_IER0, > + FSL_XCVR_IRQ_EARC_ALL, 0); > + if (ret < 0) > + dev_err(dev, "Failed to clear IER0: %d\n", ret); > + The operations in _suspend() are usually balanced with the ones in _resume(). Shouldn't you enable the interrupts in resume() then? I see that the interrupts are currently enabled inside fsl_xcvr_prepare().