Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp738608pxp; Fri, 11 Mar 2022 13:50:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxR382V+W+fxOpNyI1czf29Vo/ed1c7CxHEGCK/VV3HiVmjx+VWJ8uqQOQtFEWNhDwxR/ro X-Received: by 2002:a05:6a00:1799:b0:4f7:37cd:d03e with SMTP id s25-20020a056a00179900b004f737cdd03emr11989433pfg.10.1647035408309; Fri, 11 Mar 2022 13:50:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647035408; cv=none; d=google.com; s=arc-20160816; b=ahZ1y3rsThRe+ACqigZnitTff/7h8ze78PuG4ORWBkDqEHHsVR0USl1mBLCYtjRYW4 P0k75dLfw4sh8Xcg+LBtUZzV4veuYyeIdh5MpZD3k82xwHsvfiht6d/iC11FLljjF5u7 OhP4qhamdDnPh1RZooMW6TXxxRQStG9puPA3hQyEoyU5i3ZuHDh8futi60lu66fyiXNi fR/GbUuZkYSetQdNUkEvzweIjHjxjV7E0tvOhuwe/h5CTviCu3Z9owEdPS4du2juOiFD RvA4hx7p12KMSCajjMSrh53Lj8JnwuxSTixEECsThGL6GWXjUysrOlBDMGZ6/8Arka3D CA+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature; bh=3DJWRY8DxKyOlSga9F41zew51/GuSj1jE3Ph1MQJt8Y=; b=BXc20DmWsUdnMm9Vj/qKvtbj03Wl1wwA8yyjN/NFnrU2l2cQr9cAOP8D49oKPlDFdU g/jP7EsYtkgfyGYlyI4sqjr1QKNLQGkIEnVTHSibh/FVhYgvDh9NkQM1lkhaWHS++ign VWac/UShQbPhoV5HAOWU6wdJjEwxPwEFWi7z9S9qanIxPmEg2mY60FWhe8VfKH4J1Pzz LrwEHz6gOLofsivVPsq0Zp49QODXj/poPzpDiiWvhYnJRO7QQCbUwvfiePYmxYZeyXHg snWo/FI6nF3BjvrCHonQNz27on+Ya/ObnIobEJzhXRkDdCkhptuQHgH2A5sW+uJPurjC Ot9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=o7ebj9CS; dkim=pass header.i=@tq-group.com header.s=key1 header.b=YNN0iYzR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i23-20020aa79097000000b004f741dccdd0si8565656pfa.170.2022.03.11.13.50.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 13:50:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=o7ebj9CS; dkim=pass header.i=@tq-group.com header.s=key1 header.b=YNN0iYzR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 447A225E5C1; Fri, 11 Mar 2022 13:11:21 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347928AbiCKK67 (ORCPT + 99 others); Fri, 11 Mar 2022 05:58:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346129AbiCKK65 (ORCPT ); Fri, 11 Mar 2022 05:58:57 -0500 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A692BFBA77; Fri, 11 Mar 2022 02:57:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1646996274; x=1678532274; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3DJWRY8DxKyOlSga9F41zew51/GuSj1jE3Ph1MQJt8Y=; b=o7ebj9CS08+koP150V/bvVKSFP17oPq1gXb293SgV4/TUDZlWXAMefqd QjeOpVFkWUB/xWbd1ARKC7gKbA3nVUvOK1Rd7KWbiPv3PYpOdfJ0s+qP5 4kW6m/UaqrqTJDRDU3Udz8HHMu+P/d1MwPjJjNvmxUkR59vAOsM5dTjQH eJoh6aKxtfMUxgiI6h19G+R3kLaiUj+O25Au5hw+StDIBceMZQHj2zs9G c6IU2hy+nc50RG1cldYeF428ytfW6139h9byu9iSxhbojLXetYEy20s0b +G8rZwRgJ6yHm8cQxneg5/Tpb30tvjnvuiXXzE9Uv5CoWOuzGkSSPy+ri Q==; X-IronPort-AV: E=Sophos;i="5.90,173,1643670000"; d="scan'208";a="22608829" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 11 Mar 2022 11:57:51 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Fri, 11 Mar 2022 11:57:51 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Fri, 11 Mar 2022 11:57:51 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1646996271; x=1678532271; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3DJWRY8DxKyOlSga9F41zew51/GuSj1jE3Ph1MQJt8Y=; b=YNN0iYzRCHmLitYGgTinhhK1M5AwB2Nrb78y5oKbHqwYImogY2X9CX6l 7pLf7XLFEGrValAEsaaQtAs36mIhtQEaPOUsbKyAcvrSWRFNPUAtuK6wV 9nrBm52Blrzu+KpCH0bzh/47vzeVzo/q98E03eV0ZK43JA1dULMZ7S2on HtT3enQv48RBQWF56TRFLL4vsS0adUD7O4JfjajefAU8OgGjzKnt2E4We 8+vEWYDo41K5G0ET2Ch/bt6eGrbv57UI016ZGD4bfW8iwEeWpIZnBQclQ i31DGCDORaTi5Spx6mtnCiyHBQHUcLBE7Lp9DZ7O9RJZ3PLVbVoJunF4b g==; X-IronPort-AV: E=Sophos;i="5.90,173,1643670000"; d="scan'208";a="22608828" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 11 Mar 2022 11:57:51 +0100 Received: from steina-w.localnet (unknown [10.123.49.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id CB1F2280065; Fri, 11 Mar 2022 11:57:50 +0100 (CET) From: Alexander Stein To: Alifer Moraes Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, eran.m@variscite.com, festevam@gmail.com, kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-i2c@vger.kernel.org, linux@rempel-privat.de, pierluigi.p@variscite.com, s.hauer@pengutronix.de, shawnguo@kernel.org, gaopan , Fugang Duan , Vipul Kumar Subject: Re: (EXT) [PATCH] i2c: imx: add irqf_no_suspend Date: Fri, 11 Mar 2022 11:57:48 +0100 Message-ID: <3676803.kQq0lBPeGt@steina-w> Organization: TQ-Systems GmbH In-Reply-To: <20220307143630.28697-1-alifer.m@variscite.com> References: <20220307143630.28697-1-alifer.m@variscite.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 Hallo, Am Montag, 7. M=E4rz 2022, 15:36:30 CET schrieb Alifer Moraes: > From: gaopan >=20 > 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. >=20 > Signed-off-by: Gao Pan > Signed-off-by: Fugang Duan > Signed-off-by: Vipul Kumar > --- > drivers/i2c/busses/i2c-imx.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > 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 *pd= ev) > goto rpm_disable; >=20 > /* Request IRQ */ > - ret =3D request_threaded_irq(irq, i2c_imx_isr, NULL, IRQF_SHARED, > + ret =3D 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); I stumbled across Documentation/power/suspend-and-interrupts.rst which stat= es: > For this reason, using IRQF_NO_SUSPEND and IRQF_SHARED at the > same time should be avoided. Given this IMHO at least a comment should be inserted why this is fine. I d= ont=20 have a full picture about the situation, but to me it seems there is a=20 reference missing, or why/how does some PCIe start some I2C transfer when t= he controller is suspended already? Do I miss something? Best regards, Alexander