Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp59168rdb; Mon, 15 Jan 2024 12:04:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGtAggqTogKIwUikk4RAFxZSFRHc6ZrH+mUnt4kwZY97QpJzUJQb7ePJonEVxYJA1/BWrUA X-Received: by 2002:a05:6a00:148f:b0:6d9:ce1e:2cda with SMTP id v15-20020a056a00148f00b006d9ce1e2cdamr3165787pfu.17.1705349077707; Mon, 15 Jan 2024 12:04:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705349077; cv=none; d=google.com; s=arc-20160816; b=JqgxwsuqEF4sec4oFd9ry2u3BTGOjq0QDhZGsw7uUV9Z3NnmwdZwu2y48XByMhVolK /m6Lgmzxip+hq2t7A7yvCi7ojW6ioLPR5+N/A/gyV6JjDRUC+v/MQQ6YiwMoLiOae0r6 tFdjPncGAvFICIeWzgSCRikMQT0KUJrKhNbccqJkVVe06LWW4aMOuHfHRahIersQRohz vfKn58tAQLFaRSxb0GJP1QbO4SW5pls/Vhar8lg9mA4pHZEw77gNzcxwDGIhKwk9tWao rkSTFAhJhDCr+9ol8XQ6eadDXiq3i/Y+oZao/4qlUNMYM3KyCqQWx5uYnoJHQ+jFggZI Jxzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=t31/S9I+LWIXz8NwgJMSU07f0K0m4JOuE7ZbtObhJg4=; fh=SwzX0tglQFYcPD71mvgbAwSYlQ5cQ3p+hpmdhIQdgbM=; b=tLNb8DzTW63EqbDliHIAohTd3s37ai0auxBSGDVFHctkZJ8Ig4SsTf+zsAWWBqKq8j CPw8PMaNvWtcgpbecch1SZ8iD2Hias9bpNTJKAeCndx5n1JGQ3zCGylCNMAbwZV2uoJP PKxHBElr91cH0yONOnrnQMXSiipnpoSbRiJUODWDdj5nn7wAnHuVAEGe+nDcz75D0Esy V77HPo1rdl+bcde6WT+MVfdZFRZ9KvhmOkffylqOs3r8g9j0oOiaHcUtbdW9wAWf42Ut 8kchtUj7t6f80MDXfR+YAmLCx5qzm/1ukvb+Nj9xwtAYb0URgsoFQuPkxbqUMTanfDX4 HQBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=Qt19dkz2; spf=pass (google.com: domain of linux-kernel+bounces-26458-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26458-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l125-20020a632583000000b005cd98356cc5si9422924pgl.902.2024.01.15.12.04.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 12:04:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26458-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=Qt19dkz2; spf=pass (google.com: domain of linux-kernel+bounces-26458-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26458-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7C0A428385A for ; Mon, 15 Jan 2024 20:04:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F4211947C; Mon, 15 Jan 2024 20:04:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Qt19dkz2" Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E375A19473; Mon, 15 Jan 2024 20:04:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a2ac304e526so875419666b.0; Mon, 15 Jan 2024 12:04:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705349063; x=1705953863; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=i8RSS6kBkW56tbpViMqYqGAGsyQRy2p0tJi4wBiJqmU=; b=Qt19dkz21V/R2GXWp7oDtra0RNPCYrhAsjD74TMAGKgGMm/fGSdwa2qEBBlAdxzwM7 IrB9zuFEKyXZnMygfOv+7lIbLsKXX4dlSPkfqgJY3PTKCtKbaqIWKvDsXoMyq3V3FIFh UJyfvbqQX/rBIap5NYxHKNBLN+gzB2x3nP2+htUvbxeH0OeTgFafvDdSoHqQSzsm4UvF B8Ky4VDczkm3Ir6l6FN1fCsBTq81jK+gCa+rZ/qcE57sZwHsOip14PFigUrORjS3O1lk yNzihSk7awcmTwVncu5fleBWu2hOw59wRc2cQf38aKA88GkpGYCu5uXNL38kIY9ljScJ 7y/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705349063; x=1705953863; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=i8RSS6kBkW56tbpViMqYqGAGsyQRy2p0tJi4wBiJqmU=; b=sMAkybBqbCA6BmvWPZS5g8L9ToetSGeXPp8KqUsNbo7NIYXKf7G4PAlitXIPuc3fEA h7guLMYGWiIVKJDdEBD1RTDDbTEbMGr8RpOtGCsgE3nu+JdcczW7XKgKHAL5z0uUdzYf kUjRagAGnIwB8BXtwrX4WPLsCXl/Cief52s1ZGHFcRw/FKBEm9cGxd63nAXZcL03Is+M /6DuoWKgH4yfGrwUziw81IO9v/hmZzsd3VVod+OT8GQh2qeG1iuKN7ajFlYpx8wrc8Vl zMCvEy36kS9S+ouupdoPACImWhyfEEvyZs2xg1/Udi5JWxx6ol0LhXj/MeB++IBiAiws ZU3w== X-Gm-Message-State: AOJu0YzMAHJyD1tpMMXlDw4Gmm2ryRWZ2E2z4IJmveCkHM8t0UsWPRkN tC8Iv9WKTbpfxnuyBkLKtSiVzQJ46iKpmcJIy/w= X-Received: by 2002:a17:907:d89:b0:a27:be67:1743 with SMTP id go9-20020a1709070d8900b00a27be671743mr3863297ejc.40.1705349063219; Mon, 15 Jan 2024 12:04:23 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240102-j7200-pcie-s2r-v1-0-84e55da52400@bootlin.com> <20240102-j7200-pcie-s2r-v1-3-84e55da52400@bootlin.com> In-Reply-To: <20240102-j7200-pcie-s2r-v1-3-84e55da52400@bootlin.com> From: Andy Shevchenko Date: Mon, 15 Jan 2024 22:03:46 +0200 Message-ID: Subject: Re: [PATCH 03/14] i2c: omap: wakeup the controller during suspend callback To: Thomas Richard Cc: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Tony Lindgren , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jan 15, 2024 at 6:16=E2=80=AFPM 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. Same comment ->...callback...() .. > } > > + Stray blank line is added. > +static int omap_i2c_suspend(struct device *dev) --=20 With Best Regards, Andy Shevchenko