From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ua1-f100.google.com (mail-ua1-f100.google.com [209.85.222.100]) (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 C72FA47013B for ; Tue, 28 Jul 2026 19:03:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785265409; cv=none; b=b+h/pogXYj/MgbpjX6YZqCf4Go1jfrQWFb8/4F0LiFpamxhdRP24Hq5rUMz9bfUHnkkD5xIbdTMnSy0ElGsXElhQDcg6F0i+uE+LEcuhB50I4N++QbzkZiPnJ3KNxLX/apbHF/9A0Yoh5zjbBSJfFBhwCJ8/LiS+VBlg6IuEbe8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785265409; c=relaxed/simple; bh=1xzrBy33KLcUh2Fo6WOjQjNp66pfa5jlZtfDWhLzcYo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=smYjvIbh2AhKOz4MAFSuAQm9+Qb4cXBQVKb5MOx1Of0QljVgAolN/aSbVrfsvvn9fdAqiAC6mjgRrPsev9xGc4hhbN2sJPZkO0vstZkldyxtU7/j59x9ln5GIvPbFF5tOKFBgHw0m9lD6O5mEbC7YEAfdfUkiLMEAXv5rc8SHTI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=BMO6IkrS; arc=none smtp.client-ip=209.85.222.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="BMO6IkrS" Received: by mail-ua1-f100.google.com with SMTP id a1e0cc1a2514c-9690c99c917so50534241.2 for ; Tue, 28 Jul 2026 12:03:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785265406; x=1785870206; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=jD5hBY+xcEEWI+IDnVzAov300+ilRU3clyqXwW86j6Q=; b=sCx1OX6+nIleOSrE12S1+VNspZ27xJioCmXPhybgAl1rLQVndgC49MtjL49fgXmqqP 3LYoFkgrSp4gR1JOGlSQhTvlrmhgaNhMTVmM2MMWq+bvDnCfbIzO3l9T6PPtUnusZGLF gPF+6kzK51LJ6e4eK4MWuMvSdJ51sNTWwC0A77M6Up/uP9kwLHX5M9i4hGmeZb7NvxRK w+KHgsdGbOAFznlDMLCP4MijbuZ7sP4XJJhh+QrBpltryXZjrP1+GHzbubemNRa2tMeu ltY45Ix74wVX0xxCBvXwn8X0SploH7PrtKIODWe62r8fIE3GTU5ZOEDD4DqkvqAsoqcY 2OZw== X-Forwarded-Encrypted: i=1; AHgh+RqsNw1QQdh9DhjvQmzc2enor46/S2YVySNQgjwQZCHcnM3GhpPJUq3+rUvSrgiazN6aUqNk4k3pQxR83bI=@vger.kernel.org X-Gm-Message-State: AOJu0Yzr8f3c5N0CTW+WECs5r6bnDNTCu6L2uYhb5CyrV5BCJs1klPL1 2edvNT5iNNM0wYgztZds+bdkKlI+CDpsY6zv/Q+uZQrG8qXccgVep4d4cUWD0LB3acFJV1u7Ryx EzBl2abGQSU3/RzYZ1anFoCn+BF20NAadDawEKaJni8iS1OHQd7NjZIsKwoe6LHkGsW1C5dEcBf Me4QNuD4hTSMaHBQ+oWk79bWwBlk/8AWtwd6yfKbS5uXl4IIkc43Fag7iwu4LgttdwcYrEh0ezU T+mnRGPsSC0iLgv X-Gm-Gg: AR+sD13XKZW5x5OXYHCcQhbmiN9SFok01yepNiRS/6RkHhz9uXdtP9rMQwMY79Hv4FJ k+aMQfeYTr4HWvTPVA20dFZJd/2qnIe9TPw0Nxx57gbkRh3o7zwM6fYmKjkt2u9Gwgq0QWFk2fb Agl/C8azNhWPNVu+/joSwuCstUKk6/sxbbgrNZEfDcImzmcoy7aGvAwZ2Jio9uqzVuhFcFQVFFf 9gegEhE1b19tGoMCtsZQE3+BJLNPWLZT2JDWqvLddUWL90Z6+olwTPdf0ooz9rIYDnbqxR20nd0 i6EoLRkm62JMcFwhyQxDIboryhWumCfLJdHwiQmV8KcLWRX9CicKMR610Cjc+7j+5SCQSX7mpe9 8Deb90FJiRdyG8LnbXeQP2TfSEiF7D/GG65+FCb6ysPwec8lh6FtaSbvfXlLgelPD71883PELNq FHDeJOal32M+V5z/C2eouHaew2HnE2iCY3 X-Received: by 2002:a05:6102:5789:b0:739:8c52:f2b with SMTP id ada2fe7eead31-754a1db5862mr1763795137.18.1785265406187; Tue, 28 Jul 2026 12:03:26 -0700 (PDT) Received: from smtp-us-east1-p01-i01-si01.dlp.protect.broadcom.com (address-144-49-247-26.dlp.protect.broadcom.com. [144.49.247.26]) by smtp-relay.gmail.com with ESMTPS id ada2fe7eead31-755a9390461sm14154137.16.2026.07.28.12.03.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jul 2026 12:03:26 -0700 (PDT) X-Relaying-Domain: broadcom.com X-CFilter-Loop: Reflected Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-8e934385db1so2153236d6.0 for ; Tue, 28 Jul 2026 12:03:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1785265405; x=1785870205; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=jD5hBY+xcEEWI+IDnVzAov300+ilRU3clyqXwW86j6Q=; b=BMO6IkrSIjfxgdgFjT92hjdmF1PH2HPr7bMj37a3/3zLI6gympu88ih/bcJeh0U58Z /pCUX8bZ5Pv9UOf5jTE424v+A55DYerOXJma1lLxp9GU5j9mQCeTD/lQxjr2+tjJLmy3 GRKuY/loH2hCpFYDNduUHjwpkYuUePJJKhkaY= X-Forwarded-Encrypted: i=1; AHgh+RoopLuBsZVdXNKS+sjlMo6RfLGWzdZtE/YmA9bvoT0q1f1QfiwmFROLYdGI95UcMfV8Fbi3aCXOvArQ5EE=@vger.kernel.org X-Received: by 2002:a05:6214:29c4:b0:907:5a5e:ead1 with SMTP id 6a1803df08f44-908173340f0mr42101926d6.61.1785265405503; Tue, 28 Jul 2026 12:03:25 -0700 (PDT) X-Received: by 2002:a05:6214:29c4:b0:907:5a5e:ead1 with SMTP id 6a1803df08f44-908173340f0mr42101076d6.61.1785265404954; Tue, 28 Jul 2026 12:03:24 -0700 (PDT) Received: from mail.broadcom.net ([192.19.144.250]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-9081dd8b21esm5502856d6.46.2026.07.28.12.03.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2026 12:03:24 -0700 (PDT) From: Kamal Dasu To: Ulf Hansson Cc: Kamal Dasu , Florian Fainelli , Wolfram Sang , Oleksij Rempel , Avri Altman , Pedro Demarchi Gomes , Erick Shepherd , Adrian Hunter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/2] dt-bindings: mmc: Extend keep-power-in-suspend beyond SDIO Date: Tue, 28 Jul 2026 15:03:13 -0400 Message-Id: <20260728190314.2325906-2-kamal.dasu@broadcom.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260728190314.2325906-1-kamal.dasu@broadcom.com> References: <20260728190314.2325906-1-kamal.dasu@broadcom.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-DetectorID-Processed: b00c1d49-9d2e-4205-b15f-d015386d3d5e keep-power-in-suspend already documents exactly the requirement needed on (e)MMC platforms where firmware accesses the card directly during resume. Rather than add a separate property describing the same contract, drop its "SDIO only" restriction and document the (e)MMC use case alongside the existing SDIO one. Signed-off-by: Kamal Dasu --- Changes in v4: - Dropped no-mmc-poweroff-suspend entirely and extended keep-power-in-suspend instead, per Krzysztof: the two properties described the same "don't power off across suspend/resume" contract. Changes in v3: - Renamed from no-mmc-sleep; dropped S_A_TIMEOUT framing per Ulf. Changes in v2: - New patch, replacing v1's card-level quirk, per Ulf. Documentation/devicetree/bindings/mmc/mmc-controller-common.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mmc/mmc-controller-common.yaml b/Documentation/devicetree/bindings/mmc/mmc-controller-common.yaml index 3d7195e9461c..f4663b318435 100644 --- a/Documentation/devicetree/bindings/mmc/mmc-controller-common.yaml +++ b/Documentation/devicetree/bindings/mmc/mmc-controller-common.yaml @@ -291,7 +291,12 @@ properties: keep-power-in-suspend: $ref: /schemas/types.yaml#/definitions/flag description: - SDIO only. Preserves card power during a suspend/resume cycle. + Preserves card power during a suspend/resume cycle. For SDIO, + this is a request an individual function driver can make at + runtime via sdio_set_host_pm_flags(). For (e)MMC, it is instead + a fixed platform characteristic, needed on boards where firmware + accesses the card directly during system resume, before the + kernel's own resume path runs. wakeup-source: $ref: /schemas/types.yaml#/definitions/flag -- 2.34.1