Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp8110593rwn; Wed, 14 Sep 2022 09:05:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR6gb06j1OXSl7GTaM13TZqsK6B83/iRvVlOSLsBahO930/S+bZEqxI45zKzi2VfI89XCMKQ X-Received: by 2002:a17:907:270b:b0:77b:17b3:f446 with SMTP id w11-20020a170907270b00b0077b17b3f446mr14870717ejk.415.1663171539306; Wed, 14 Sep 2022 09:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663171539; cv=none; d=google.com; s=arc-20160816; b=q1DGnJXHH3Q4UTcNmn47smdQRqzCRLVCovI8N58/H3FV/QCB8YYjCHW8IVR/DV+v5m fKSeY/GYd8NOB3zvr1MpbI9YHSnXSh5HrL/Lxjimk0oCTDo5I+5qvivhk9rbJ8XeVMk1 usqMABptkMpBO0vKYJYhKhH5vCIRnFrX8GtPNTPBcJisWBCWX0RxGXRs5O6ppDoiX9Rd Ds1CHRoYKyGvdDwE4tkGOcjY2m1+nFJ3f89VSajEeuLh+0qNgiJi6wczqbZYw+5r6/P9 z5HGO6jHDpOKSFF4skWAsgGMYeXCLPLpRImBsxCWhXF7V4z5n9H8zmD2gOYyat8PPx5q bn0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KH8Dj08mG5rKjlmcghool6K7gceokPRFB+a5vuX9abM=; b=SyhdJKm9CUeCYGIDqeAdgRe+mRwIVeJfPvGZPBySbA5Bp4r61HBzHo8lqHt2yGhCYQ nmPqxzNqhK+P1Jxg8ivgo1f6SLRHPT5nyA/MSc50JkFwvyuxVjdTHo0gpA4XCk2oerQr w/iGqDs6buIxx11RfW3EyxHw1gWIC2OwILnGxE35Cq2HOaYd2gs8gEgfn4z2Pf2l9Ei6 yFsupGBOzGrACoqbdW4esGAY1hEFvF5S8WrsA4hR68l6Wu2+wnw5VnipJSuSbla4rY+l hX+35YcHlkydifSexWkcm+sWm5DSfUx+JjEZskhyrEYLejodEZ0ylEIXPOd3HGVA6pF9 u2mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=S1yVSGr7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp40-20020a1709073e2800b007419f6dfba2si11615683ejc.41.2022.09.14.09.05.10; Wed, 14 Sep 2022 09:05:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=S1yVSGr7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229938AbiINPWv (ORCPT + 99 others); Wed, 14 Sep 2022 11:22:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiINPWs (ORCPT ); Wed, 14 Sep 2022 11:22:48 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 570F12F02D for ; Wed, 14 Sep 2022 08:22:47 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id bj12so35460302ejb.13 for ; Wed, 14 Sep 2022 08:22:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=KH8Dj08mG5rKjlmcghool6K7gceokPRFB+a5vuX9abM=; b=S1yVSGr7CQ8HTrcYaFVaPTstEehf/ZSFvoQH+yOLJzZGPcIU3vC0fke0nWkNHlwpL+ hVE/b/JhFOBWk+rtjXaL+eO1u2jB1urpM8pUN6nRJWvttUsvh9c4Zh8iQmtbJyKTrBqz WP6Zcl83/G6taGRFeMdv7p8chPsZLNtNpNk2U1zoslTm2E9g/UXc55JVUlcN40CMXQqT 3tCY/OK2DC0bTYMZ03v7yIBRKk5BQ7EI6JBVQawlmgBZtWkWuxPyuPNmPUXgblTVSPEE il7BUdBG4IZaajTlLrkoAHxtsrHW0ETqoaiktQUgLodeVZT3Z0u9Gw5vy4Jw9E+fUcpM goRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=KH8Dj08mG5rKjlmcghool6K7gceokPRFB+a5vuX9abM=; b=oqNbnr1WVpKCbRb4bq/uAni763DsqKi/N/xM1Dirvh4gfYNCR8BVVjF+8L8B2z/sJa nkOZE/BNselejt0yf6QrQ734fsYsj0TU6sfzBvk4ShfSEoRUFnn+5womzzdwIBlmFFdI QVdk1y1g1pBSy/6hm8SmWbkruZ2FAPdc3rEai60dDZ0XF/Zug5XE1Orb1botU9c2LhpX Kl43wP7KiszYq0jh/md1loBiC+TfHLH2T9noC+4+/DzDopEOojCoiuPpu4VaSQT4Z9B8 eiQUhJuaOoVnhXTZPjpJG5JXkJsRGSgE3UqX22O43WfHyjHQ4uJoGqXaay068gp9Uzyj Zl1A== X-Gm-Message-State: ACgBeo0pc7b47ZLJHjogy/utvjWuox6AvmFYKNWYLQEMX+bQdO9Wz2Xu nECIkPTre/ja41dcmoPRvsnD/4I7etfc/FUM1DxreQ== X-Received: by 2002:a17:907:3e07:b0:774:53ba:6b27 with SMTP id hp7-20020a1709073e0700b0077453ba6b27mr21202699ejc.286.1663168965960; Wed, 14 Sep 2022 08:22:45 -0700 (PDT) MIME-Version: 1.0 References: <20220914151145.73253-1-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Wed, 14 Sep 2022 17:22:35 +0200 Message-ID: Subject: Re: [PATCH] gpiolib: TODO: add an item about GPIO safe-state To: Geert Uytterhoeven Cc: Kent Gibson , Linus Walleij , Andy Shevchenko , Drew Fustini , Marek Vasut , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 14, 2022 at 5:20 PM Geert Uytterhoeven wrote: > > Hi Bartosz, > > On Wed, Sep 14, 2022 at 4:11 PM Bartosz Golaszewski wrote: > > This adds a new TODO item for gpiolib and can also be used to start > > a discussion about the need for it and implementation details. > > > > Signed-off-by: Bartosz Golaszewski > > > --- a/drivers/gpio/TODO > > +++ b/drivers/gpio/TODO > > > +This item is about proposing a solution, most likely in the form of a new device > > +property called "safe-state" that would define the safe states of specific lines > > +(e.g. output-high) but not block the line from being requested by users who > > +could then modify that default state. Once released the GPIO core would then > > +put the line back into the "safe-state". > > #bikeshedding > > If this state is the "safe" state, would that imply that any other state is > "unsafe"? I guess not, as the idea is that a knowledgeable driver can > still change it (else a hog would be sufficient). > Hence I think "idle-state" would reflect this better. Any other thoughts? > No, you're right, you even mentioned the name "idle-state" during the BoF session. Bart