Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3583245pxj; Tue, 15 Jun 2021 04:17:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrEsec+T7Qpd41vh5cEAdqvJ+jaLL74eETQ9O66l+/xPqc+niPdy9ouEtEFTLk9GriPpGO X-Received: by 2002:a17:906:dbc4:: with SMTP id yc4mr1807207ejb.119.1623755850422; Tue, 15 Jun 2021 04:17:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623755850; cv=none; d=google.com; s=arc-20160816; b=pGeVGmbziEypGs7Aj1ajkpi2d2L1LmC/XarXC1nZrR9mCGNpgbvEUMxjvJCwJ/CEGF 3/i8x7OLL4YRu3b1avKSi0qeTkbgZlRZlBlj4b3XfrtFXfQ316Rcd7pCihuPDPpXUvXc I1pNpYCTuvYTBUk3Pjo3/cLhMMPBae6U5nrXTu2jA7tyitk70D1azSKUSDuAGwvbIZGc CajIcrl6DThiwnSpzhAL76Ico2jMHO3aHtBZZJIXchhltJPbLsmj565yHiU5EJZtWhBS YUsZ1ePTkRwdUCApuan8V61PcIC7saB37Wt2iEm9aZLbAQULRBHiAMGiPdwDeTvVFEl1 O8rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=i84JjlRo2D2f/v7VuRGvpKj9m4FZoDnu564HcAYYGaY=; b=kJfcAn6nBZgAtK7b6qJX92RLmIqRT+Hi5YnbdkJHYmc6L/xtd1/qAbOk9FQl5fV//p gQh5f5DkISh9KaNK1fETQHkOT8emK04To+2Ebb0a+S5wQ/nT8JZ+UTT3FoFGvK9udul+ op8u0oeTJk5hUalLqnbb7phpbXSP0Hu78PtlKwLbNwLzqjr+GOKaZaVo0EAWCV+v3Fxm Ap/Lq22BOyQxAx5mZk6F/AYwEnhei4lLJ0TRFYRwHUdpA4Q2BMiNgiuzFs+sMxjnpjl7 3EaRxDDS9X0MLSyW+LAgT48v/Rl7IqgUWtvsOC0EY+acbjTjt4nT4LsvdwAt1bsD6TkH S0XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VTHFnc+4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si4491430edd.381.2021.06.15.04.17.07; Tue, 15 Jun 2021 04:17:30 -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; dkim=pass header.i=@linaro.org header.s=google header.b=VTHFnc+4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230319AbhFOLSC (ORCPT + 99 others); Tue, 15 Jun 2021 07:18:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230288AbhFOLR7 (ORCPT ); Tue, 15 Jun 2021 07:17:59 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32B9DC06175F for ; Tue, 15 Jun 2021 04:15:55 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id h12so8290872plf.4 for ; Tue, 15 Jun 2021 04:15:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=i84JjlRo2D2f/v7VuRGvpKj9m4FZoDnu564HcAYYGaY=; b=VTHFnc+4SnsSRV0D5jDxumRtE49WlOQLlikQFoE39XX8Wb5j25weHyQksV4/4Bn/f/ 2BlH2QShf5TXe7zDKdkjS+Gs3tE+RPTxzPeLwN6/cgZpqkATlyaJxVgB4UH0wPf327ZK 3sg02GpQY+QtWBfJzL0HKJd0UvY+5w37Y3noV/Tr0+AqPol3BIvomuMAHNODERgZAoqL i/Vs7+tAbxxbfDyLn0N9FCKTiBr4s+0yLA7s9wxgR5BNyxKwXe1WIRfmXQ9vO7+XwMz+ fRkr+bY9h/tbHmcW6rwAiRQ/L8eR4C2H9AUb+8oXl5chJm9EhUjEwS6TWkLgYkE2AW3p 2uvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=i84JjlRo2D2f/v7VuRGvpKj9m4FZoDnu564HcAYYGaY=; b=kVQNbHkOIGoLLyTwPziN9ruupJranPQGD6y8SY7Y1m76hYkgk0yOZBsm+rXWNStNog JJ6IvygKeGJ87YspdjCVPg+7CBPqrR3bC6rJ++NdjqZtIbZ9i+X2cMURqgu8qsNRdNPK ciAL7DF8JzRhUpwSBoiFTyNNu/ni8HUJ+u/1wg10GPJXhhQzjXg2bnkJHHBJQRVZyhqt J3QNrBSUBLXc2b4ESu9LiJaH3OkLD2jOFmIwks9Vco25cISqMhFacCFvFclKpK3eDxpc SGiNzetzl74RN12cvddHl46ykbBxaDkLrhlY6PCpYUzy90Ig0mXYnmJbk1+na79Rhy5h Lu2Q== X-Gm-Message-State: AOAM531x38e400uCzrulXlntc582nuNgPNPW3VMDf0bJ0bMyXm2vG7yG y3VrGphdV7KG+4TerTyg2JFk7Q== X-Received: by 2002:a17:90b:2504:: with SMTP id ns4mr4466637pjb.39.1623755754669; Tue, 15 Jun 2021 04:15:54 -0700 (PDT) Received: from localhost ([136.185.134.182]) by smtp.gmail.com with ESMTPSA id g8sm15949343pgo.10.2021.06.15.04.15.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jun 2021 04:15:53 -0700 (PDT) Date: Tue, 15 Jun 2021 16:45:51 +0530 From: Viresh Kumar To: Geert Uytterhoeven Cc: Linus Walleij , Bjorn Andersson , Bartosz Golaszewski , "Enrico Weigelt, metux IT consult" , Viresh Kumar , "Michael S. Tsirkin" , Jason Wang , Vincent Guittot , Bill Mills , Alex =?utf-8?Q?Benn=C3=A9e?= , 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 Subject: Re: [PATCH V3 1/3] gpio: Add virtio-gpio driver Message-ID: <20210615111551.7tcz7teqp4olhodf@vireshk-i7> References: <10442926ae8a65f716bfc23f32339a6b35e51d5a.1623326176.git.viresh.kumar@linaro.org> <20210611035623.z4f2ynumzozigqnv@vireshk-i7> <20210611080122.tlkidv6bowuka6fw@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ? -- viresh