Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp836605ybe; Fri, 6 Sep 2019 08:03:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHkiHbZGb80oAfrXN5B4UTCYZHTP+P7rMGc92fhCxyqMeM/M22b0q2LHybQFSGNggw//qg X-Received: by 2002:a63:2744:: with SMTP id n65mr8249747pgn.277.1567782217928; Fri, 06 Sep 2019 08:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567782217; cv=none; d=google.com; s=arc-20160816; b=Rk5q2c0HhfCtT/gMJt7N98F+vMuQXsj70dc0QpCV0nx6ot3dK8qiOa1Z+FmMilQZE/ 0tkRBEqa6TYlczj7VBcxj/X18+UD9Qp6hDPD5aIhI7AvgXTjmaZMWN9QaL96SLfJbBf4 JFlZ3P30YzUQX03F6Yd0VYIaryT1oPmQDC3rR+vcQUI+9wYsRdSgh6preCTM9invNbve +E4G6XEpxUDwNqtMxuQpGnNJhqBKyH40AWoh86OJQZWWQ1yB1byEdN3pgwVh3mmH4sZO mio0UiQ39hoZWujsGlX10jl2KXZDkfb/aKTSGdGj3tFb3w0OWqzxSHodVV5jOuZlZrhH JskQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=6KqmT8syrdyfuplWoE3tb+OPvwSisjgCR52E36aZRAU=; b=bBN4ymhdkqTY7+k1iiDVutcHJpbwJK9gveSlfKgp9tCKsH44leUwM0dtuOil2TSNj6 kcO/1Y4AbrlS5p/wLj0pZTkisSgJNkWZCTRnzIYCIybDRLXcRpDjzfHx3rHBLfSYmjmF RqIamCP5tI89ZF7ghda+3lw4e++tZcvPIosVc/Bof9/vcWrf+s8/AgzF4zKo249TpLDI pfwQAmFlBj9dmXMgMOfjc7nhwDn3537kaq18WzBoWTgf5Ma0T4HOrvWlxt1EJ7SAbjIr 2/U/fnnY/23eN+mzWu5kktfAGv2tjnbBHsQ4ryHux6c8rBVO2XWTlSzaLsA9tUtXAdaf +3xw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b190si4681654pga.105.2019.09.06.08.03.20; Fri, 06 Sep 2019 08:03:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393233AbfIFLJx convert rfc822-to-8bit (ORCPT + 99 others); Fri, 6 Sep 2019 07:09:53 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:40942 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731527AbfIFLJv (ORCPT ); Fri, 6 Sep 2019 07:09:51 -0400 Received: by mail-ot1-f67.google.com with SMTP id y39so5341311ota.7; Fri, 06 Sep 2019 04:09:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=YjIOTnA7AJrnGQlF0RtRVuR7iIuADp5iAhDiCUvFbDY=; b=RsTS3VcxF55/+90ijx30BBcgmTMDLDJcPW2gE/p8rcYNRNamg8aaKkVQldvzDht5PM 7xuua/7XK8Nq+SbjZVOe901eYb6z54Eve0ioYJtlxvFf0eG0yjUmjAnNC+NT62Y1QzRB Jjk7hxGtGY8OVQE8cftrMhKIhEVLirmpD5OslKJdkt1Plhl0K+4EMGBawDIe6pPpeRjU R/pFbRQC+hNL42JWaC9LVwT1ae0H9i1Oigd0o7iURelqJDcvbKzE3z9BF71j8W+LAQ77 uBiTc7ZECucv7fVDWXs5TkYy7fwe0/YfSrVIMId85UFnwpqDbNBiiHkdSo70T4T1lGKL G2ig== X-Gm-Message-State: APjAAAWeEoU31d3ZGKoHuPQ5h6RoHE8wC/sPZ7dUG8noMbeJVtoUylBj oz8wBrYRMo3I98elF/eu9EcBf5v9PFqbx8LeDGo= X-Received: by 2002:a05:6830:1196:: with SMTP id u22mr6795961otq.39.1567768190812; Fri, 06 Sep 2019 04:09:50 -0700 (PDT) MIME-Version: 1.0 References: <20190705160536.12047-1-geert+renesas@glider.be> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 6 Sep 2019 13:09:39 +0200 Message-ID: Subject: Re: [PATCH RFC] gpio: Add Virtual Aggregator GPIO Driver To: Bartosz Golaszewski Cc: Geert Uytterhoeven , Linus Walleij , Alexander Graf , Peter Maydell , Paolo Bonzini , Magnus Damm , linux-gpio , QEMU Developers , Linux-Renesas , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 9, 2019 at 4:59 PM Bartosz Golaszewski wrote: > pon., 8 lip 2019 o 12:24 Geert Uytterhoeven napisał(a): > > On Mon, Jul 8, 2019 at 11:45 AM Bartosz Golaszewski > > wrote: > > > pt., 5 lip 2019 o 18:05 Geert Uytterhoeven napisał(a): > > > > +static int gpio_virt_agg_set_config(struct gpio_chip *chip, > > > > + unsigned int offset, unsigned long config) > > > > +{ > > > > + struct gpio_virt_agg_priv *priv = gpiochip_get_data(chip); > > > > + > > > > + chip = priv->desc[offset]->gdev->chip; > > > > + if (chip->set_config) > > > > + return chip->set_config(chip, offset, config); > > > > + > > > > + // FIXME gpiod_set_transitory() expects success if not implemented > > > > BTW, do you have a comment about this FIXME? > > Ha! Interesting. I'll give it a thought and respond elsewhere as it's > a different subject. > > > > > + return -ENOTSUPP; Upon closer look, this turns out to be a red herring: gpiod_set_transitory() converts -ENOTSUPP to zero, so there is no issue. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds