Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4853179ybc; Fri, 15 Nov 2019 11:06:58 -0800 (PST) X-Google-Smtp-Source: APXvYqxJFSVOj4fDG+VsUr65PXLXVRSThiq4gnZHarPZMTmNMh1eQ/XYYblBDNdQItvgIFbaDrnq X-Received: by 2002:a17:906:1f44:: with SMTP id d4mr3042090ejk.16.1573844818194; Fri, 15 Nov 2019 11:06:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573844818; cv=none; d=google.com; s=arc-20160816; b=x0edJaW2rswphNTbt88tNS/W1Ugjo39BGHf2z0gIkai/rxFXIStw6HYrXEByT3axq2 sVGVxsM7mRvGhaTjdHt25B0RYgLicUILJ/I9ktHHxhXnseBe2YAokzWafEVpQxKuffcj 8/F47UBczyVKAY3Smav7WfDVwEpiLx83ftA/saKUzwvFqOJsJCsSlgPb+ziM98Qha/+N qBZKy/4BuakA0irpL/xILkvwpzFe76TzrSTZeqHPHwJELklrSYGZSFcx/e6vOsxE+aZL dYS5hY99cf+cBJZONc9SkC7y+eREYK+AA01emiJv/0t/mrRGYsznMVuLGYHya94HelgE IBGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:from:subject:to:cc :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=chB2lQnb1vKf6uRpoFg4TNMaaJ55sC12hmBK3aLqszk=; b=w27Bikn9mDcCULy63wGvovMZsT7B8F1Vqzpx3wRGdWzwnbMzvyw9Ua5xT9CjBLs2dt 12jkYIT2qbBDKEPqVZR2d5aeqKDeb2UcFCH4egzA7IGK9luOFxEKFjkpumyZK80xBzl4 zzX9BhoFZhpat2Ce23VfyLSBZJzYwzyVBZrn1Q+7RWwMy5uyFz2eF/lR0c09qfDBbvax LTOob6XA7RSidrNBnfgwC352GRmU+/9qBxyjVr63BePtTGc4X8HX5V9AvHNVN79pBCs8 zUWPe20XxSfR91ugVe3C6JHS5r/g43AZmAuUG5gwTb0qqop1D/f/KVEYJjMyFLi6Miqs S8nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CUSxb6sB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pv22si6179924ejb.337.2019.11.15.11.06.33; Fri, 15 Nov 2019 11:06:58 -0800 (PST) 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=@chromium.org header.s=google header.b=CUSxb6sB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726755AbfKOTE5 (ORCPT + 99 others); Fri, 15 Nov 2019 14:04:57 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:42295 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726365AbfKOTE5 (ORCPT ); Fri, 15 Nov 2019 14:04:57 -0500 Received: by mail-pl1-f193.google.com with SMTP id j12so5277525plt.9 for ; Fri, 15 Nov 2019 11:04:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:cc:to:subject:from:user-agent:date; bh=chB2lQnb1vKf6uRpoFg4TNMaaJ55sC12hmBK3aLqszk=; b=CUSxb6sBP0tmM7Gz09I+t2pSkfmXJJ5uYumzrQWDVLlGUYjIVifbUzC5RHb10KDmfi DwX59hSZ6iHXfAX0ex2CuQCpUCVOjzdjGPDPWg0aqAu4DJhSPmY1C1PjtzJPAj0fsVti otIJXEuw3oRwmbk4WtqJcwQWAVhrvdO5wkShA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:cc:to:subject:from :user-agent:date; bh=chB2lQnb1vKf6uRpoFg4TNMaaJ55sC12hmBK3aLqszk=; b=ZK5z2KJrFHck+aQcAHkXphlPRPzaEVaAsY+Yot0aXZk/F2kTpG2SBGRETkW7lTIopp sUm99fJenZsu2DUy94gdvyAo0XvKt9qLliqIDtXZRHhzmERYrerBbp4Gy8/a9IdNGTpU MHSXgUMnhxZCkaDtcje7ZPpjOMV2gk+juHOCang5CZKKalQUabMN53riVcjEzrMlQalH 191oN4Px+7sACNWmeTrTC6NQrmWz1n6o1SCvZZx7siS06XTupe6y2y0Y+KTbtOrje6aM qwUKHtwDkaOvKTUZPg2GdatHCDtK6+Kqhjhc+CScrtgoD2rIunldDDNMI82atWcTewBv ZYNA== X-Gm-Message-State: APjAAAXxPpZ3bc3Wo775cwSZ6sepb+YmIBSpbTjFVS0uR7ilHu+E0Rqe uUiAV4Ft7V/XA0X4uwH2lsMXWg== X-Received: by 2002:a17:90a:f0c8:: with SMTP id fa8mr10937962pjb.90.1573844696718; Fri, 15 Nov 2019 11:04:56 -0800 (PST) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id v23sm10902782pfm.175.2019.11.15.11.04.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Nov 2019 11:04:56 -0800 (PST) Message-ID: <5dcef6d8.1c69fb81.c72c8.050f@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1573756521-27373-7-git-send-email-ilina@codeaurora.org> References: <1573756521-27373-1-git-send-email-ilina@codeaurora.org> <1573756521-27373-7-git-send-email-ilina@codeaurora.org> Cc: evgreen@chromium.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, mkshah@codeaurora.org, linux-gpio@vger.kernel.org, agross@kernel.org, dianders@chromium.org, Lina Iyer To: Lina Iyer , bjorn.andersson@linaro.org, linus.walleij@linaro.org, maz@kernel.org Subject: Re: [PATCH 06/12] genirq: Introduce irq_chip_get/set_parent_state calls From: Stephen Boyd User-Agent: alot/0.8.1 Date: Fri, 15 Nov 2019 11:04:55 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Lina Iyer (2019-11-14 10:35:15) > From: Maulik Shah >=20 > On certain QTI chipsets some GPIOs are direct-connect interrupts to the > GIC to be used as regular interrupt lines. When the GPIOs are not used > for interrupt generation the interrupt line is disabled. But disabling > the interrupt at GIC does not prevent the interrupt to be reported as > pending at GIC_ISPEND. Later, when drivers call enable_irq() on the > interrupt, an unwanted interrupt occurs. >=20 > Introduce get and set methods for irqchip's parent to clear it's pending > irq state. This then can be invoked by the GPIO interrupt controller on > the parents in it hierarchy to clear the interrupt before enabling the > interrupt. >=20 > Signed-off-by: Maulik Shah > [updated commit text and minor code fixes] > Signed-off-by: Lina Iyer > --- Reviewed-by: Stephen Boyd