Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp789974pxp; Fri, 11 Mar 2022 15:11:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJy36xZAN4W0EgdKJlrkFTHyz5Dl2Ia+4qtnT5kgkQcq1odj+zoKEAk3XvDJ/dhaynrzP4+K X-Received: by 2002:a05:6a00:789:b0:4f6:ebd9:7 with SMTP id g9-20020a056a00078900b004f6ebd90007mr12395324pfu.32.1647040306320; Fri, 11 Mar 2022 15:11:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647040306; cv=none; d=google.com; s=arc-20160816; b=Mx2u+zVAIgBWqsIEL7ZEQ+rmmZsaCLiFnURxax1+C/PvtzTL3KOwDyCMAt+1qEVYql /8VCsqAQU9oF8IaOjRUr+5N+L1DZaE6qUiOF4QHK5CDdLYmCnCKM1Zp47bOBBcE/BOuS uLffKsGQjq2FslBSO12ERyTuYU4JBCaAOZnQUB0eVeTo20LXdeSFkZRWTQuQIVSYc0WT DCB9bOFPd804GQezxNN9WF1H0MAZBdKjfJ8EDMh8snOdURr2IyBErc/0cq6WDjtwfFRH pdhszPupA3gaxlWLGcRe4zHx3A0twNxdJ+4ln52v7wXOyVvocbd+zVWYtBsoufxxfbvE uQHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Dn57Wc1ELqxRQmyOIw6LPCOI/C3CRM8LKgOH+vJgdb0=; b=OuxfpW/XHH2ynmvWV6vKTZdVi8r7s2p2qmmYpP2M7FuOkRUkyjk2UPQgL9FUVOMPJW KpQL2uo3aSaMKY18xN4HRA7kWiS2qan6jePIDYNi883e5sXirhI76XdS79FYt8n8IfCu 3u+oJcohMk3OQMuPsyAbcf0VlJysOms8TR61dObB+tsSv533+efHzK8Wja3SFdc9hf6J GQaC1Y/SAJ9vhI/KO/qUHeNCgefcdoehM/eHVGX+k4Gowb2Z4vhE6zzzDplYe9ErSg+k OaLePJw3bwDYi+n+g1xaJxAqnZRC74xAICp/kLGhWFsqx/3smEpAjaen2Wk1eugFf1cO DKrQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u11-20020a6540cb000000b0037ff7ad54desi10047436pgp.152.2022.03.11.15.11.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 15:11:46 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 66AA822A276; Fri, 11 Mar 2022 14:10:02 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243169AbiCKJFF (ORCPT + 99 others); Fri, 11 Mar 2022 04:05:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232954AbiCKJFE (ORCPT ); Fri, 11 Mar 2022 04:05:04 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F109A1B84D1 for ; Fri, 11 Mar 2022 01:04:00 -0800 (PST) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nSb9e-0006HK-2F; Fri, 11 Mar 2022 10:01:46 +0100 Received: from ore by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1nSb9c-0003GS-FT; Fri, 11 Mar 2022 10:01:44 +0100 Date: Fri, 11 Mar 2022 10:01:44 +0100 From: Oleksij Rempel To: Alifer Moraes Cc: linux-kernel@vger.kernel.org, pierluigi.p@variscite.com, Fugang Duan , shawnguo@kernel.org, s.hauer@pengutronix.de, gaopan , linux@rempel-privat.de, eran.m@variscite.com, linux-i2c@vger.kernel.org, kernel@pengutronix.de, Vipul Kumar , festevam@gmail.com, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com Subject: Re: [PATCH] i2c: imx: add irqf_no_suspend Message-ID: <20220311090144.GB9910@pengutronix.de> References: <20220307143630.28697-1-alifer.m@variscite.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220307143630.28697-1-alifer.m@variscite.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 09:59:39 up 90 days, 17:45, 82 users, load average: 0.16, 0.17, 0.11 User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 07, 2022 at 11:36:30AM -0300, Alifer Moraes wrote: > From: gaopan > > The i2c irq is masked when pcie starts a i2c transfer process > during noirq suspend stage. As a result, i2c transfer fails. > To solve the problem, IRQF_NO_SUSPEND is added to i2c bus. > > Signed-off-by: Gao Pan > Signed-off-by: Fugang Duan > Signed-off-by: Vipul Kumar Reviewed-by: Oleksij Rempel Thank you! > --- > drivers/i2c/busses/i2c-imx.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c > index 27f969b3dc07..fcc09a1e7f44 100644 > --- a/drivers/i2c/busses/i2c-imx.c > +++ b/drivers/i2c/busses/i2c-imx.c > @@ -1478,7 +1478,8 @@ static int i2c_imx_probe(struct platform_device *pdev) > goto rpm_disable; > > /* Request IRQ */ > - ret = request_threaded_irq(irq, i2c_imx_isr, NULL, IRQF_SHARED, > + ret = request_threaded_irq(irq, i2c_imx_isr, NULL, > + IRQF_SHARED | IRQF_NO_SUSPEND, > pdev->name, i2c_imx); > if (ret) { > dev_err(&pdev->dev, "can't claim irq %d\n", irq); > -- > 2.25.1 > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |