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=-17.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable 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 5AAC8C4338F for ; Wed, 18 Aug 2021 11:00:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 41AE860FBF for ; Wed, 18 Aug 2021 11:00:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235007AbhHRLBT (ORCPT ); Wed, 18 Aug 2021 07:01:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234748AbhHRLBN (ORCPT ); Wed, 18 Aug 2021 07:01:13 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44187C0613CF for ; Wed, 18 Aug 2021 04:00:39 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id n18so1850792pgm.12 for ; Wed, 18 Aug 2021 04:00:39 -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=8C/in0krB+riQ0eZSSRSdP7EkmxB2WMWHtktCVN2wqQ=; b=B5S47QTtJ0TKz8xiiW7dUEgvBk/vW8gRuxTgStnQ8EQW3frKYCeVls+9FSzj3XDjgk pAHkPji3llkZ9ZLm4Q1xaT9Hk6mT9InN0qWbbvf4AcoK/cnXWKVtqy0NcghLEQSAvuwR MPpQlYin/FFiPKtv3dzH8O1j61FhMZ2JMGVC2m5lIz8Ki3K9w9fXOTPvbkwj6+wcH1Dx rysSEZ9J2Y61NCGVP6+WFCaIGqtqLumGAUkz63dS/kW7tR5crCwrxJVR7hHbrTYB60LM ZhTHvDu/ozuEjX3NzN1S1Bdu1eiYWzR/HpQMgEiKbzO+Kgp8heriROilo1G7o0bY9zdh HUKg== 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=8C/in0krB+riQ0eZSSRSdP7EkmxB2WMWHtktCVN2wqQ=; b=WpNj4U5w0gmmp4C5ChdLd5isl5ulfyQSvYr/sC0gq4QA+KZXkwZcYyzc5ynzdFTS2Y b+MUOqEHgzmBV39eRuGXjD9F7pIlIUJEsHg0PKk4VWFPxTFc1kJce0o4l8klSKQhBo9K CA+QT9uq07jKX/0A4H6MBivcjiU3itgqlFGkFy/3KLvhVIo2EPG1y5iUlXiXOAJkuens sUjoqFViqi44AwJ2osIxgzB4ACctVgpHWC38qkQjyowpk2XWuRHNQ5veRsXS4wz6v9bO YAHp1Y1VDuvxikHb4ttWc7/bQKkQ+UGxf2Nnb5C3Hm7026Kz7NETn5WKCT2VXAGQOnzE q0yQ== X-Gm-Message-State: AOAM533xoNZUzoRSi+Ir/eV8rGTZBpVacOwPNUeyE89T5XXNGu2YVnsG wYkg3kZg9DSj1qZCBDIvR2swtg== X-Google-Smtp-Source: ABdhPJwcDoOFfIzbJ+GjtEmN+5qujYZSrtK6wkrgL2lusIyF7Rfn+jMrdM3OuvseOINoaBvZjckVFg== X-Received: by 2002:a05:6a00:238e:b029:35c:c5e:b82d with SMTP id f14-20020a056a00238eb029035c0c5eb82dmr8785069pfc.33.1629284438811; Wed, 18 Aug 2021 04:00:38 -0700 (PDT) Received: from localhost ([122.172.201.85]) by smtp.gmail.com with ESMTPSA id gl12sm4938471pjb.40.2021.08.18.04.00.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 04:00:38 -0700 (PDT) Date: Wed, 18 Aug 2021 16:30:35 +0530 From: Viresh Kumar To: Arnd Bergmann , Marc Zyngier Cc: Vincent Guittot , Jean-Philippe Brucker , Bill Mills , Alex =?utf-8?Q?Benn=C3=A9e?= , Cornelia Huck , Geert Uytterhoeven , stratos-dev@op-lists.linaro.org, linux-kernel@vger.kernel.org, Thomas Gleixner , linux-gpio@vger.kernel.org, virtualization@lists.linux-foundation.org, Linus Walleij , Bartosz Golaszewski , "Enrico Weigelt, metux IT consult" , Viresh Kumar , "Michael S. Tsirkin" , Jason Wang Subject: Re: [PATCH V5 2/2] gpio: virtio: Add IRQ support Message-ID: <20210818110035.w6o2gpx5af5x2gm2@vireshk-i7> References: <96223fb8143a4eaa9b183d376ff46e5cd8ef54b4.1628590591.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <96223fb8143a4eaa9b183d376ff46e5cd8ef54b4.1628590591.git.viresh.kumar@linaro.org> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10-08-21, 15:55, Viresh Kumar wrote: > This patch adds IRQ support for the virtio GPIO driver. Note that this > uses the irq_bus_lock/unlock() callbacks, since those operations over > virtio may sleep. Also the notifications for the eventq are processed > using a work item to allow sleep-able operations. > > Signed-off-by: Viresh Kumar > --- > drivers/gpio/Kconfig | 1 + > drivers/gpio/gpio-virtio.c | 301 ++++++++++++++++++++++++++++++- > include/uapi/linux/virtio_gpio.h | 25 +++ > 3 files changed, 323 insertions(+), 4 deletions(-) Marc, Will it be possible for you to have a look at this patch, it will help us understand shortcomings of the specification better and this implementation as well. Thanks. -- viresh