Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2292353imm; Thu, 27 Sep 2018 10:21:31 -0700 (PDT) X-Google-Smtp-Source: ACcGV63UMqYcoqnuiuOok0LZhqRuGX0XH5c0C0Su1OXb7tGKvFDlHa4k2ioZ/1wXscdtfl0dLWW+ X-Received: by 2002:a17:902:a5cc:: with SMTP id t12-v6mr12259471plq.229.1538068890985; Thu, 27 Sep 2018 10:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538068890; cv=none; d=google.com; s=arc-20160816; b=a/Nh7iTZdUny7FzCAGIlaC3sCzJFQSzTXdmYCFZWz/u0BhVmIJTtCpNHrt75k8FL48 k3ATAn/vCOY9S8D1UBpZI6gIG2mU6CDpXi9Nyee+KrrfFEK1brsJCYZ8peHZVzqYgXjo 7h6JFWWNupPLmn72TofIxU7PMgsiIGC12b6RVozeuEG6X/H702vQp9KR0CLD8X/Iggjs GB3Yj8qrAUsRMTMSR9vu8JcX1+TXxHZdl2CA84gpdznA6iYcCCU2t5um02udbudSknGC IeIrOjTW3Vplv3zHtNUlDxsu+fvxvNWyIHj/dWgMCvk0rMVz7QMVke+PpppHKgwK/P0S vz4A== 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 :message-id:date:subject:cc:to:from:dmarc-filter:dkim-signature :dkim-signature; bh=a1mVG5ikJZ7jDKyh3Xgg4kP1AU1iEtMdbR4eY4Ugwns=; b=qf9L/ASdPxTIeiyBD+wQDKnamgWUBSaYRnHf+aS/sO+MQTdcv0AZluSM9s2HTNxVaf +jbn7nMcReh4imYfsv9q8MMczfN3X97HSK1gjF+W2fDit/Ai7j55okO0hncJVGGTDgrr kOI7BPYd2R7V1n8q2BALMKOXfR9FRJezkceIQjhPu46S9bNuzWavlRpwoej+qTba1WBl z9LNk5HQ7L/HJrtmZZbUM5gmqK8Qts9p9feQLja8jVpT6n1LUU8xymcwR/5Xv0gmFlGi eWM1EC5U4cfLYy9xCbA7qw3wBJWD9kX/60driAqV+K6K6ObpD2dUyObttyNp+SwpfT1i CwXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=K1laWX4A; dkim=pass header.i=@codeaurora.org header.s=default header.b=iIyPQum2; 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 i189-v6si2497885pfg.281.2018.09.27.10.21.14; Thu, 27 Sep 2018 10:21: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=K1laWX4A; dkim=pass header.i=@codeaurora.org header.s=default header.b=iIyPQum2; 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 S1728638AbeI0Xhe (ORCPT + 99 others); Thu, 27 Sep 2018 19:37:34 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:42644 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727437AbeI0Xhe (ORCPT ); Thu, 27 Sep 2018 19:37:34 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 16BF460C65; Thu, 27 Sep 2018 17:18:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538068697; bh=nmCriQjxkqGqnbGJUbF3PVwO/6EuQLmkqH+k4EUdj/o=; h=From:To:Cc:Subject:Date:From; b=K1laWX4AD7vJfxKSZB7ik1o6M/xO2iXICr9Trla+VfwRkx+XUwAmtX43sxkGYAvAF DvQ/Pyzo0PeRA7DXHkfpSRR0x8WqMVR7PJFfXny/IgdyVJW0ogF5pUxs0b50Rqzq8c XoDN05YeM08/uskT1GtUlEOb5HP44l16I1Fcf5HA= 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 codeaurora.org (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 26EBB60CA2; Thu, 27 Sep 2018 17:18:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538068696; bh=nmCriQjxkqGqnbGJUbF3PVwO/6EuQLmkqH+k4EUdj/o=; h=From:To:Cc:Subject:Date:From; b=iIyPQum2Qq5pkaCOksdTgtV5wn/aZ5Z7i5z3Quw/cmiQe1FHXbmcKvfMspSlHf3DE 0N8g6FFbV15DhK9T0eFjUjkBW/7cTgJsodKAzWOaDpY34upu3IWiVe8MzmRio5ZDDt eq9nInW/YZWlvkJ8uJt6uyF5LnlPJFHG8KuEAHag= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 26EBB60CA2 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 From: Lina Iyer To: evgreen@chromium.org, marc.zyngier@arm.com Cc: bjorn.andersson@linaro.org, rplsssn@codeaurora.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, rnayak@codeaurora.org, andy.gross@linaro.org, sboyd@kernel.org, dianders@chromium.org, Lina Iyer Subject: [PATCH] drivers: irqchip: pdc: setup all edge interrupts as rising edge at GIC Date: Thu, 27 Sep 2018 11:18:10 -0600 Message-Id: <20180927171810.22968-1-ilina@codeaurora.org> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Reported-by: Evan Green Signed-off-by: Lina Iyer --- drivers/irqchip/qcom-pdc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/qcom-pdc.c b/drivers/irqchip/qcom-pdc.c index b1b47a40a278..faa7d61b9d6c 100644 --- a/drivers/irqchip/qcom-pdc.c +++ b/drivers/irqchip/qcom-pdc.c @@ -124,6 +124,7 @@ static int qcom_pdc_gic_set_type(struct irq_data *d, unsigned int type) 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; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project