Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1419158lql; Tue, 12 Mar 2024 17:37:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVch780DauVryYI7gmm7Nc3P0jRjghDa2BC+4l1ZS8Jqj7VnDcYPCgilf4MtDbAwuN5p+dskP/aQeURRFHUQlg7bEfK5asPlxWOmY5BFA== X-Google-Smtp-Source: AGHT+IGknRgoxbSsTmWlk0NNcra7wXI5eGqysC8Uvsf7PFU5r7EByewC3x+zOiq0GyAUE+65DHxW X-Received: by 2002:a05:6358:24a6:b0:17e:8b5d:c7af with SMTP id m38-20020a05635824a600b0017e8b5dc7afmr3039839rwc.30.1710290279191; Tue, 12 Mar 2024 17:37:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710290279; cv=pass; d=google.com; s=arc-20160816; b=DG6b7g4esw63/AcXz4dZrYjBBBeukX4sbKCp/x4fzhQ0fepOGKSabbohUlBm/dCZ5y kt3Aa7wAV6ms+eqS6xAIfei1LWa4TKX8X0Vad5eL+UkqCEjk5A7t4vRwDe08bxpmmIgi MHatPIvEe0z9NBMZg0rWcFMdFbihBsg/1MHW5QBowqUIccHb3wO9YLVvJWIGbgVnWW6E Dci1yv+YZpMEzAC7RzsykoEmhheh6TOJUKZLUjrF/Qqk9sfqUr0l5Nr3U205kfUVKn/A DQwo2sGC7wwz+amqqFsMuREqw/CW/cXWUuz5h0J/HUcHcHSS/xS8W1jTH/Qa+oka/bCB kLsA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uojkL7EFpUGXNtaeiGLeCzZSo1e0/+fZPcGKKvJ/IpQ=; fh=BuWqfSGK1inoUeXp1rXqXoqi7jxOCQWMviqntGbj0Fw=; b=RJoMojbGhqLM1UP4k9/OQPbeaZMjq4kVHD/Wj7U1gJYB89L1SgvZjgJCcwXoTnjCow gtoZyEZCGra9WfFW3wKnUCBX7iQgQ892qHpgWn9PWlnPo1q0W4wObtCdkOQQMidk/Fgq bpTX0aLPmwbnBgSiGwwDLTBeISdw1UrUsDpFgc9fXLwNx4BU2uzBFhNvEbbW2iFJIN2J OZO5MUcogjCdFqynTw1AQxU7zbAdJh/dNIQFDp0u8q2bFNVrVr4rhQU3YFUPWa4zWc2P l7d1BcYTv+JWFA++5UU8OZtlHKFegN5v+uhekWbgmntL0g4u2JFtseURzgKnBmX1E1jd WJ4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PSsvmZeI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-100967-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100967-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id e5-20020a635445000000b005dc90546100si7636252pgm.295.2024.03.12.17.37.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 17:37:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100967-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PSsvmZeI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-100967-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100967-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 D3607B22487 for ; Wed, 13 Mar 2024 00:37:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B02FA8C1E; Wed, 13 Mar 2024 00:37:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PSsvmZeI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C3E0EA930; Wed, 13 Mar 2024 00:37:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710290259; cv=none; b=A0adGFvon3pX2rLtNEHi+wH7IwykUW7P4PNpAePxRPZZ2tMv9BfLGbHMBnt0QBDyK1nJ1X+fieY3G5bae1j0oEjMFgRjuscXezJs01EaDNI04r98xTLL69rxewJcIq4GUK7vw0B3CsGnrlznMsR2SGpGLgLPkAaiW/U0tF+jVN4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710290259; c=relaxed/simple; bh=1SnPGZWN0QXG/cj+HeG9fCWJ3nuxPvrSGvhQr+67xqg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XyF2Za/rT92NcMcmmveXBsXPic9I0NhEV8PT2cLT8F5xevf/r9JgZMTU+h1iGZyltsgXiAR9kW6sg4LCVqgSphxL4zY876pldzBLRPXuQ2NazxQfKs0L6EB1U/s66svU0B8SzrgtaQCifoyewYxo3BmnC0obzeJIc5RivkllxZY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PSsvmZeI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 897F2C43390; Wed, 13 Mar 2024 00:37:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710290259; bh=1SnPGZWN0QXG/cj+HeG9fCWJ3nuxPvrSGvhQr+67xqg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PSsvmZeILe0xThjiru4Kga15JP/fW+1l8qlwVKVBHT8jT9Fp1TMJPjJ32D+rWpNIj TEfNf0niIVdNTsssrJJZMJqZf8sUTLRsX6u51ZZMJoDMTNsUST9sBGL46uF38dTZut yYIxBgR7iEq4/24utxzmBLoRYM5KeMkJVLnBGaqtVIvPhK2guawDaFjTtWIALzeaAf rXIu6KCkicc7CKZAgNLjMowqaFsPLAsMBOqOrxAipyIt1fBiVY56oixNsxO8dPEsgx 8XdcXgzV2BnhKZCZhGEqybj98lgbIMYZ4KwDamk7r+eLzVrgfPk+qv16gyRo44kGSf vteE9PgDz5PnA== Date: Wed, 13 Mar 2024 01:37:35 +0100 From: Andi Shyti To: Thomas Richard Cc: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Tony Lindgren , Haojian Zhuang , Vignesh R , Aaro Koskinen , Janusz Krzysztofik , Peter Rosin , Vinod Koul , Kishon Vijay Abraham I , Philipp Zabel , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?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 Subject: Re: [PATCH v4 03/18] i2c: omap: wakeup the controller during suspend() callback Message-ID: References: <20240102-j7200-pcie-s2r-v4-0-6f1f53390c85@bootlin.com> <20240102-j7200-pcie-s2r-v4-3-6f1f53390c85@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240102-j7200-pcie-s2r-v4-3-6f1f53390c85@bootlin.com> Hi Thomas, On Mon, Mar 04, 2024 at 04:35:46PM +0100, Thomas Richard wrote: > A device may need the controller up during suspend_noirq() or > resume_noirq(). > But if the controller is autosuspended, there is no way to wakeup it during > suspend_noirq() or resume_noirq() because runtime pm is disabled at this > time. > > The suspend() callback wakes up the controller, so it is available until > its suspend_noirq() callback (pm_runtime_force_suspend()). > During the resume, it's restored by resume_noirq() callback > (pm_runtime_force_resume()). Then resume() callback enables autosuspend. > > So the controller is up during a little time slot in suspend and resume > sequences even if it's not used. > > Signed-off-by: Thomas Richard Reviewed-by: Andi Shyti Thanks, Andi