Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1129139rdb; Fri, 19 Jan 2024 09:01:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEqyHkCks8mzhwsWeVRVeFegn7B3vF7RcuaP7IlBWVuvWnoZzqvhaPYFIRI1+8DGmWuCHeo X-Received: by 2002:a05:6902:2201:b0:dc2:22e1:2466 with SMTP id dm1-20020a056902220100b00dc222e12466mr236544ybb.63.1705683716445; Fri, 19 Jan 2024 09:01:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705683716; cv=pass; d=google.com; s=arc-20160816; b=oZhS6JV2d+AfgJGvUtqzH0EVxUFLRzZRueHkBpvjsJw+xhhXrYbyrzdb1sdbndUo9D uSPK7J0zTNf5vAuYed64wH4oPkOuK5EuIFBGjF9sTNp0eZHioulOzt8Nk07106/8pwVe HJiSYkTUNlgBEn0kkEvBhtR4cFE3Aef8yFlpoluUEqb4Xsw9KW/csblORs5Ub5aviNfM KVesWuhsrmJRZ6LHaRZYUANcEuVmZf+tMQloEbfOX/rRxOQ8ZW6+pg1iaV9EZ4JL9/bW GRfRuUKvLOywTmzz2uzTBqgs8IWQbhjXw96g/zY9w+glJ4jIU8mSCwO96cupYv79SSWW 1YwA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=eVdcjZzigbSsBwmQGgrwuVfPvylwPhfnV7FRBwbX2os=; fh=MBK400cuPE6njKjPvYymOb9c0Yiq4/KrX471BtGnp7U=; b=ZxmrHp9z6LMnZ95+eWjlVyTr7+eX5dvtNcJpiArUfsOQi8ygCiuFc6LzRLwtQvJpBb 7D/hioqkRHuu7uIeCAf/pvSwU/+TLt4dTwP6HhE/Hj0V+LkGVrY+QWYArTb/6u5iR1AE U+1tQToJxcJoXwXt+b5IWll+kq363n8yiAUgyHTM11nPDaUSMRki7RZ71Pmcono/F6Xn 7/WaHK5Lhr21NHc4Gz7eVtGpBcHgMSwsjdYqFuz236ylWmCrCfbZ6MVOeb6Cyl3avPEC SsghtjGfdkPUHZNBH2fksV0H+deOFZdTxepgVBG173/B5TrCYFpI/YQ5fQgjv+iFcGYy 1PhQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=n5Ys6O1a; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-31389-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31389-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 129-20020a251487000000b00dc2342d4804si3779648ybu.644.2024.01.19.09.01.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 09:01:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31389-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=n5Ys6O1a; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-31389-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31389-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 243EC1C20FD4 for ; Fri, 19 Jan 2024 17:01:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2683055C27; Fri, 19 Jan 2024 17:01:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="n5Ys6O1a" Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 929DF4C624; Fri, 19 Jan 2024 17:01:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705683703; cv=none; b=tz6DN6+iNuDgHY4b2jozrftYRgynSGXeAJqBEmAPHwEVwlqp41Jghv9rz7Y3qvfUJ3A2UKgXvYG8UjG31msSQqJp3e6YFWsIKplniff0lyw2VSYh2OUZ7t7UKnsrlsrdF/X30AvelzB5B8qso9VDlNAqOM0WC7AodSfKpYD82io= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705683703; c=relaxed/simple; bh=UsJxvg/7MH4O5ZNxGWY9Nss1M9PXmgccOe40/l1xpxs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QDTbXpyKeDu3kytuqau2hdwT/TuMSVJjptV60GxwAgu8kDD1MzW3VxjLkQPeS8t2qnQO58ov5txLI6GSYWfuoAC/mOKVkZacY8HmjLKUKoqeNhPpkoIkpo6U6wK4LjzXoRH7PuX+zvipUMEUiN5GDx/X8cELeRr28NEoPlou8jU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=n5Ys6O1a; arc=none smtp.client-ip=217.70.183.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 6628760008; Fri, 19 Jan 2024 17:01:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1705683698; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eVdcjZzigbSsBwmQGgrwuVfPvylwPhfnV7FRBwbX2os=; b=n5Ys6O1a3pgFCD8YPEUweyidUInNABWxqlfLFXid906sTYe60ORvrlbK71CBI/isWeSzOn bAJZB48SCZkaCy9IZUrW0gzUBsB+RqFunoD5ps9A3m1I2jeEiVpTmZLudBp9Pcb4asmMWY NHMtmXg7wIHSoS6+BWV8qu4wJNhKLPJ8B87VkQd5BjefZ2ZuMnXsAP+0y8c+fmbzp+yEG5 bw/R/xpdxdvtVzf7gdyey4cBWrQclUNI4U1nSLKOh2tjtre/PiK8Vsnw3l10nkVUp5hlDf GMNYIsamhO2Xv3ZeBmLJvyKpy9JyUf2jfZ7mDmgdt0eehFhUNHQs9hTxKH5rWg== Message-ID: <31c42f08-7d5e-4b91-87e9-bfc7e2cfdefe@bootlin.com> Date: Fri, 19 Jan 2024 18:01:33 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 01/14] gpio: pca953x: move suspend/resume to suspend_noirq/resume_noirq Content-Language: en-US To: Tony Lindgren Cc: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Haojian Zhuang , Vignesh R , Aaro Koskinen , Janusz Krzysztofik , Andi Shyti , Peter Rosin , Vinod Koul , Kishon Vijay Abraham I , Philipp Zabel , Tom Joseph , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-i2c@vger.kernel.org, linux-phy@lists.infradead.org, linux-pci@vger.kernel.org, gregory.clement@bootlin.com, theo.lebrun@bootlin.com, thomas.petazzoni@bootlin.com, u-kumar1@ti.com References: <20240102-j7200-pcie-s2r-v1-0-84e55da52400@bootlin.com> <20240102-j7200-pcie-s2r-v1-1-84e55da52400@bootlin.com> <20240116074333.GO5185@atomide.com> From: Thomas Richard In-Reply-To: <20240116074333.GO5185@atomide.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-GND-Sasl: thomas.richard@bootlin.com Hello Tony, On 1/16/24 08:43, Tony Lindgren wrote: > * Thomas Richard [240115 16:16]: >> Some IOs can be needed during suspend_noirq/resume_noirq. >> So move suspend/resume callbacks to noirq. > > So have you checked that the pca953x_save_context() and restore works > this way? There's i2c traffic and regulators may sleep.. I wonder if > you instead just need to leave gpio-pca953x enabled in some cases > instead? > Yes I tested it, and it works (with my setup). But this patch may have an impact for other people. How could I leave it enabled in some cases ? Regards, -- Thomas Richard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com