Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3632925rdb; Wed, 27 Dec 2023 14:15:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IEx4TdGN1lPt+MnZXYn/tgFxfeotxm4xvhBBVPYjI0MwRPN+RScG/BlBFFffKf46ChvRbXI X-Received: by 2002:a05:6214:d66:b0:67f:419f:976e with SMTP id 6-20020a0562140d6600b0067f419f976emr15116478qvs.117.1703715358141; Wed, 27 Dec 2023 14:15:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703715358; cv=none; d=google.com; s=arc-20160816; b=lzHQPz0JJAqh217HxwQUI8UBDrrj3YOysnjdSN2kbmNUlYa/SKldXf3j8wJH1ULmuz ro8mW2feIr1sphzaLKgqAP3vMhtPWkMT9sKJXtigbnCLDjh65+DBuNcmCaW0t++NB/wD 3Hx56Zak49MT7RFr0pGv11YXFtn0VOfNtvLBrQhkj0t0QL+BTjg4x0MKF4EF92a0EoSu Ox32SlmYeJIMo1t7qakbQnSyEQbmrA6xi/HP5FQly8xB+oA9+kgcmJHgbTbf2E74szcZ Ccz6//dU0KGmvMNbUl9Js4Ebakadnp2tJ4sb980It9Fh76YQYWVTLMZ6tsMAzMr0lING hk5w== ARC-Message-Signature: i=1; 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=UaweJOUZhA3J0eI5gLkKX20Jp7IChzn7EYWBfNX1EM0=; fh=vMPF14dRYhSnas+8U32vLVecrchv7sUNtnX5uRg2iB0=; b=f7QvWPn0em9H6IYudvdf6fBiGI+tuXEh+qywia4E3I24z6qy/sB5UGCRPfmzAKNUI9 1RbB1T5uQRroOXBoIjGA0zlh1l3tk5njTR7G9Z773mXLIpNdtm2PYYKYm5h1tPsEFSIA EEYF3d6FRtrMei1it0iFIyH3+yGr7ptKAGEDAHUKe3fCGxs3uQUjc9n/VNSdqSDGstWJ ruTHcuR17X1HD5KA840LOz5Z9LANWFrk3AOBoEJ6qjuylcT5eOplQoP6TLNXYpnjEKfH p1p01XxHf8R2caLZMG/zYdSdRl3P1ItOJl8HxJU3avEURLAbRNA3aVPT9nlsfdpalQs5 LM7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mFZroxFU; spf=pass (google.com: domain of linux-kernel+bounces-12282-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12282-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w16-20020a05620a445000b0077da5e2cbb9si16124378qkp.316.2023.12.27.14.15.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 14:15:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12282-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mFZroxFU; spf=pass (google.com: domain of linux-kernel+bounces-12282-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12282-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D0E561C2263A for ; Wed, 27 Dec 2023 22:15:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 841C9481CF; Wed, 27 Dec 2023 22:15:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mFZroxFU" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 038F1481A3 for ; Wed, 27 Dec 2023 22:15:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-50e67f70f34so4357429e87.0 for ; Wed, 27 Dec 2023 14:15:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703715348; x=1704320148; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=UaweJOUZhA3J0eI5gLkKX20Jp7IChzn7EYWBfNX1EM0=; b=mFZroxFUV1q+iwgUFAmDrjZHN/6Ddy+13uh/bdWv+cTX61+lN/hPGLKdCLHbKLAFD3 oUz/hcbQ1yW8D68ukJsQh4R8z4hlD23oVe5jB9JQNbh5v/4UuYYHzqbBKajc16aJzb51 SvmMVUvT7vRfvoRQRc8V6TgEDgRMA6rfQ6h9P0L3SfI1pVnaoDIxiAcLzwlayZSRjXTO oyzC5tWoW+rbVfSpsRlJam1D1SKwPQYYl1mDPKEnLz76gWaFJvgEz5NIL0e91PG6aNvX ylsj1zKCxtoXGxZ6ZB4eBbc8DNI34Cd7eQFBa9/dXiH5Wsoo94DQmY/aZQONpzeH53Oe 2k1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703715348; x=1704320148; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UaweJOUZhA3J0eI5gLkKX20Jp7IChzn7EYWBfNX1EM0=; b=qAwhC8YbwfxIMiIJ8Io9G+i6Db0OfPz8tVauN3uIiBglWPJ3SM5Bid6hPlSuL/d6Ju lOvw7EQ/Ys/CuoOtZN/sdYVhmwnvfnm+2K+1a3rQ0z0o1vUAIFpuujgOFVDPAsC8a8ZM 0I8bKwVzGJMbhRW5CCBQCsSZyP89WdWP62rUIAEuMKz2en8My9cRkEgDYxxOylGvh7N8 qJ3S6GLLpxDbDH0WoiS36GCzMb5xM5SjqSPwrYgqFM/WlMbTUcI7UGojCE1u1uaz4esz s1h2LeBswYGmGo13MmNl37MuQUH4gbQYv+bR14wEYy4OHXEtVxfrqWRf+fPXzM0FhM9O YY2Q== X-Gm-Message-State: AOJu0YwxzLN9iD4PgqM0m38n6aTAzZqZuRqkMaGOgM6Ug/jBH9cviT/i o0yyRsHCEVdec42JGyJHwl4p+uTuisyflw== X-Received: by 2002:a05:6512:ba6:b0:50e:7be8:46f6 with SMTP id b38-20020a0565120ba600b0050e7be846f6mr2633774lfv.83.1703715347918; Wed, 27 Dec 2023 14:15:47 -0800 (PST) Received: from [10.167.154.1] (178235179028.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.28]) by smtp.gmail.com with ESMTPSA id vw17-20020a170907059100b00a26f3d6062csm2821501ejb.50.2023.12.27.14.15.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 14:15:47 -0800 (PST) From: Konrad Dybcio Subject: [PATCH 0/2] Advertise pm_resume/suspend_via_firmware with PSCI Date: Wed, 27 Dec 2023 23:15:29 +0100 Message-Id: <20231227-topic-psci_fw_sus-v1-0-6910add70bf3@linaro.org> 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=H4sIAAGijGUC/x2N0QqDMAwAf0XyvEDNQMd+ZQxpY5wBqaWZbiD++ 8Ie7+C4A0yqisG9OaDKrqZrdmgvDfAc80tQR2egQNeWqMf3WpSxGOswfQbbDGNIgUI38q3vwLs UTTDVmHn2Mm/L4rJUmfT7Hz2e5/kDQX2yIHgAAAA= To: Mark Rutland , Lorenzo Pieralisi Cc: Marijn Suijten , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1703715346; l=1011; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=Rck/esDXRrOWaEACIothwBzUAgF0KQN27onJv0JCYOU=; b=95GrHAoDTaaGen2QvwWaM9ccYun2A59CqjzfHNp/lNupMeKqrKSJK+rGrgiAxdYHYncj3V4nj YKx1lfYCx69CzFzTO0d2xpu+gvjrEfW3n5ydzpuiAGgMe9wTt3HSIXo X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Some device drivers are curious to know if "the firmware" (which to many just means ACPI, because x86/ibm_pc is clearly the only arch on this planet :P) is responsible for suspending/resuming the platform, altering their behavior if that's the case. The same flag makes sense regardless of the type of firmware used. PSCI also happens to be the suspend handler on many platforms even without ACPI, so it's only natural to report such capabilities as well. Signed-off-by: Konrad Dybcio --- Konrad Dybcio (2): firmware/psci: Set pm_set_resume/suspend_via_firmware() for SYSTEM_SUSPEND firmware/psci: Set pm_set_resume/suspend_via_firmware() on qcom drivers/firmware/psci/psci.c | 67 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-) --- base-commit: 39676dfe52331dba909c617f213fdb21015c8d10 change-id: 20231227-topic-psci_fw_sus-a0b0206dc876 Best regards, -- Konrad Dybcio