Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1559960ybm; Tue, 21 May 2019 16:35:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvG5S5WroSuCzwis+2DW8mX6UsgO9CplMuNNlRpVY+swEMjZx+qt/d9QFc1MxNZV5O+tot X-Received: by 2002:a63:2785:: with SMTP id n127mr17586485pgn.99.1558481731279; Tue, 21 May 2019 16:35:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558481731; cv=none; d=google.com; s=arc-20160816; b=ENqA8eIHMWNrM3mnpv9be3pX2DroWqJcZBNWCYFvMwqtb5mDpMANf5mripbOMq/WpF mUwahRrbOWVV5Gjx7qdALrq7/F2hl7GYRWZH6i7NhWUOG87t5yVkJ9UUDbo6jH7DjvpL zcpRd5dxF3a6S2lLVp8GC5TnzjBC+rKQrk1dPr/K9M9TWo6WvvEwZlPxVlB9Z4PtX8Gl Psw88S4sKOHYjjangZ9bzUyomFyBeKaTlaBpRKJgm1eKclZd2nfX9kQEZQ4LRL4r8zJd vzOW43fYiVoAwRw6tTR4MylO4JV+b49vYWvysXOh3cfCSfzUMgKHqLoySVH0kq6Pd86T Ueyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=vpItaAdCCfi7ntL6ByckdKbRZ/KSHdenIpT3xYHKDOM=; b=NO60p2M8IYWzVyolSpAUCTSiUd+T/vAnXJJW2nN0My6UMSyvdS1bkTKOpbRBz0PTuB kF0xk0zGB3QPtX5c4czDqZ1oqE42Hfv2/d0xgVXjBeBpdvQCTaVmFDBzli4CUj49Uaom rmIWk5xWKQrbMLhV5PXT9HDJ+ZhS/30q77PaQEOU6w5V8oD/nM3hydbeR6JgMsdDcL1/ 8ISK72f9agMqtFJzkmsknPa8yNaisPUWxqZmx6sDkIWZzvnEj+dR3z1BqgXb1lM1T/++ iwmOG+IyiYQo+l8/G11ERAepmdZJ6/FxMfoh+S49WsN0FakZ6DEI7iQJoKmr/ZBzF/o1 DpLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=QIhkn38d; 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 5si23582722pgz.231.2019.05.21.16.35.16; Tue, 21 May 2019 16:35:31 -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=@nvidia.com header.s=n1 header.b=QIhkn38d; 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728341AbfEUXcI (ORCPT + 99 others); Tue, 21 May 2019 19:32:08 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:1176 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726083AbfEUXbS (ORCPT ); Tue, 21 May 2019 19:31:18 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 21 May 2019 16:31:19 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Tue, 21 May 2019 16:31:17 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Tue, 21 May 2019 16:31:17 -0700 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 21 May 2019 23:31:17 +0000 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 21 May 2019 23:31:17 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 21 May 2019 23:31:17 +0000 Received: from skomatineni-linux.nvidia.com (Not Verified[10.110.102.174]) by hqnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Tue, 21 May 2019 16:31:17 -0700 From: Sowjanya Komatineni To: , CC: , , , , , Subject: [PATCH V1 01/12] irqchip: tegra: do not disable COP IRQ during suspend Date: Tue, 21 May 2019 16:31:12 -0700 Message-ID: <1558481483-22254-2-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1558481483-22254-1-git-send-email-skomatineni@nvidia.com> References: <1558481483-22254-1-git-send-email-skomatineni@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1558481479; bh=vpItaAdCCfi7ntL6ByckdKbRZ/KSHdenIpT3xYHKDOM=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-NVConfidentiality:MIME-Version: Content-Type; b=QIhkn38dP1DrL0kVPaDgngZ6ffRasvlnPfN2k8FxXb+UWpZojml9YtyU3buUxCsrD wXiyBj1BxIOOD5ahyHTELGvKPnb+eBsrWXkTopzraYIagDRebRs32YM9U5saf+WpHC NNHiskGsrIXfN4ctu6tiolYkRmzrFAYbbMYvwRGcVonJAHzblD3SPYNLLNR5rLPkZT kiEOTbzL+EQYrR+kMgcdBHDvADx836O8+IeO/ZbaavBbfsV4W8h9G3s+5JrD1FMqo6 e+wODMn5wayHU+HCJO7gP4mVYCTdDoBc6MpLrGJ/d3rVa5EmEmiF9S8OfFqeADC4Hc kU/QVevd22exA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org BPMP-lite still need IRQ function to finish SC7 suspend sequence for Tegra210. This patch has fix for leaving the COP IRQ enabled for Tegra210 during interrupt controller suspend operation. Signed-off-by: Sowjanya Komatineni --- drivers/irqchip/irq-tegra.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-tegra.c b/drivers/irqchip/irq-tegra.c index 0abc0cd1c32e..1882373fa1fd 100644 --- a/drivers/irqchip/irq-tegra.c +++ b/drivers/irqchip/irq-tegra.c @@ -53,18 +53,24 @@ static unsigned int num_ictlrs; struct tegra_ictlr_soc { unsigned int num_ictlrs; + bool has_bpmpl; }; +static const struct tegra_ictlr_soc *soc; + static const struct tegra_ictlr_soc tegra20_ictlr_soc = { .num_ictlrs = 4, + .has_bpmpl = false, }; static const struct tegra_ictlr_soc tegra30_ictlr_soc = { .num_ictlrs = 5, + .has_bpmpl = false, }; static const struct tegra_ictlr_soc tegra210_ictlr_soc = { .num_ictlrs = 6, + .has_bpmpl = true, }; static const struct of_device_id ictlr_matches[] = { @@ -157,7 +163,8 @@ static int tegra_ictlr_suspend(void) lic->cop_iep[i] = readl_relaxed(ictlr + ICTLR_COP_IEP_CLASS); /* Disable COP interrupts */ - writel_relaxed(~0ul, ictlr + ICTLR_COP_IER_CLR); + if (!soc->has_bpmpl) + writel_relaxed(~0ul, ictlr + ICTLR_COP_IER_CLR); /* Disable CPU interrupts */ writel_relaxed(~0ul, ictlr + ICTLR_CPU_IER_CLR); @@ -286,7 +293,6 @@ static int __init tegra_ictlr_init(struct device_node *node, { struct irq_domain *parent_domain, *domain; const struct of_device_id *match; - const struct tegra_ictlr_soc *soc; unsigned int i; int err; -- 2.7.4