Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp135468lqs; Thu, 13 Jun 2024 06:14:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdjNGQoV3BA186IGJN6sMpW2Ko0NxwN6XjYOGhmNkQwY3EaFUBAelPsGnQ9qpqBGgwno6PqsfKtOAme0dXndFYq7LYm8duNBKqAqJCkQ== X-Google-Smtp-Source: AGHT+IFO0RCRFnmyMpKYiTcw5Tb/iXns+ZSAXEtXnodtrSUAPSjZoL5i1jgrrkxKNiRi3v526ZSs X-Received: by 2002:a17:902:dacf:b0:1f8:3658:c893 with SMTP id d9443c01a7336-1f83b661840mr55748825ad.32.1718284446751; Thu, 13 Jun 2024 06:14:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718284446; cv=pass; d=google.com; s=arc-20160816; b=JcUnd+D+uvEb5BGIXQUhrfObxfZWtAAMyO/FSJPl2sg2I0owup7ePyXRNRP2aohsv7 4bAV5qP6Z8F0UtTDlRG/ErnXhKy3BoVg1ffnER9RDY3/7S6ddDX/zGcEVIb1NbiLmgn0 U1RU8sXh43i/Lt8VA5LxttS1XLq1YBVA7O4IdMB55YmbjlxsqmqUMj8UAmU8DV2SfA2V GwQiZtwWiTkLlPfuGbO26ryj7j0F7ZmiLeuJl73xzYZRPjjkrix2yBBDPuY3M5+kIroo 7uZka12Mj0XpO/YE4+KJ20V/mWyrNNMbFa6pSUCl/h4Ig00d2fH+lcxojf5xD+aWpYeX PCRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=P/fueTuzPX+npqEtb6YMMbPx/Wvb3LcWrFA3x/uKoSg=; fh=sqFAVdECSYB736Et2lmfYm2VY5P+RGzVMRK9jrHpPuc=; b=VSedp8+Tlv8yI2QEozkjcTbdfRghwneZVonWpiBy8tpmsu19pQLtFDq+23qWn9ACwl L8JAbJYv0zcytAmCQcgyzzkCOE7xvJ+M4wQJ9lLhiZCnclrS0tIwZu2RIkKirYevFCzs Cj7oV2B4AmJnARjGBho5soTARb2NdteU9uCA+pI9kE2kOijqrZRAOFSiO9k+4VlmaFCE CqxKDUn9mlRlqqJ4hDOhDVQx1zJDpTdyUP/Bdv8FjpQ1/sMjvPv9hTaL1UTR1FDsYNoJ T59NwA5RP6jZojrCl+lEfFNQsU+BcJ7H7GpoovBZX31HwtVd03Gjl1Dngj0cr9FvGop3 AH/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="n4sR/H+V"; 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-213261-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213261-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f855ee1c92si13198675ad.372.2024.06.13.06.14.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 06:14:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213261-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=pass header.i=@bootlin.com header.s=gm1 header.b="n4sR/H+V"; 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-213261-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213261-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0B638287419 for ; Thu, 13 Jun 2024 13:14:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 23D39144D0F; Thu, 13 Jun 2024 13:13:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="n4sR/H+V" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 DF7B11448DD; Thu, 13 Jun 2024 13:13:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718284421; cv=none; b=rmYF91k7vNzolAISHP2l8VQ8tetUbumAg33YfdTrlKCHpwsqSCaZSs+6skCZoYYeLgxdKG5PKFLTKVU8ZDzKaRJvWZt6TUIuBz1LXzIDcujv53WXls44XMpjr4As4VqIeWq5YVR7JWREqx2lu4LxDUigIO1Ati1v7HfFkrqGojs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718284421; c=relaxed/simple; bh=c88ZCilto4D3Y6vZSmXpoHvp3MSBbJyyFDct46CSzCQ=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=bfA044D+OTjYOAF8d+1uxBCsC5jrHBpnJ0e+zBlOw/0fHNo2K/UM0e2tLDBVKGqPzD+aFIrA5mxm737MMGqPdVgmqGsK1WMhizJLETp/pB/lGmemjOq9N/m3NUl8yK3VO9L/SQL8dugP54aAt42xik+Q2Vsb+GKJWJ8OoWSg1Vg= 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=n4sR/H+V; arc=none smtp.client-ip=217.70.183.200 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 A11D620011; Thu, 13 Jun 2024 13:13:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1718284416; 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; bh=P/fueTuzPX+npqEtb6YMMbPx/Wvb3LcWrFA3x/uKoSg=; b=n4sR/H+Vq9KcKn1EwBXmmQMv/Qyke6+YWCHndXKG5fS6pIh2hKSKHB8X8b7qQNwqXTbeuc CSxDV6nGe9OjBRhNhcy8Aws+PZEooR07Xk3WgdJMczaOLmNefCeOQ1BVQeFozKfqemn4Qz zyZ01tAVhCoHB2b1TDtAWFkB/S7R5EoZd9U45HvLQcfZL7pg7c9jCy/wGLxhR6GA6WnGLu eINPFvHGWzFLFjJsudtNqKBXEIyP/0kFr5aQUAUMPNuJVWEoN47WswLHKknMtGVSjavOhQ LGmEuImvPn1313fLKYiUzH0JeJhd0up737zBqAjlPiyfKgqSbPMo0V0vM2VC1Q== From: Thomas Richard Subject: [PATCH 0/2] Wakeup the i2c-omap controller during suspend stage Date: Thu, 13 Jun 2024 15:13:26 +0200 Message-Id: <20240613-i2c-omap-wakeup-controller-during-suspend-v1-0-aab001eb1ad1@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="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAHbwamYC/x2OwQrCMBBEf6Xk7EIarai/Ij2kybZdrJuwa1Uo/ XcTLwNvBh6zGUUhVHNrNiP4JqXEBdpDY8LseUKgWNg460723B6BXID09Bk+/oFrhpD4JWlZUCC uQjyBrpqRI1yunY9jCWs7U3yDV4RBPIe5GtUJ1KpOWXCk7//Gvd/3HyNHP0aWAAAA To: Vignesh R , Aaro Koskinen , Janusz Krzysztofik , Tony Lindgren , Andi Shyti Cc: linux-omap@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, gregory.clement@bootlin.com, theo.lebrun@bootlin.com, thomas.petazzoni@bootlin.com, u-kumar1@ti.com, Thomas Richard , Wolfram Sang X-Mailer: b4 0.12.0 X-GND-Sasl: thomas.richard@bootlin.com The patches of this series were originally in the series "Add suspend to ram support for PCIe on J7200" [1]. There is no changes compared to the patches in the series [1]. The goal is to wakeup the controller during the suspend stage to be able to use it during suspend_noirq stage. As autosuspend is enabled, the controller can be suspended at suspend_noirq stage. But runtime pm is disabled in suspend_late stage. So it's not possible to wakeup the controller during suspend_noirq. The trick is to force the wakeup of the controller during suspend stage. [1] https://lore.kernel.org/all/20240102-j7200-pcie-s2r-v6-0-4656ef6e6d66@bootlin.com/ Signed-off-by: Thomas Richard --- Thomas Richard (2): i2c: omap: switch to NOIRQ_SYSTEM_SLEEP_PM_OPS() and RUNTIME_PM_OPS() i2c: omap: wakeup the controller during suspend() callback drivers/i2c/busses/i2c-omap.c | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) --- base-commit: 0719fea199617c798ad3a9158916066ac17219b2 change-id: 20240613-i2c-omap-wakeup-controller-during-suspend-895adf95a005 Best regards, -- Thomas Richard