Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2880492rdb; Sat, 9 Dec 2023 02:57:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLSI/zBU2B4HBQCvPoElArY+PQAfYQsEkRalY2KTwBVe2a5MLi7hFKwSRX507bwuYqeGYS X-Received: by 2002:a05:6e02:1e0e:b0:35d:667b:16bf with SMTP id g14-20020a056e021e0e00b0035d667b16bfmr2090726ila.28.1702119457768; Sat, 09 Dec 2023 02:57:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702119457; cv=none; d=google.com; s=arc-20160816; b=CPzp2aRBHrZ/QHFijVUiRoO7//OxrXRqHkohfFwNgw6jXyqGzXnDFy7yi4tRVtGzc4 K398vQc/ql78E1+UT32OnYscn2FRmKfXo7XtenVG09gBwPzTKdtZM/j7ZoRBOWKkTac/ aowEhugOxaZoEi8oNa1n7h6wfy5slkb11N5jWiSVcFVrv7CjBGcvDKEedSxZ9mvytbjy 3t31GldyekNTPZ+OOyNYwm5q4rNz7QsoAbyVvUrx9IiW4RVYw5QGknbVPMYXVCNTpRH1 kAZKiWywv2cA/VMk4WJsxmqBd6r/eesZ9VmdiVF6n8RgeMNSukTkbuG6/qhP2ZJpS06t gDoQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zbZseTtK8Xz88tYKUaksGzTa09gp4DhkzmXePq1ml7A=; fh=S9qYAuBPhpmWJieg3jhR79S/4l+N0aIquQJ0A5yZcuU=; b=aWAKC+MpubxhbTaqRa7Q0k7oFT0zaOLsO3eDv0vp3p2fMhqPc4LLNpsteNKwoGMFIR a5Wf3nDYlnxvzEMqRFZYAYyUrbaXQAtd1xrQbf6k61D74T4C4K5f4wRDG4byOk7+Ure7 3ZOxqAy6Jkf+rWKQLa6RqmbA0xCTLIqeLuct7t0Xs/6RMNaqcri9veM9xnGz8DoWJJ5I +87TaR5T43ueWCU21+Wow2YNBpn0JNXbFXsDsxykgWpmt5FHTtij40B1ARRvFiTzxQ3b yWugv0ty9JLVDsKQQb1dXnvZtDNuLrnyS3fnOxmtdYNMUzAspWscBFIOpXHvkqoy7+wB vqTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uUnmF7CD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id d18-20020a170903231200b001d096bcfc22si3034531plh.340.2023.12.09.02.57.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 02:57:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uUnmF7CD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 2358B802DB84; Sat, 9 Dec 2023 02:57:35 -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 S229909AbjLIK5C (ORCPT + 99 others); Sat, 9 Dec 2023 05:57:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229910AbjLIK5A (ORCPT ); Sat, 9 Dec 2023 05:57:00 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E790C193 for ; Sat, 9 Dec 2023 02:57:06 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D6E5C433C8; Sat, 9 Dec 2023 10:57:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702119426; bh=LfIhP/af5BHnpvQo4uP7i1HD6/yJmre7AxHGR/IvG54=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uUnmF7CDb4lBM7QWDc8vErl87dZFgiju4DLw8Ih0qLnT+w4aVy9wIgenKuUyH/v2X D5jSkv59gp0NSY/GJSlpq+e+eLxXAn7vEpz/TvH+2I10F0pu6DWDfibGZEgrpKQ2Wl Q3Uoj7/cYn3Pcq8FWY2nU7XR+nYRwn0m9wgZuMS7gWFzfcglm6ufaPsF7YdZAI5vEC cCgh34qJJnPXw97CYrqSuaBYUoZCWe8I8z2q+jp6Fc4SUJ1dGpfiIYaBhRTmn1c+mh hTC5LF7SvezZydDEUnCsv2gCGNwUJ1LiDDf23lCaHQvnUXUoFqVav5Uu/RnnOKEHki dnSOXEc026jLg== Date: Sat, 9 Dec 2023 10:57:01 +0000 From: Conor Dooley To: Dmitry Torokhov Cc: Linus Walleij , 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: <20231209-sizzle-monthly-6e4f3c966b0f@spud> References: <20231207111300.80581-1-eichest@gmail.com> <20231207111300.80581-2-eichest@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="C72rfSVWvZsQ7rnL" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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]); Sat, 09 Dec 2023 02:57:35 -0800 (PST) --C72rfSVWvZsQ7rnL Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 08, 2023 at 11:37:47PM +0000, Dmitry Torokhov wrote: > Hi Linus, Krzysztof, >=20 > On Fri, Dec 08, 2023 at 01:54:21PM +0100, Linus Walleij wrote: > > On Thu, Dec 7, 2023 at 12:13=E2=80=AFPM Stefan Eichenberger wrote: > >=20 > > > 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 th= e system is > > > + going to suspend. > > > + type: boolean > > wakeup-source: > > type: boolean > >=20 > > As Krzysztof says it seems you are describing an operating system featu= re. >=20 > 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. >=20 > On top of that we have regulator framework supplying dummy regulators... Simply rephrasing the property might be sufficient? The current one sounds making policy decisions with the "should be". Reframing the commit message and property description etc in terms of what aspect of the hardware the ability to turn off all supplies in suspend comes from would make it more acceptable. Pretty much answering the question "why can't we try and turn off all supplies on all systems with this device" should get things rolling. Cheers, Conor. --C72rfSVWvZsQ7rnL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZXRH/QAKCRB4tDGHoIJi 0gwwAP0f6ZUlt2hLfY6VvqK/jBmyh55L7p9l4zE7YNlHzIYoAgD/QhPbNUmbRBTQ ryYrjWFFE9seO+T3W6rJ5AXJgOQskw8= =9hx8 -----END PGP SIGNATURE----- --C72rfSVWvZsQ7rnL--