Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8243380rwb; Tue, 6 Dec 2022 16:15:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf4pMzROwkqEHfeSqH2nJIkz0EEN/2nF+6F+TEmDkvUvJD5kIWP83aWYW0DisrgksMxeC+9q X-Received: by 2002:a17:90b:892:b0:219:b79d:c308 with SMTP id bj18-20020a17090b089200b00219b79dc308mr17410429pjb.69.1670372149485; Tue, 06 Dec 2022 16:15:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670372149; cv=none; d=google.com; s=arc-20160816; b=lxXQjp1k4eRcxy1j8bzBv/CH46HYgqhTputdWxzBCGwLz83Z7WpDlRNJace4FUC6/3 7B1JJQ6e7vIc/ryPskpnp/A9/JOQLbaoOHV+XdURXdOwXeNBjUcTfPLR17ygVOgBdA2p qVsmyW3kguCbZI+vtOoLGceQKGiy0ttgp1ihhCzAL6ZctwlIjQAeK/wYIJo547UMSJqF 0Br9TooirPGn+TODAqIdNQcUT/LTjx89iXNyfZxX+fpQyWkozYhZkBWEzc/5CRvF4NC3 BPbmx/YWcHSNz5L+LeHgw2SLy2P9w0txvakwzDAG8kS2rmMsGLJj7O0ZjUGWUZq9x07M HH6w== 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=HXgLDr1n/+xAVukg6gKX/0TpU9mRimvh3G5TlxnBz6g=; b=tqOS3zZTA043ccS5vsdpvS3B8cTHq1zPv5zYckbUJELbC6okmulrjzk0xuJuzCtFkS axdFqbG6wFLL+jcETEDswC6GIzLdl5cdPg7+LqfKZZM3nJL2bTAojYNnuWXLty2XWxSR xX42cWOoBc4GILz5bAHjYeY4daoQ70C7usVKFZII1icwhkpj/AvIJRTiPkRDR5QH6ODK +asPRqIqElhoc32eTNDjSBQ89fOTvkXVsg3rcRJNUP5cGRVznErxtQu0G4ZWYg70KdR8 IYICsswxs0BO9lqxGXwqmkJpghO6oHA2D17tMgwdvxVB9GK8rdv/mM94xrpaa9A7q8/5 P7Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=exXeum7w; 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 141-20020a630493000000b004785b00c5b7si19039875pge.143.2022.12.06.16.15.39; Tue, 06 Dec 2022 16:15:49 -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=exXeum7w; 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 S229629AbiLGAHE (ORCPT + 77 others); Tue, 6 Dec 2022 19:07:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229743AbiLGAHA (ORCPT ); Tue, 6 Dec 2022 19:07:00 -0500 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6847F1002 for ; Tue, 6 Dec 2022 16:06:59 -0800 (PST) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-3b5d9050e48so170086107b3.2 for ; Tue, 06 Dec 2022 16:06:59 -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=HXgLDr1n/+xAVukg6gKX/0TpU9mRimvh3G5TlxnBz6g=; b=exXeum7wqVGnbRYbAY94VKseR8t66PoiNTCRjhOGL/vlm2QFvt3vuqCTXZGjwEKndU OmlWvpPP7jQLFPDVRSdkBN4AvuazSC2Ms4+zr/ZinuI5FdHTdaprcsJIbtOIehN7ZHEO gjRrhK3l9HMImsfvw4e72Et0ELcVyvvq3/bQDlRtCt3LlHJYP38mqb9pUm3dNsR/bx4r Jp68TCQNz6gaVaSfi0rl9oOrawK/lPrzGdraukItASK8mYqeSredcJ7NTN30kAdxMmiD Vq7RKEbvEneN6XNwKWQm7cuGUlYTzWrfOYcHnLoqgz/0IwEO3JHSaAzWoHuELVrv0/vD x3uQ== 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=HXgLDr1n/+xAVukg6gKX/0TpU9mRimvh3G5TlxnBz6g=; b=gjEBLQurEz819D2kKyN2VwioKP0nG1e5ME03yYIljKdUlwOfjvpsV+wZw/swlfoqKY G4hPiYXPlkKCoHPE+a8NOx5+hGSl8EJDLqiyZPBZ4eEIkzZEBD4AGc4T3A4rpxe4FL4H b6VZAqcdkO571QNeSRJCSUvgOwTkEDHiHmxW45qKs/mMeBOVtoO4NYsYIWFJ5+VoD6sU gZtB9HlQQrg4KVX6zkZ6JyxZvmTryfTEUpN6m4dppmDg072JYvHQKVDPs6neIlsOg3n8 3nlnkyn+rIvK3sJ0p67QsvvBtCS4DGFGSVOO4wHq+Zw8vMl81LLWiPFeREYBd0owy1oC PReQ== X-Gm-Message-State: ANoB5plTNAkqBVgiovkPJY8hclkKaopoVI42eOLzi/JrthoYBwasfxmQ j56naByM5NdrsiDXzG/tzj779ir17ZVQZ12erEOSlw== X-Received: by 2002:a0d:d751:0:b0:3e8:76df:4afd with SMTP id z78-20020a0dd751000000b003e876df4afdmr14015886ywd.380.1670371618632; Tue, 06 Dec 2022 16:06:58 -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: From: Linus Walleij Date: Wed, 7 Dec 2022 01:06:46 +0100 Message-ID: Subject: Re: [PATCH v1 2/3] Documentation: gpio: Add a section on what to return in ->get() callback To: Kent Gibson Cc: Andy Shevchenko , 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=unavailable 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 Mon, Dec 5, 2022 at 2:43 AM Kent Gibson wrote: > My preference would be for the driver API to be extended with a new > callback for the output buffer, say get_output(), and have the existing > get() always return the input buffer. This has a certain elegance to it, as it cuts to the bone of the problem and partition it in two halves, reflecting the two pieces of hardware: input and output buffer. Also follows Rusty Russells API hierarchy. Yours, Linus Walleij