Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4325361yba; Wed, 17 Apr 2019 09:09:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgolJWgNcG6tOF7b4UYcT7ld8iKmGYYKePyjmn7Z26KFQrfvkULyxOFq2cm5lZCipBanL5 X-Received: by 2002:a63:6e0e:: with SMTP id j14mr82482852pgc.203.1555517371017; Wed, 17 Apr 2019 09:09:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555517371; cv=none; d=google.com; s=arc-20160816; b=b8zDQ84bcYHVAHVLC0yhKnSlWdU5TAkj0GKc19IzBB2yISHuUdRWiVWgHf6CHxv1cY rJeqnShJlSWcIeJnKOaIeXHxTYWd8C1RbD45BKgNgOfxTHuSYHRT/gf+76gCjJVmgW5E GdEtmeoXIAhtO8f5Mltunre0BFOz2MULTpA14SZnKXG0F2YymM0/xpPNLnXMv+n8IeoY TZXV96ojhU6YZpr2agVtvQ1bi1eFeAwuQSDyjp+a97bCwjFuYrDM4PLupU3iauWT5THX 75UL0V3LFEXS79tZVGPuhHOZKmpvuSi6Kxv4k1+CiyvMPGZDPG+bbR//+OZZmKq0srPK w9VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:dkim-signature:dkim-signature; bh=KzRxD1pKWNzxYP4rJ4xkPCMqaS9mdy5MXeQa7lnHIG0=; b=SZ8Pza+5g3UcheURp3vXFGWeSmbNnGnF8y7vF1hpFQNCbQi4hm714vnyDz4IQvW/8h vH+YDHSBXM4jYVhQ9V0ANfoOII/HhiSSXzLIHQdZVumeS15zQ1r+XpeFkBMGOENdgFDi WHvpxweH3yfc6e9a/SmL8O5tILIrMTm8quJLXuWf6pZ4p46E2uXuSOHv/PWpMYO552cj 0+ppmMVIGRHe3+r+4v8uxD8KYFR27zdBUhPYiOXls0QxGrVwmPPP25/6Em7AeYluFGCq QFyV8ZqxNWER8HpmFSApVy/wUolBuGaQhiUMd0rn3cM9zbvQjtI4UaY79LgMTVVJIbpZ inMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=GqKBVhIz; dkim=pass header.i=@codeaurora.org header.s=default header.b=GqKBVhIz; 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 j30si51311598pgl.338.2019.04.17.09.09.15; Wed, 17 Apr 2019 09:09:30 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=GqKBVhIz; dkim=pass header.i=@codeaurora.org header.s=default header.b=GqKBVhIz; 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 S1732704AbfDQQIP (ORCPT + 99 others); Wed, 17 Apr 2019 12:08:15 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:52428 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731454AbfDQQIP (ORCPT ); Wed, 17 Apr 2019 12:08:15 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id B874460741; Wed, 17 Apr 2019 16:08:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1555517294; bh=cejLxVwclff3ws4tuXqtx6wPfxFNcTws1Knvj/BR/Yg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GqKBVhIzZXzBS0H+3ZtGNF6xDTluC6/daaRrs/Vzw0hmRjC/8/Ls3tSH4Y6U+EcgE IdayWe8bxWSDns/JyghacBqKWe0929LGwwXZN3iSXkz6JWajeXJQ25ZcAiy+CnfqOX Rk2wi3WoCbZ9aqkw3eBRboGQuWaoCAKTc0mzjhMk= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id D08B5602DD; Wed, 17 Apr 2019 16:08:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1555517294; bh=cejLxVwclff3ws4tuXqtx6wPfxFNcTws1Knvj/BR/Yg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GqKBVhIzZXzBS0H+3ZtGNF6xDTluC6/daaRrs/Vzw0hmRjC/8/Ls3tSH4Y6U+EcgE IdayWe8bxWSDns/JyghacBqKWe0929LGwwXZN3iSXkz6JWajeXJQ25ZcAiy+CnfqOX Rk2wi3WoCbZ9aqkw3eBRboGQuWaoCAKTc0mzjhMk= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D08B5602DD Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org Date: Wed, 17 Apr 2019 10:08:13 -0600 From: Lina Iyer To: Stephen Boyd Cc: evgreen@chromium.org, marc.zyngier@arm.com, linux-kernel@vger.kernel.org, rplsssn@codeaurora.org, linux-arm-msm@vger.kernel.org, thierry.reding@gmail.com, bjorn.andersson@linaro.org, dianders@chromium.org, linus.walleij@linaro.org Subject: Re: [PATCH v4 07/10] drivers: pinctrl: msm: setup GPIO irqchip hierarchy Message-ID: <20190417160813.GE16124@codeaurora.org> References: <20190313211844.29416-1-ilina@codeaurora.org> <20190313211844.29416-8-ilina@codeaurora.org> <155266731117.20095.4543997300651173812@swboyd.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <155266731117.20095.4543997300651173812@swboyd.mtv.corp.google.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 15 2019 at 10:28 -0600, Stephen Boyd wrote: >Quoting Lina Iyer (2019-03-13 14:18:41) >> --- >> Changes in v4: >> - Remove irq_set_wake() on summary IRQ interrupt >> Changes in v3: >> - Use of_irq_domain_map() and pass PDC pin to parent irqdomain >> Changes in v2: >> - Call parent mask when masking GPIO interrupt >> Changes in v1: >> - Fix bug when unmasking PDC interrupt >[...] >> +} >> + >> +/* >> + * TODO: Get rid of this and push it into gpiochip_to_irq() >> + */ > >Any chance this TODO can be resolved? > I am thinking of something like this. Would there be any issue in setting the type to IRQ_TYPE_SENSE_MASK instead of any one particular type? ---8<----- static int gpiochip_to_irq(struct gpio_chip *chip, unsigned offset) { #ifdef CONFIG_OF_GPIO struct irq_fwspec fwspec; if (chip->of_node) { fwspec.fwnode = of_node_to_fwnode(chip->of_node); fwspec.param[0] = offset; fwspec.param[1] = IRQ_TYPE_SENSE_MASK; fwspec.param_count = 2; return irq_create_fwspec_mapping(&fwspec); } #endif if (!gpiochip_irqchip_irq_valid(chip, offset)) return -ENXIO; return irq_create_mapping(chip->irq.domain, offset); } ---8<---- Thanks, Lina