Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2666974rdb; Fri, 8 Dec 2023 15:38:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHp19N3QxAjOyPHIYT+hgeSm65MwAyXX+RWUqqZO6oFT/y3TT7Gu8MMvg8mnzzo+mTPXaM8 X-Received: by 2002:a05:6870:ed8b:b0:1fb:75c:3ff1 with SMTP id fz11-20020a056870ed8b00b001fb075c3ff1mr959838oab.81.1702078705319; Fri, 08 Dec 2023 15:38:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702078705; cv=none; d=google.com; s=arc-20160816; b=F8xasHd6BSLE6guPoyL0w62Ra9xfEx/Adcuzfdh6QrIvr5e9v8HSe5/sOTcKf13IQb MwJCUmzdoWONh8VyOKQcaR0q+xtpdyvISI2fwFybTPhujA6XGa2ndCzRNOoRxz6psfI2 rM0QCiaSE3ZuGPipkMQQdwJEFm3knINtsqwemcZvIdnIG70ICInGE3un+AmabE9e8+F1 gWAGN2JTBYVsVcpexUycxS+Qe9Z+k9sC0ELTJNAkMN3aTfMZpQCNh6J6lNZ8LQ0HSuse BrAJb6NfzopGgpLlJ7yoZ9SXsMebT1+/Lr/ZdNj733rGeCqSyvNsJRLCQetaMY4pAXlE FaNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=aa6XX3Pqe4FOIY2+l8f727rXZuXDdaFGtGV099fvry8=; fh=MWI9CHUmEwI6p++WZqaFMLC66qsTj1eC4jSPJKJJGWA=; b=xyMrQcjCZnPVVtw+u40totQaGq5tVzWHSlAUMEnhVMD1hVkPrdQA4M3Vyhjn5O5wZk c85hCkMjg4jkn37AEPqsDWHo6rwKpfBfaXEtj+VlFyesh8u1SkivmGNS9d3cGfBoZC8V bBR7QZ+PDyVFt5d5Uoitxfugm8CzGRV5ygVMjOuBCsYGn46YLA7c0+f+73eOIzWPNEOf J2XQKZlMS/Q9ElraDAkQIo/c1uiSJWl0WylUJ6ZPivcBe073F3kJKbKcTzwLgoJPkvzl 3kwGf+FfgE3ecKQdi5b3wFMd6pxBAU4BGQOQiQ+faTPCfJ1QTl2K5GKWgoGrTu9STt3m YTig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DvSBzWei; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id l8-20020a6542c8000000b005c1c489bfc6si2213364pgp.627.2023.12.08.15.38.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 15:38:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DvSBzWei; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 0E10883BBC02; Fri, 8 Dec 2023 15:38:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229986AbjLHXiI (ORCPT + 99 others); Fri, 8 Dec 2023 18:38:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229525AbjLHXiH (ORCPT ); Fri, 8 Dec 2023 18:38:07 -0500 Received: from mail-vk1-xa36.google.com (mail-vk1-xa36.google.com [IPv6:2607:f8b0:4864:20::a36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49EB6171E; Fri, 8 Dec 2023 15:38:14 -0800 (PST) Received: by mail-vk1-xa36.google.com with SMTP id 71dfb90a1353d-4b314f78326so748666e0c.3; Fri, 08 Dec 2023 15:38:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702078693; x=1702683493; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=aa6XX3Pqe4FOIY2+l8f727rXZuXDdaFGtGV099fvry8=; b=DvSBzWei1+woCDmO4i35JAxRnbVIIBCTQlB5fOohtwYpOQ+i2AuwMvujUcsDkGYqHk Jd7slqy8iymOclrjFcAswIq8wFBggNmlCFY3xQpxFMcR1vpT5D/mMnbcPmqdYTDwDdQa 6tYPWMwIairEPgNcF7e+VOKXbau9gqmKAT29pxFTvEya11DTliUFrafxOEYKg/uZ7Jhy Dtl16x80NIUfpXrOLqmKc1sZRtR2tnVD4PXQtHX9Hnet78iLULefVE1yY7qBR+o7llOS +d0Xp50nyJK+Qe0sYPOOinW14h8afpOqArNEytdTPDyjrzXNz3FVKLZQESrULgW3fTOz 9VCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702078693; x=1702683493; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aa6XX3Pqe4FOIY2+l8f727rXZuXDdaFGtGV099fvry8=; b=NFE5zeqDyLoJGIfACo302CejYradaSPDJOjIfdMsJE0ke7vhH6RKozUT9mKPHqVDto K8hjMfDXpNuwGE2nNyG1LNKGPtPJfjJYVKOX5prQAMR8X/er1kuT6PDCh01LnP7KlvJz iSIMN6CfMnrv8NiZ5/+bX4LvIA6m58LXfjHcqOTcPsCnFv4bXwO1g6ehVk7B7VhNcG2X ny/97PtRJAyzg9ZWt1zJeJc178JhyoGXBTM+pLIGVthfwpxjZURTPG8jihHMmJMhvEC6 dGn7veOexQC9mA6NZn5v6yiF5lt3aJi52DhO9AScxFP3NUAxgqjBs8gtXqblL1lQe61Q +7Eg== X-Gm-Message-State: AOJu0YxYdiEmPzkPo3u25Ij/YTBCDK7lQ5PYQ5wd/2uuiwj8mN2F44E4 m42kBsnoiPUCDQ/7vQwJhUg= X-Received: by 2002:a05:6122:3a0a:b0:4b2:c555:15a0 with SMTP id fp10-20020a0561223a0a00b004b2c55515a0mr1079285vkb.27.1702078693275; Fri, 08 Dec 2023 15:38:13 -0800 (PST) Received: from google.com ([205.220.129.31]) by smtp.gmail.com with ESMTPSA id kh10-20020a056214514a00b0067a1c7d8e98sm1167263qvb.41.2023.12.08.15.37.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 15:38:12 -0800 (PST) Date: Fri, 8 Dec 2023 23:37:47 +0000 From: Dmitry Torokhov To: Linus Walleij Cc: Stefan Eichenberger , nick@shmanahar.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, claudiu.beznea@tuxon.dev, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Stefan Eichenberger Subject: Re: [PATCH v1 1/2] dt-bindings: input: atmel,maxtouch: add poweroff-in-suspend property Message-ID: References: <20231207111300.80581-1-eichest@gmail.com> <20231207111300.80581-2-eichest@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 morse.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 (morse.vger.email [0.0.0.0]); Fri, 08 Dec 2023 15:38:23 -0800 (PST) Hi Linus, Krzysztof, On Fri, Dec 08, 2023 at 01:54:21PM +0100, Linus Walleij wrote: > On Thu, Dec 7, 2023 at 12:13 PM Stefan Eichenberger wrote: > > > From: Stefan Eichenberger > > > > Add a new property to indicate that the device should be powered off in > > suspend mode. > > > > Signed-off-by: Stefan Eichenberger > (...) > > + atmel,poweroff-in-suspend: > > + description: | > > + When this property is set, all supplies are turned off when the system is > > + going to suspend. > > + type: boolean > wakeup-source: > type: boolean > > As Krzysztof says it seems you are describing an operating system feature. It appears to be an OS feature, but I would argue that it is also a property of a board. It is tempting to say that if DTS defines supplies for the controller we should use them to power off the controller in suspend, otherwise we should use the deep sleep functionality of the controller. But a mere presence of regulators does not indicate if they can actually be powered off in suspend (i.e. if controllers shares power rails with another device that can be a wakeup source), so we need to have additional hints on how OS should behave on a given device. On top of that we have regulator framework supplying dummy regulators... Thanks. -- Dmitry