Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp1178316rdf; Wed, 22 Nov 2023 07:34:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IGyhw8NPB5/Tmy1qmEDbQ3ppL80bT1ewljMH7JWEJOxfC4JXPKX52VF9cDs79W6reSkB29n X-Received: by 2002:a05:6a20:9189:b0:18a:e176:87e9 with SMTP id v9-20020a056a20918900b0018ae17687e9mr3113231pzd.15.1700667243798; Wed, 22 Nov 2023 07:34:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700667243; cv=none; d=google.com; s=arc-20160816; b=drrHdLL4GWMcWKqvu1bxGxSd1xfuyq73jUPZgbRG+ib76eMyj6bMiBgNVqQWnKK/p4 w26Anht35ILFPkku7A/P3YoHeas7OQUNGPLbfN1QUpaRSrcQOU91Xt7AZS6i5D4Adf8l M2SMiSCyKMfR3RW6GC5Jb9lIytUoZp37NJbcKTb9OtRBly5SQ0uHpfphe0cyHJGrEPiF qqj37ARkA/zHD4OGnHdcsYtgoJ9eZmmoqrbNBZLV3zMkHijH9OmBvb1p6L2hoZZQ9JwF M1ukKPTbtlvx8VrdArRQRTXI85RtBagXxhRtkvtpNl+9dm4jfNNxfxvbbZOVLpM48Mpx ZWHg== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=wJTu/awNm5gDHMUjd5xM0qvTQq5Y9FVj5OA+WDky0UY=; fh=NGBeG3ktsp3KqDI5duYq8zyCQwRrf2V2MVOGsxtZEUM=; b=VXBUTmI1Kq+KF3xnqJMvSEYrpOJ8uOGU9iiE5FM9Oo/4TZSJNxeSuq3oOqd4lJ6p0K zbsjkxjz3RF1ljfEoa44o7scX/Prc3oCP7X6MzPxxSp46PqOFGUu3eXZsSnIrH2Elw+r Fi9iy7ish5c8y4ihSBcFkjEcqICjhqDEcXVmPokEmNJcXYdSunb2pgnDD2PQjUpSbHhv VtqV+XlvCLt3CEVSeWkCf4D8LIQ3EXFLKQGQkybkZaXbF4O3ZskdqMCqtHwi5EeBUlqC khGWu92dkXt6DXH5gV2QKLUeiXvDs7gvSdRDspI9Zl5vIOwz2z+iU9HmPg7iU+942la4 L/8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KKVL98Sn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id bz42-20020a056a02062a00b005bda1051dacsi14338047pgb.471.2023.11.22.07.33.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 07:34:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KKVL98Sn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 997A78253FEF; Wed, 22 Nov 2023 07:33:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344365AbjKVPch (ORCPT + 99 others); Wed, 22 Nov 2023 10:32:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344260AbjKVPcd (ORCPT ); Wed, 22 Nov 2023 10:32:33 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BF6DD53; Wed, 22 Nov 2023 07:32:29 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC25AC433CC; Wed, 22 Nov 2023 15:32:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700667149; bh=Vke/WsVUVdJfzO3oG5YqlpUBQ/G44MKFPXW5jDOVGBM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KKVL98SnNQuRB63QjXW0y6l8J0ukXcSIFKUkBaR2A8CAzGULLbtPqTdRPKBm7ddwa 3qIWH1kQLAeSkb8Ie/MIbi3hQAsXvyiXYgkMAqdqvNDMvBPYRRcxDfFBqp4OBI2xnx IEMr3hdoHOLvCNfp1kn+0V65aocB41S47vHhVuTVSKTuNs/z8VfIaWHYBHcIBnitmQ F77cMv7k0w8Nu9ULH2vKuKdJ0x6hTDL34VOmfZ3KOFBlbGwII0mF/C2UYeFiipd0cO cHvZtAEPC+xQk+54c09y5gQp6Mhou2OGopQy9TYfqN6HHD6cq32aZGxKjItR2buRd6 PryH6tEpMv5PA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Samuel Holland , Peter Korsgaard , Andi Shyti , Wolfram Sang , Sasha Levin , andrew@lunn.ch, linux-i2c@vger.kernel.org Subject: [PATCH AUTOSEL 6.6 05/17] i2c: ocores: Move system PM hooks to the NOIRQ phase Date: Wed, 22 Nov 2023 10:31:34 -0500 Message-ID: <20231122153212.852040-5-sashal@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231122153212.852040-1-sashal@kernel.org> References: <20231122153212.852040-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.6.2 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 22 Nov 2023 07:33:35 -0800 (PST) From: Samuel Holland [ Upstream commit 382561d16854a747e6df71034da08d20d6013dfe ] When an I2C device contains a wake IRQ subordinate to a regmap-irq chip, the regmap-irq code must be able to perform I2C transactions during suspend_device_irqs() and resume_device_irqs(). Therefore, the bus must be suspended/resumed during the NOIRQ phase. Signed-off-by: Samuel Holland Acked-by: Peter Korsgaard Reviewed-by: Andi Shyti Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- drivers/i2c/busses/i2c-ocores.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c index 041a76f71a49c..e106af83cef4d 100644 --- a/drivers/i2c/busses/i2c-ocores.c +++ b/drivers/i2c/busses/i2c-ocores.c @@ -771,8 +771,8 @@ static int ocores_i2c_resume(struct device *dev) return ocores_init(dev, i2c); } -static DEFINE_SIMPLE_DEV_PM_OPS(ocores_i2c_pm, - ocores_i2c_suspend, ocores_i2c_resume); +static DEFINE_NOIRQ_DEV_PM_OPS(ocores_i2c_pm, + ocores_i2c_suspend, ocores_i2c_resume); static struct platform_driver ocores_i2c_driver = { .probe = ocores_i2c_probe, -- 2.42.0