Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3291815rwb; Sat, 3 Dec 2022 02:25:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf6hP0JA2lSiFkp5QA6mkx4PRipTeKZ5Q+4U9n/fBJntQlPFJqqHl9kSBMIcHru6Zs4yxNgJ X-Received: by 2002:a63:4d61:0:b0:477:b1a8:531e with SMTP id n33-20020a634d61000000b00477b1a8531emr47185420pgl.158.1670063138790; Sat, 03 Dec 2022 02:25:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670063138; cv=none; d=google.com; s=arc-20160816; b=VyUpiqx7gjPO9nkmGB+7WhvQ3/gYhxoUrl06VLRl3/82oC0BEeO1jkwL+UPQiXaUQ6 b+hH4dQNEXjNmpOATMF+xAgQDs+9AowoXtpSWkxqY3Yd2lUb2oJHDjpPg7o3UdZCnc3M pC4vyNkV9274JEFb1uXCY2pZ4luODDPahPFuLgvvd+getuotLXCvrT4zmIeOHlyD3dSz 86tw44392M+oQ2ANyDIrgYkwTQKXZS7aKRFlUYNtI5VZ1OPMQ39OHfV4gChl85ywVV0J osohACTiV4B7sp4yHW/nnmb2601qq1NdJtk5L8yyWA8MBVV4stSxos/8A9ks2Zj1sorG 4EYw== 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=r1oGywp14JWZ15FPL7OnZRGPM4ko/b7n8s59nLxtj8U=; b=NAwPmPA7QeNjlNBbX1kFbRTNZnRjLsk//Z7t+cW5Y8piLM/kIu475X6kl8ELdHm51t SKxTRvhZ1TL5d1Eg5qdpO8qQxx/mR+7RWtBwEn7M5jOyKsF9ahKqIkiFFmW24aVSajk9 q3NY4A6agxU2Fw9iE5HsKp98CiCLVqDwBkmiK2HUmFxfrw2v4at4ipluZVfo+aUPBdIt BR/1vxzKy1tZKaEE35GKA7Tu/k6XJ9PjwVD9KGAswUy24i7JWebFUiDG92yq7dZgVbtR 3DxLWEUkSPzQ6ZvEOT0ZM5cSsunVRx2Jj+oCYuPi7HW3FdQFDBxvWxrYMKggSQYutido xcxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s9QB5ECu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mi8-20020a17090b4b4800b00213d1d59224si10078911pjb.136.2022.12.03.02.25.28; Sat, 03 Dec 2022 02:25:38 -0800 (PST) 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=@linaro.org header.s=google header.b=s9QB5ECu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229558AbiLCJjD (ORCPT + 82 others); Sat, 3 Dec 2022 04:39:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbiLCJjA (ORCPT ); Sat, 3 Dec 2022 04:39:00 -0500 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FB7E5A6ED for ; Sat, 3 Dec 2022 01:38:57 -0800 (PST) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-3c21d6e2f3aso71478267b3.10 for ; Sat, 03 Dec 2022 01:38:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=r1oGywp14JWZ15FPL7OnZRGPM4ko/b7n8s59nLxtj8U=; b=s9QB5ECunL2ghBjfUzx+lJx+SxjrYch/xmnA+GUEUXdT8mq8nvvxfX3V1ncfLSXyHe EQOqbDQ88d8lyvV1TSdn7VjZkbgpDWeN9lOYQjn19674NnrhsA9QU1m9+6hWIHpNqIjs /qSJL5/81qi9XrhCqCFN7kc7oNTk+G/hxvRyKrjnr3XN7MslAb42mzzDBMWkYrAeu4ZE 4MqoxvWsuWKzhMqfsOmyEzzEvGYzVR9Tq6HuAtgOtYOg0wI8AKtPJTSmhLvlSRiJE+CB p0kIIf8tMgwDo8sdm0KWuiz/RB3GEkpWpnz1jFYWbMsfMToAY0S7h/PD1aRE5ZxfhEdq 6CnQ== 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:message-id :reply-to; bh=r1oGywp14JWZ15FPL7OnZRGPM4ko/b7n8s59nLxtj8U=; b=ADPdgU7MP8Pv8vWg26aX+yEeOY4SgF+IgNagb26lMKN61VR1nDi4eHmD5vmmo62xot LBkAcWbw34Ci/Z8R6XZ3F8xWs3FVE47DpoHGBtJN7nyiqn/yyc8mcCzLzc+tJ0ld4CNw PrxkMWNJn77nXHkasnEh91po0lOxTksdihvVRu5H+jpVMZ5khkZc5mNj6JZYcuA7TPBs nL3yYUoWuKiHewxWxGf97xj+exdw9NAO0HUf4Nw78xxHqX4CSzwLUJBNeHkJ9Y08RDtN SuY3DzwsrtyNhgtH3HtOUVt0+jyYI9ELECng0pmMzgohBR2g9GsKCY0pJiOfV2deqV64 0gYw== X-Gm-Message-State: ANoB5plduhbVWG7q4MXoqHsIhVJZlWE00hUORQh0fHi05JifUKHpuiSC rQ+ccg+0leh/CpgAqMssjm+I6wBKT9kIzBuxtWJ9PA== X-Received: by 2002:a81:7909:0:b0:36f:d2d9:cdc4 with SMTP id u9-20020a817909000000b0036fd2d9cdc4mr54837574ywc.380.1670060336538; Sat, 03 Dec 2022 01:38:56 -0800 (PST) MIME-Version: 1.0 References: <20221130155519.20362-1-andriy.shevchenko@linux.intel.com> <20221130155519.20362-2-andriy.shevchenko@linux.intel.com> In-Reply-To: <20221130155519.20362-2-andriy.shevchenko@linux.intel.com> From: Linus Walleij Date: Sat, 3 Dec 2022 10:38:45 +0100 Message-ID: Subject: Re: [PATCH v1 2/3] Documentation: gpio: Add a section on what to return in ->get() callback To: Andy Shevchenko , Kent Gibson Cc: Marc Zyngier , linux-gpio@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , Jonathan Corbet , Hans de Goede Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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, Nov 30, 2022 at 4:55 PM Andy Shevchenko wrote: > +The below table gathered the most used cases. > + > +========== ========== =============== ======================= > + Input Output State What value to return? > +========== ========== =============== ======================= > + Disabled Disabled Hi-Z input buffer > + Disabled OS/OD/etc Single ended [cached] output buffer > + x Push-Pull Out [cached] output buffer > + Enabled Disabled In input buffer > + Enabled OS/OD/etc Bidirectional input buffer > +========== ========== =============== ======================= This looks about right to me, but we need more input, Kent? Yours, Linus Walleij