Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3598687pxj; Tue, 15 Jun 2021 04:39:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2TetdJ6y5wvSqcWbINkmyvW7wgX61WPS0K1vebwxZEruP0mUhtjGAb3GJoYLrL3Mgom+4 X-Received: by 2002:a05:6402:1c11:: with SMTP id ck17mr23551443edb.102.1623757158382; Tue, 15 Jun 2021 04:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623757158; cv=none; d=google.com; s=arc-20160816; b=XbcD3jvkIZ8t5BEOZ5vQpKWG8zd0MxqH4ebl1tei44IG5pbkF/jBoQ9PenUtLz1OGo FffW1KnnVTH3SeAwurj3+svYHf7lscIyswlcyovn5i5kGNlyBCF1qSk6nexyV6CVfpQY 8H6h4m23TJRlwdVA+sPYoVJdLf+KDRF9IsbNg0TmlAgTP3a/fbHAEmqOJGGJR4AChkNE f0aLP9X3POfj6mRJxWuzUySFQDFkqoPpmda9CetYAFNZj8/54/mO6uJhzMLTxGjc7tAv YlUYCGv4qAXgwafEPFxJatMneRXKpVqSWHNrjt2u5/mLsbvRdaKlf1b6WSi7vO/HTVPX uyfw== 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; bh=dEMwKaBtIH7S3fAHfNJawJ0VDIFQVTRz5VU7710Dgcs=; b=iNH84JGAXSEq/9a8paRX0jiFYUakQqjrORR6VWgQ5UuL3Da+BSwWmhGZ76aelL6d2A gVPpEvCQpv44s/vsMvJZIWH5SkfxrYUkPleIDEpSEHk3M4BcdaxGB+nM/YAsHCHSeaVy 1whAQDam5DJ746lXhnkNJDRgfWiSQFYD3bDNE2fgsrhp33rKDMW1yMXf11q9QYba65gy lVGbA2lWfldp/iJvy+52v3UreLLn9eZgYrRp/E0U99y3W+SApUDCeZve/qoSEzyQmvDX fPWG4fGbR0c/mad8jVj5mqGHHNDcC0pQj0eNXV1itSMh7qVHRadMJ9Cz4YoUjZTo/mmr kZLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q5si14603580ejt.588.2021.06.15.04.38.55; Tue, 15 Jun 2021 04:39:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230246AbhFOLjw (ORCPT + 99 others); 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-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