From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f99.google.com (mail-oo1-f99.google.com [209.85.161.99]) (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 216DD3D5227 for ; Wed, 29 Jul 2026 20:14:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.99 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785356072; cv=none; b=U9NfeEfAOzUt9S2Jym0Vd3Ktbl/tSN/ucoCMh1TjcvJkm2ozKTRUxGgAboqTyOPiq7ciALyJEwc1FzaCqSNByqvdLpBuljCwNrespLF+ThLG0KrqkeNhyz6sbFuAyEEBVIKAw5EEDp2oz8mTIat3+XSyn1ik/TCF4X6aOX+0VU0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785356072; c=relaxed/simple; bh=uD4u9KTgNvJKJ5gV6MxgBAGV39N6ROb42LaNKTZXIdc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bi074ta3qHJN0+mmKGQ1XV2FFHawPjmZZ7iEi+K694GhUeydIl9O1gsKNN5Vrn4eJJOIdRfocAW0U/67x3wYEnrsX/0yOybw1u66gI7F6xFFZfreeBKLnNk5ckuInsF0zvEBO/G/ffIKDnkF24a2SuB1gnai7MbbziZ7IvpgFIs= 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=azdSlEtO; arc=none smtp.client-ip=209.85.161.99 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="azdSlEtO" Received: by mail-oo1-f99.google.com with SMTP id 006d021491bc7-6ab021f1daeso565516eaf.2 for ; Wed, 29 Jul 2026 13:14:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785356070; x=1785960870; 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=XbWrGnIrUUsth3Yia1cqmAkJSDCXp1RV0SQ0sLkznek=; b=lbAE41DWbOsktrfL7kvkp+yBHmYRJGCsdftyGzkquQYc1KINPKLzDBhcX9Iu2ukesj qllSL7FttL7ox86X6jHQ1yvmbLB/PDrF+Xy6w2Up/fzf4yhBqVOWqOjsae+/ihlZBWOc I1SBuhEYRiRxJ0+QH03hZRyNaNHYFfqPxbmM766m6jJlFbZV9TsA9nQo4DQSm+ePAs4x 5bIzs/qjsv0KeZtSNTaZNkCj98SpImOaDX58gsMGhXYVdJmiGzKWcauVzXgDTGc35GIc Uszdzep4r41pq8oNXjDrvhW2BP5DSY8zNel0waoy7kp2s9jUB618yO1qUZgpYAqBAuup sZiQ== X-Forwarded-Encrypted: i=1; AHgh+Ro/6BVhzIuLJJ8R/17AFTYS19BJm3rVnJ4PievJAVExDuxCyPZnS4gvTDOWZWaE+KSnWU+OUCmdJA3xN5M=@vger.kernel.org X-Gm-Message-State: AOJu0YwffZV8CnVLJ320s0IAZy/1BbREri3oOva9uG3FYRXJABUjtcDG WbCspYYzay1LoEYFVFCqR23TN7DWB1YD+Bw8OwrA8XBC5rLxmeQzeIBcM02AP0BAipdIp/8NB8A yjsfhv8qEb2IZkkaq92F4k8gxGTr2ZQaJIXgc3OxuhAeCxnfai8hW4Dz4VtHI0uuxCbjHNQzT0B NyvTViL2j5L4i82mFveGdrxNETy1cRixN/81OH6iXEJ9f+PC/O/zo5DmmC2isdtBdVCM8Jc6zAR LTX2S+d7ZdJfjIy X-Gm-Gg: AR+sD12O+MGN9uw4HdPiU67nufdzIOLGXOZLmwIDze/YEdeQ5qGFqPazib65PeBzRYc Cg7j48bqzezFHfmTrKqhlBHOMEjsGXdj/Ing378rFk5xnDOWq3+Gl7ItUR3qeQQjqsKP5FUEn3F x0sY0+YLhC5gn08mauusFNA11I+Nk+dBaJUfyBCK9bTWs77hRlgNm0EerVY6aLO6uNNQn2x9fur XQfx3tqHAnZS/dVr4lOaw6qaY/FBz0gCvgOCw0ifoskjDTvOAR5UvMXHGnIZ1RZLfJ91P7jf4Q0 8m9yh00TzIil1EU5L8MkU7BfxJ2Deetl8vjFBrRcIrtGxEnFZ0nprarnW0QUj4/VM0vD7YA+sx0 mFwcuuAOnZxW31LrDC7m6wFWTyaIzXdkipcsgodOVSWhOatcSXKJq8er5WCYkIh7b6xEYW+S0ik Q15Cudx3+OJD3XwlgCdwnTJwRllXiqDHZ6 X-Received: by 2002:a05:6820:4b95:b0:6ac:aa9f:2dd0 with SMTP id 006d021491bc7-6acbb59e406mr9307eaf.10.1785356069833; Wed, 29 Jul 2026 13:14:29 -0700 (PDT) Received: from smtp-us-east1-p01-i01-si01.dlp.protect.broadcom.com (address-144-49-247-27.dlp.protect.broadcom.com. [144.49.247.27]) by smtp-relay.gmail.com with ESMTPS id 006d021491bc7-6acaf3ef808sm106088eaf.26.2026.07.29.13.14.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2026 13:14:29 -0700 (PDT) X-Relaying-Domain: broadcom.com X-CFilter-Loop: Reflected Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-8ea75996387so24683486d6.1 for ; Wed, 29 Jul 2026 13:14:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1785356069; x=1785960869; 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=XbWrGnIrUUsth3Yia1cqmAkJSDCXp1RV0SQ0sLkznek=; b=azdSlEtOm4Oomid4DKfQG6xJo4A2mpn1Zik0jFUcWlCbSNZ0DIXYUeAFzJNihy5LMe C2pv8fHqPf9Ag1hxNK/e/i6MaBdObnsQUXIZpOgPtaPyKB0mLAL2K4DVmvU/EEdmcSJ6 pHY/2Cidi0TIXNX6Kmqdh52BXbCQeQRfpRYxM= X-Forwarded-Encrypted: i=1; AHgh+RqOC/pW/vDYQsUxGr+EJpXZIP6pSX6khhhjJzlz5/vpceeH12Gdgg+0hsTPFfyWNpuNCwWFNhKNtr75O1s=@vger.kernel.org X-Received: by 2002:a05:6214:3217:b0:8f0:9d9c:52c1 with SMTP id 6a1803df08f44-908302a7f25mr4192616d6.38.1785356069113; Wed, 29 Jul 2026 13:14:29 -0700 (PDT) X-Received: by 2002:a05:6214:3217:b0:8f0:9d9c:52c1 with SMTP id 6a1803df08f44-908302a7f25mr4192236d6.38.1785356068701; Wed, 29 Jul 2026 13:14:28 -0700 (PDT) Received: from mail.broadcom.net ([192.19.144.250]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-9081dd8cb0dsm32033066d6.48.2026.07.29.13.14.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2026 13:14:27 -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, Krzysztof Kozlowski Subject: [PATCH v5 1/2] dt-bindings: mmc: Extend keep-power-in-suspend beyond SDIO Date: Wed, 29 Jul 2026 16:14:19 -0400 Message-Id: <20260729201420.4047677-2-kamal.dasu@broadcom.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260729201420.4047677-1-kamal.dasu@broadcom.com> References: <20260729201420.4047677-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 Reviewed-by: Krzysztof Kozlowski --- Changes in v5: - Added Krzysztof's Reviewed-by. 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