Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp773830rdb; Fri, 9 Feb 2024 00:04:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IHtCm94vpoIvmWJAJPih7vpHsxxVkirXSzyqQqvqJx9eHfXLfwt1DnHJwsYMKGW+ZmlNi4u X-Received: by 2002:a17:902:6e10:b0:1d9:4a08:71f9 with SMTP id u16-20020a1709026e1000b001d94a0871f9mr743064plk.31.1707465860270; Fri, 09 Feb 2024 00:04:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707465860; cv=pass; d=google.com; s=arc-20160816; b=b3dKaalkeEqJ0+hsBUYqmINfEQMlHJ9hiywsXXKn7c7rQ9PLOdN4CFOQSFS+p2zD78 jcgFFa2xitoUB8H2SxXwXWBd0ZmUjlhz7yfog6j8RRw+Tmo79sNgCYnEvDUonokFpiEe i40uxCk0o3Lt0z2qqUBpv5lC+MvzPnUaKcBW8rlyngEMKK9oonrj+B9+E0D7+PJoS57Q pk2lyeXsxkS8ltbtZC1PDXdHJlFQEfP83PVuFBqEX5/WO+np7q8Nxb6tS8RtXTlcuIpj +B2qQINU+9//a1P1fnZQ+ekPTZAi0wMrsKb2Y/OAY9mCoTmFWtsw3rcOzfKTVFp9SDQj rsNg== 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=G/yGVB4S9XN8g+AahJ4UZsgKIptGOzEicK0dEzXmeqk=; fh=/oytBYLMCFn72t31KSdsSz8wpPOoZ2t69fqisHdUhmY=; b=YON9f+roY+WiIiwUI/bGd66jbUS4bHy4xbVBnTAo9tNf5LLGFTRgE974cdZP3C7iPo Fp7M5Pukf7VRo1hpHfaoppS5z3prkZYoNnrjTpytnA6X6pn0OHESArKBRzoKB848/jzb UVQly0mTEsHZ2wtaUUjDgX2cZ7QAUhfodUjaioDEnTPbb1ZCvBWDe8zxVjUkVJiqJQH/ betRjfjOBFi/V1kgUi943z7R/yiIWZYOsvLxGWtxZUcjj6m0d9csaVzkvnYxdZnCVS5V lWKiD0+E1BaG/tIHgDRb+Nd37EMphMf3GEbb30q2e91yPLBOmBS2ibWXz1NqyhmZvcfH XtfQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="HL/3DDgq"; 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-59082-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59082-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCX6H7QAuyFH0oV8L1B7u8OFACDr9jG1qENlybpnKYgmzydxQhiqEF5cZXY2Ryj6dCv3PmTMQII1i3CLDmtR+SLuLaH8BU8qT0iPxqd51g== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id j1-20020a170902da8100b001d7587f372dsi1297752plx.213.2024.02.09.00.04.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 00:04:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59082-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="HL/3DDgq"; 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-59082-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59082-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 57E0BB21EAA for ; Fri, 9 Feb 2024 07:45:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4059865BBA; Fri, 9 Feb 2024 07:44:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="HL/3DDgq" 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 A578464AB0; Fri, 9 Feb 2024 07:44:51 +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=1707464696; cv=none; b=qqRWTKV++JMM/PqbGIcwP+Oj5BpDTEmsA3QsKF1/H4RdOjuTxqhHm4i4maJzXLr9ST/vLvDlcJN6gs4DAdfZT94pUe56h67WGky6PdOq1u4Dq/Un3oKZje9lbIj5O5X1vKYOV1isSoc4/xH6G9dtqR9zLOUS6ivu9a4j1kssLvo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707464696; c=relaxed/simple; bh=6/pY/D/QQEUjxYA0ri1gHUZDiS7C10pDYQcPTYirTgg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=i3QMaLpbkORPvp6+bPwo8qOjzZNAJwRMj7Ej3AoxO4bwy1M/imL7PHuTN4anqhfOPsiLZKITtCWrQEh7iu98rcEWRjz/Iji8PjT6EV6q+PLHpYTAGvrvj5M8AabCFPifYq1/72Bh/tuPjlRtjBi272YCuVmkSRuSacISAUkYkf0= 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=HL/3DDgq; 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 7E24360005; Fri, 9 Feb 2024 07:44:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707464684; 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=G/yGVB4S9XN8g+AahJ4UZsgKIptGOzEicK0dEzXmeqk=; b=HL/3DDgqSUW2klhjMqzXqFo7d0LD8T34GKYdq81YEKyfDizBqYpkX52LFNRh01hZJS8Fsf lR8gcJtio9GhiFtcV/qaUaiK3gTh7xmD0LzKhHKE/kt58Qj7GXSD5YUzVwkOIGNBT7QfLH MipYb28nCPctAC/gwP31mBynW2l4eSaIJz1xOhAeEzQN2H0wP9h4BbnGs0vvVFgbAnNkjQ 5wEBdtxtaKZ1DDo7jr8AuQ9ogx7G1jLcMQCHkbTi+rRT7cYsoghyxBaUeaOx+R6YL4oUto /8h9N1v0LXUuYd2cUb1TCZeJ0iVAFiXXqCNVau0M5jAJm1QI/geiGugZ6mnnoA== Message-ID: <68d4a1bb-5b40-47fe-a117-647d77009b43@bootlin.com> Date: Fri, 9 Feb 2024 08:44:39 +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: Linus Walleij Cc: Tony Lindgren , 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> <31c42f08-7d5e-4b91-87e9-bfc7e2cfdefe@bootlin.com> <95032042-787e-494a-bad9-81b62653de52@bootlin.com> From: Thomas Richard In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: thomas.richard@bootlin.com On 2/8/24 22:29, Linus Walleij wrote: > On Thu, Feb 8, 2024 at 5:19 PM Thomas Richard > wrote: >> On 1/28/24 01:12, Linus Walleij wrote: > >>> I guess you could define both pca953x_suspend() and >>> pca953x_suspend_noirq() and selectively bail out on one >>> path on some systems? >> >> Yes. >> >> What do you think if I use a property like for example "ti,pm-noirq" to >> select the right path ? >> Is a property relevant for this use case ? > > That's a Linux-specific property and that's useless for other operating > systems and not normally allowed. PM noirq is just some Linux thing. > > *FIRST* we should check if putting the callbacks to noirq is fine with > other systems too, and I don't see why not. Perhaps we need to even > merge it if we don't get any test results. > > If it doesn't work we can think of other options. I think all systems using a i2c controller which uses autosuspend should be impacted. I guess a patch (like I did in this series for i2c-omap [1]) should be applied for all i2c controller which use autosuspend. [1] https://lore.kernel.org/all/hqnxyffdsiqz5t43bexcqrwmynpjubxbzjchjaagxecso75dc7@y7lznovxg3go/ Regards, -- Thomas Richard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com