Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1721766rdh; Sat, 25 Nov 2023 00:11:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IEdGHmHZ0oHBR3RxPogiBHYufUTliY29/kg7MVrlSCthOmq6qWgEkInp5nmxRRmm24N03CA X-Received: by 2002:a17:90b:4b4f:b0:283:2873:88ad with SMTP id mi15-20020a17090b4b4f00b00283287388admr8039349pjb.10.1700899896144; Sat, 25 Nov 2023 00:11:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700899896; cv=none; d=google.com; s=arc-20160816; b=l5xdl1D3l3pt1lK5rR/286Y/789TPDeEo/1VHKSN50Mf1GD/C9RStIaFOIhTXIN4v7 epgKSQCr2XDqcClEYTvZ1Wqyf5IpP9zaMvEU38UIor8v1G6UjoydTibGU2JkLEVL50DR /ldrLtQ5GgDEzchKj98RcYarXfnzvVo5odlTcOhxSCaHzQhm6IGwNUTxBRoVL0uRKcS6 f0YE59z05QoYfGRhVADbtXUfv99kNYvR+b2jp0Ud9EgXAmIixE67HPCXlUq1XbTGZspD J66sYlIEfMWR1t08Vy5LQWIoKalZEyz3sGLDneOZlvV9YT1ixIULzrQfcynAtdMDFwzN 5gUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=j7fnUrCHnN757NRCeEKxZxgB9tSX3+YYg88GEAjrUGw=; fh=Lb71MmuUX1xDC+z9kYTPPFXIbE7Vf90VIwRz567vpLc=; b=qN5wGCPRkXRKxHrJ1fC+n8r0+V6m873IwoLISLzw0lPQX3tXhMD9reXVIW8/MdAFhk T9JwHA9Z09zhNNxSZ0xT8qNf3+eArZCvLLaIuALrmTxC8h3dAfSII2liya9v2rG4Cx5t kf+ho5gqDLpXoogrRj7Hr2SNLejLSTmM0fYUtGkWWzXl3u0mUZybfj0vxNs/br5Nr/q6 K1mMJc1Hyvqrxb4BCAwHiweiFAVKiXZlV4moDSH6bCZNT4SrAWxfIl2+/js03Cs55lyq wlJC+uztg4/T/aqbOl1s2LkoCbOouBeB69TYKymgoEmc85fKbEim4xpbM4L+4xT65K+E J3LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=H3HqvSMV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id bx14-20020a17090af48e00b002534f4ce2b6si5542652pjb.125.2023.11.25.00.11.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 00:11:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=H3HqvSMV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 34D7D80A0DDA; Mon, 20 Nov 2023 01:08:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231948AbjKTJIK (ORCPT + 99 others); Mon, 20 Nov 2023 04:08:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232248AbjKTJII (ORCPT ); Mon, 20 Nov 2023 04:08:08 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17F82C9 for ; Mon, 20 Nov 2023 01:08:04 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-40a48775c58so15094285e9.3 for ; Mon, 20 Nov 2023 01:08:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1700471282; x=1701076082; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=j7fnUrCHnN757NRCeEKxZxgB9tSX3+YYg88GEAjrUGw=; b=H3HqvSMVCqLVpWR0yJpPlFluwS1UlUPzGKogI1yHM5Osjcj4U2aynyxLACNYDUtb9k QIPYOtVf9pgYl9fcw/xuAiJB6WlkP+bclF8RmbWKtJk7dK7NLYKYPSWOetJNFi+Z9xFu PZu26WMDDT1Qo2VHAMP6DxQhxLt/dXoZghv5MUAsqmS37GOpX3lDdUiO8ZGYLtfjgTyv E7VD+Y5vA31zyBGD6rPT5u1fjnkSCMdzxuQFj7O3cH5cxB73i7Q05/0TvaHF8AY2neId yZAOhkiKmnBDEIVh5NVMLWOHOZRFv0eDCDqCBme9R/sTE+hj86OGpmrWrIh2AKXrNNix n/Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700471282; x=1701076082; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=j7fnUrCHnN757NRCeEKxZxgB9tSX3+YYg88GEAjrUGw=; b=aT7phqRL+OPOfU7kOPLHy4oDEiRuham8LjtFyBsFcKYnWEz6XtbyBBmbAdqfdbU8XE 2og6sI71gRl/n3sUSf/oJz7k9VYAQLv3fb55mWiq/EbHcuNQ5fXAbdeOcnIKN1I0ZwVL 0HQ4+qVFyscp1IN7+sIbb/9oTkIRHQJWtPp9mhMiT2R4UNTuBhk002gifodBFFLS2ZOh n63i33052m5sSwEAuNtSPzyehU0A7eTbn0cqKySnlJSdVUpcmR/WavG5j8KjcjcvJuZ3 nTm6aePQbIQRdIu9UrCmS61b8jtT0r52p7nmQIZzPzlpSyVh94kBdN6VM2SlUFGyamWM snQw== X-Gm-Message-State: AOJu0YxKuGuuViTJbp7ipPFiA6mxYzfOS/aSZ9PrcLtZnzbSPE0Ba+eb JvOt2tnNiupvdGuvHsMUJjGENVgCqMsEZe6K2wM= X-Received: by 2002:a05:600c:4750:b0:402:f501:447c with SMTP id w16-20020a05600c475000b00402f501447cmr5782193wmo.0.1700471282601; Mon, 20 Nov 2023 01:08:02 -0800 (PST) Received: from [192.168.50.4] ([82.78.167.183]) by smtp.gmail.com with ESMTPSA id 1-20020a05600c230100b003fefb94ccc9sm12489829wmo.11.2023.11.20.01.08.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Nov 2023 01:08:02 -0800 (PST) Message-ID: Date: Mon, 20 Nov 2023 11:08:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ARM: at91: pm: set soc_pm.data.mode in at91_pm_secure_init() Content-Language: en-US To: thomas.perrot@bootlin.com, Russell King , Nicolas Ferre , Alexandre Belloni Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, clement.leger@bootlin.com References: <20231020130219.1255937-1-thomas.perrot@bootlin.com> From: claudiu beznea In-Reply-To: <20231020130219.1255937-1-thomas.perrot@bootlin.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 20 Nov 2023 01:08:33 -0800 (PST) On 20.10.2023 16:02, thomas.perrot@bootlin.com wrote: > From: Thomas Perrot > > In non secure mode, soc_pm.data.mode is set when entering pm in > at91_pm_begin(). This value is used (not only) to determine if the system > is going into slow clock mode (at91_suspend_entering_slow_clock()). This > function is called from various drivers to check this and act accordingly. > If not set, the driver might enter an incorrect suspend mode. When using > secure suspend mode, at91_pm_begin() is not called and thus > soc_pm.data.mode is not set. Since when using secure suspend, only one > suspend mode is supported, set this value directly in > at91_pm_secure_init(). > > Signed-off-by: Clément Léger > Signed-off-by: Thomas Perrot Applied to at91-soc, thanks!