Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3483002imu; Sun, 11 Nov 2018 16:07:25 -0800 (PST) X-Google-Smtp-Source: AJdET5f9YcL+q7kK2NbPgus+vRjkHc9HwezgxCftWRwXHJfSVE1cMR0987/WdLTDTFShFoqinHno X-Received: by 2002:a63:5442:: with SMTP id e2-v6mr15683956pgm.316.1541981245773; Sun, 11 Nov 2018 16:07:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541981245; cv=none; d=google.com; s=arc-20160816; b=uuuqpbEjepfNqeboYkbOt/W3Dg02R5EcrBYT2eXfYRGaiKnvoAGpWTVCR4n9Iih7NU eVAAJE+/ZpLOb3NnSGHZp2AWgzEFmw7JbF+8B5bsxSyLSE/sG1JxSxRtoim+k+xhh8Gt OrSpt2W2tcXVSfK6GxcuJBLNO+o2qds/zPS5ncLHfLFfIBVS0r3NDffP/Z6keG7EGgHC B7rBt8ngw9MiEn2LQzxq5tfuVoii5Ar5XSYOqylWIg/0o7Af3XkUp9553fhCrsA/kNx+ g7VYp8Rg5LgTF7ZMW7w6B+1kcNsz2drGboWNFVXbqPB4a3T0gnnkg7q3WgR8nFXNVsz2 HsFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=26CdL5sRMoH9/hmoQw1eGt9NGrf5XzHee+QZGu4smD8=; b=my/ppATy+s0NUTcbq9m0YVdkjAwcYsi5YIctvi9SIOsI2KOSdswglCgWvk8m8eqOQj /GpYTcFPyhlAcph+DQ8XSFLgVaPAljWIenPikSyhKwADGwQs+4LCnUe0HRrpgJ+1sCDZ O4Fx9CHbMF1bb1x38+1fCTD0rrUf0lTJrZnhcUgb10e1sHgSJzwlmy0lRsyEyp3jbcyc qod0+XWcsH11TLEbfDiF5CivkBlYV2flEsOmtoWHeWQgPX2DVaT1aEkf1sXzQdY8mlj0 p3MRjXJk62XsUdNEoT9n8KwW0l6U6SIi21Q1adVLPTP/0nV/av5JxB6oIc1pNjdDCABh kbPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iCLkfw0M; 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 t3si15270310pgo.585.2018.11.11.16.07.10; Sun, 11 Nov 2018 16:07:25 -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=@kernel.org header.s=default header.b=iCLkfw0M; 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 S1731923AbeKLIRn (ORCPT + 99 others); Mon, 12 Nov 2018 03:17:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:34236 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731856AbeKLIRl (ORCPT ); Mon, 12 Nov 2018 03:17:41 -0500 Received: from localhost (unknown [206.108.79.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5072921508; Sun, 11 Nov 2018 22:27:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975266; bh=u0dtmCwtqTh6aExnUVqTXTdsDRvzGKEWaGODn41TVyE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iCLkfw0McFynI7jwYvolWuG4/NEGiVvv83zEMPcZ/GeKGvAJ8v6B6XhnhBegEgDOM NzQNbNhteQXbsVGZGPnghmAuhuZbx+dMpDYSb1xmPeANoDSzAQG011V6JoguxQyDj5 VH/O7Wq5hDvIfvspB1n8cahmZo0jUhvhLx96qUmQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Evan Green , Lina Iyer , Marc Zyngier , Sasha Levin Subject: [PATCH 4.19 157/361] irqchip/pdc: Setup all edge interrupts as rising edge at GIC Date: Sun, 11 Nov 2018 14:18:24 -0800 Message-Id: <20181111221642.568880628@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Lina Iyer [ Upstream commit 7bae48b22c8d38c5cd50f52b6e15d134e2bb3935 ] The PDC irqchp can convert a falling edge or level low interrupt to a rising edge or level high interrupt at the GIC. We just need to setup the GIC correctly. Set up the interrupt type for the IRQ_TYPE_EDGE_BOTH as IRQ_TYPE_EDGE_RISING at the GIC. Fixes: f55c73aef890 ("irqchip/pdc: Add PDC interrupt controller for QCOM SoCs") Reported-by: Evan Green Reviewed-by: Evan Green Signed-off-by: Lina Iyer Signed-off-by: Marc Zyngier Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/irqchip/qcom-pdc.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/irqchip/qcom-pdc.c +++ b/drivers/irqchip/qcom-pdc.c @@ -124,6 +124,7 @@ static int qcom_pdc_gic_set_type(struct break; case IRQ_TYPE_EDGE_BOTH: pdc_type = PDC_EDGE_DUAL; + type = IRQ_TYPE_EDGE_RISING; break; case IRQ_TYPE_LEVEL_HIGH: pdc_type = PDC_LEVEL_HIGH;