From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-vk1-f228.google.com (mail-vk1-f228.google.com [209.85.221.228]) (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 F3097435EC8 for ; Wed, 22 Jul 2026 21:14:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.228 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784754865; cv=none; b=YRkhVRElFTvDJHK1CI/2/XoZXTNP6GViynB2yonEF6gToRi3OQHAJWkjruXSGHJlBlClRaZ0L12bayBv/3yY+Ca2AWkTxIrG7JT9q6a32XLOWslYPsqi4mMv654cuCCNLFQTz7ss2NRcm1VuOZS3tu8UTNuZIHsBBrUyNbOa2Mc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784754865; c=relaxed/simple; bh=vvm9MiiF4qT9D4Qs2ERzb7rUVfglIiNSjcfJaY+TlO4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KXjDPIBzGz4ggcSrD+1/Itjfw59gY/o6Yg/m4JuWusupEEltOQH1dGy6/5uzPjHPMeE5San/9o/v41cDaJCsS2zcRFKHZTmvfVEepYQ0OiWKf5FnrlalkYbCnXvx0Xe9lLxXZ2616n2UigHXCi+9qM6FgFpCVFkO1UUOXpbn1dk= 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=MVa41s8V; arc=none smtp.client-ip=209.85.221.228 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="MVa41s8V" Received: by mail-vk1-f228.google.com with SMTP id 71dfb90a1353d-5bfb3347dc4so7713056e0c.0 for ; Wed, 22 Jul 2026 14:14:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784754863; x=1785359663; 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=79r229Sv14C/d08t9Dy2alwJans9h85H9rzz2r6puFo=; b=BtAgGh5+uBXPN1SqZ4rD7STVtaVCoq263a95zHHCgyB+Va4pqVAbYAm1dm2xvWH7R7 bi5F6uFziipKZcl+ZftBM2WPZAgehfcQeBxAmZMbSCwZPjNtzMUdTqZNt4gMPluvD9ha 7109Dd9UIq2m/QK+h42rIwSOmKXwbERWf2SonyY4EdHQgW6oR9tJ07GqoC7NwbDyzdfb 48ebITrzZ2uQDlgKlDkZ1jMWR+iEyFI5WuIZ4j5zT+8RmseY97EVxGOkVVGzpbTWi22t Nh2VAne+K8ehoHX2IYwLPJp5DGXl23uQsJ4Ks49bHnLmycwPn5ysXjMPTnjmbYMMeG04 bSrA== X-Forwarded-Encrypted: i=1; AHgh+Rqi9pydbmCs289oDf7lHCje8gtwyR82Ayzbj5+ReRBrE3c/siCDVWAVtx6xBMLqvVwuS18uhlUTIZVwUfg=@vger.kernel.org X-Gm-Message-State: AOJu0Yxvs55k2JCro6d2BlXZ2YES137fbfwfo2Q/pssoAmwt+H15i/uL GMgaCLuG30JZr4cEPXV4OrGM5z74WjEKUJqSkSWVtYTPsgAgEYigTgijTfUrwXxVglnc2fYaKb0 vzGjx5f7yzzPZKu93SCifeU5FzE2eX0I5uG+LQrs0w/102sP7kFE9Fx5OQNi0wbnMzL+iz1VL/Y khO6Sx+tlDSKUoI4VQXOwcfwss+rPW1TchCdkegoH7D1w7TFu0UgEIXpyqp7Rj/ogGcCZECvRkA EoPpnnZjmYBkcFZ X-Gm-Gg: AR+sD118Ic2Q988ZUJNymb2ea3SdcpmTvP5a0EBv+Hr++6S6i0EJacNrpMD8mksbmAy 98CoazjmzdHoBQ2nRZ72MGPV8Psn01Mu1mIXDr0GzGycamy91o1gSu0yxqxudkA+kBMIE4i6ff8 Nu8OmzIVQonfNexINeNlK4rFu+vJRmCXewG9cIwbcrFZ2g8soa0wTJAQmw8y5rd43z3mq4MVH8e 9TjCspu3SH+DHuKu2xj5CAyxqTX5MEZh5+oIBJrqFhzLsAfPcvMdsS1V4qX+BGQJd7KaRaFQULa GE6UejDJ10Dkxqh8sppVWIxLrqDb3EjIis9nUp8IqX53qRNULUA9sESFxLvvDps19GAwWvavAIE Nxkte/hj49wDbGV9I10Ge1DJhy+Mu+5EMjb0fFKpky2HmbC7ChhIGub89XZTdK1GFaDt1O4Y+Ro ujoLnbblIrV+BL0sVUyPC2VmgSmTXOKud8 X-Received: by 2002:a05:6122:8f8c:b0:5c2:bb83:462d with SMTP id 71dfb90a1353d-5c2da0c5d8amr135382e0c.6.1784754862231; Wed, 22 Jul 2026 14:14:22 -0700 (PDT) Received: from smtp-us-east1-p01-i01-si01.dlp.protect.broadcom.com (address-144-49-247-29.dlp.protect.broadcom.com. [144.49.247.29]) by smtp-relay.gmail.com with ESMTPS id 71dfb90a1353d-5c2c5fc5427sm329938e0c.0.2026.07.22.14.14.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Jul 2026 14:14:22 -0700 (PDT) X-Relaying-Domain: broadcom.com X-CFilter-Loop: Reflected Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-51c0e702df8so202098881cf.2 for ; Wed, 22 Jul 2026 14:14:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1784754861; x=1785359661; 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=79r229Sv14C/d08t9Dy2alwJans9h85H9rzz2r6puFo=; b=MVa41s8VFt1xJeCuh1IVRh4zDPdiFBmgxRzw0bv4lyigAJIq8oA2C35weJo0Kh5Ed4 svNJYdVrizgqs/bd3OkUSpr+HSuvw2j8GlDsQRgK8G9+zGUEjCL5PrQagrGK5hNL/4sj Hzqmp1jtGThAkr/39jcNXzhE6ZQpJhkcwjmN4= X-Forwarded-Encrypted: i=1; AHgh+RrsplTUvff2kOiai6kGvE5AmHrD9Cl1MNLuQ4NLUPfuqGNDt/81bZl+4BVs+oR13eMawhJzlqkXUPmFLjU=@vger.kernel.org X-Received: by 2002:a05:620a:3911:b0:923:7821:dc0d with SMTP id af79cd13be357-931038938c0mr40973285a.33.1784754861639; Wed, 22 Jul 2026 14:14:21 -0700 (PDT) X-Received: by 2002:a05:620a:3911:b0:923:7821:dc0d with SMTP id af79cd13be357-931038938c0mr40969085a.33.1784754861114; Wed, 22 Jul 2026 14:14:21 -0700 (PDT) Received: from mail.broadcom.net ([192.19.144.250]) by smtp.gmail.com with ESMTPSA id af79cd13be357-930f68a7fffsm253004785a.11.2026.07.22.14.14.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2026 14:14:20 -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 v3 1/2] dt-bindings: mmc: Document no-mmc-poweroff-suspend property Date: Wed, 22 Jul 2026 17:14:16 -0400 Message-Id: <20260722211417.3702709-2-kamal.dasu@broadcom.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260722211417.3702709-1-kamal.dasu@broadcom.com> References: <20260722211417.3702709-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 On some platforms, firmware accesses the (e)MMC card directly during system resume from Suspend-to-DRAM, before the kernel's own resume path has run, in order to load boot code using hard wired logic that is not field updatable. This requires the card to remain powered and responsive throughout suspend: it cannot be put to sleep, sent a power-off notification, or have its supply removed. Add a no-mmc-poweroff-suspend flag property so affected boards can tell the mmc core to keep the card powered across suspend instead of sleeping or powering it off. Signed-off-by: Kamal Dasu --- 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. .../devicetree/bindings/mmc/mmc-controller-common.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mmc-controller-common.yaml b/Documentation/devicetree/bindings/mmc/mmc-controller-common.yaml index 3d7195e9461c..5f7b3f8ef1dd 100644 --- a/Documentation/devicetree/bindings/mmc/mmc-controller-common.yaml +++ b/Documentation/devicetree/bindings/mmc/mmc-controller-common.yaml @@ -232,6 +232,16 @@ properties: description: All eMMC HS400 modes are not supported. + no-mmc-poweroff-suspend: + $ref: /schemas/types.yaml#/definitions/flag + description: + On this platform, firmware accesses the attached (e)MMC card + directly during system resume, before the kernel's own resume + path runs. The card must therefore stay powered throughout + suspend, and the controller must not send it a sleep or + power-off notification. The kernel re-initializes the card + after resume, since firmware may have already reset it. + dsr: description: Value the card Driver Stage Register (DSR) should be programmed -- 2.34.1