From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 253AEC48BE8 for ; Tue, 15 Jun 2021 11:37:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ECB4460249 for ; Tue, 15 Jun 2021 11:37:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230269AbhFOLjw (ORCPT ); Tue, 15 Jun 2021 07:39:52 -0400 Received: from mail-vs1-f44.google.com ([209.85.217.44]:34428 "EHLO mail-vs1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230047AbhFOLjv (ORCPT ); Tue, 15 Jun 2021 07:39:51 -0400 Received: by mail-vs1-f44.google.com with SMTP id q2so9600903vsr.1; Tue, 15 Jun 2021 04:37:47 -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; bh=dEMwKaBtIH7S3fAHfNJawJ0VDIFQVTRz5VU7710Dgcs=; b=B+0zDrwsNnKxdnPYBuIeYJBCvXer+SpPMtRQGVQTLKVTv3fNWk4QgI0C4Wf41vskdI cJiqaIQ9ohZse7DuX2+Q4rsv+whkef7HR2QuThVLsn0Iw5bb8vfAkxe5Ew21fWE5t61n AyxCdg2QzAaNAxv5HGEwt13DfqKzwMopaVYImBj3aMBbTJfwAM7iC7LCmhVulAia9xqn k4RFPRiH9KEWI2z3zMvF3RxRddvS1L+P78mW5ORnQBwi+hXVRgaSiB7hXfeSNA5H9SaQ ArBqNSvQQnxBqDe1VbYM7C/VApLZBTk2kVYnkclmBxWnIzWq35Z4fItggVN1niRYZNv+ ugxQ== X-Gm-Message-State: AOAM533RwyKuTgarMNSJGfsho4IjYkT8xB2bZdZcZq25DN5/odh69WvK Jh9tY32vdlfx8oTiM7BLKYluNF05Fa8I8KteliI= X-Google-Smtp-Source: ABdhPJzWu0ZzQHuXV4PYNLkuX4/zyAG0cMCexlumQE0LzgSqdbPE35wZuXi0z3ynFv+/B+I3sIMNXeQKnTb1W0uliBA= X-Received: by 2002:a05:6102:c4c:: with SMTP id y12mr4274193vss.18.1623757067039; Tue, 15 Jun 2021 04:37:47 -0700 (PDT) MIME-Version: 1.0 References: <10442926ae8a65f716bfc23f32339a6b35e51d5a.1623326176.git.viresh.kumar@linaro.org> <20210611035623.z4f2ynumzozigqnv@vireshk-i7> <20210611080122.tlkidv6bowuka6fw@vireshk-i7> <20210615111551.7tcz7teqp4olhodf@vireshk-i7> In-Reply-To: <20210615111551.7tcz7teqp4olhodf@vireshk-i7> From: Geert Uytterhoeven Date: Tue, 15 Jun 2021 13:37:35 +0200 Message-ID: Subject: Re: [PATCH V3 1/3] gpio: Add virtio-gpio driver To: Viresh Kumar Cc: Linus Walleij , Bjorn Andersson , Bartosz Golaszewski , "Enrico Weigelt, metux IT consult" , Viresh Kumar , "Michael S. Tsirkin" , Jason Wang , Vincent Guittot , Bill Mills , =?UTF-8?B?QWxleCBCZW5uw6ll?= , stratos-dev@op-lists.linaro.org, "open list:GPIO SUBSYSTEM" , linux-kernel , Stefan Hajnoczi , "Stefano Garzarella --cc virtualization @ lists . linux-foundation . org" , virtualization@lists.linux-foundation.org, Alistair Strachan , Wolfram Sang Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Viresh, On Tue, Jun 15, 2021 at 1:15 PM Viresh Kumar wrote: > On 11-06-21, 10:22, Geert Uytterhoeven wrote: > > The same reasoning can apply to your backend daemon, so when using > > the GPIO aggregator, you can just control a full gpiochip, without > > having to implement access control on individual GPIO lines. > > I tried to look at it and it surely looks very temping and may fit > well and reduce size of my backend :) > > I am now wondering how interrupts can be made to work here. Do you > have anything in mind for that ? > > GPIO sysfs already supports interrupts, just that you need to register > irq for the specific GPIO pins inside the aggregator ? So far I hadn't considered interrupts. Will think about it... 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