Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2063483ybg; Thu, 24 Oct 2019 04:19:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWNR09fGKkRH8JlwGIfeurQW8CP9OLF7YE/97imcoEI0WIBOSM3bwmlXss2/nWE33z4Ul1 X-Received: by 2002:a17:906:1d59:: with SMTP id o25mr2322738ejh.115.1571915968623; Thu, 24 Oct 2019 04:19:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571915968; cv=none; d=google.com; s=arc-20160816; b=pNB6hgjtna0tunUuIQQhDWOP629TswUlQzazDsW/4xQudQZ1pChkTgXK7OYkg6apeP LbB7Si7KcEC2GLKUIiT5zFqgvYLxwnIGoBHUCK5ptOtqhyRz77cNH5Y5bXcKkHQHiQbB lG2dtOSIKWUMHkgIbstDzTQIn2noz5MLo9hrqQ1m0VVz0td2RzgKBSIZ4J5SpqFiVqC2 iz+fULtm1YXQ7PIMGLC7SHN/Oa/tDHHxp//kSBqyCgSCSGsfipL8vBCRpmTSgu2ga9sd p2LUlW3YtziWjct9tE7iY8q/ZqU9UQue0EvWd3Qi1hq9zhP8uEqCtz1HsIxWBWp1gq8H ENCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=ilmfO6H+RDidCkh9jA09636tYNrmUwzLUqDZtBlewQA=; b=B24ts0wZdf3bR7+8ZLotTzUZMxsK8YRGebqyHRfKjQ/JonK9cjJsEiL+AzlkO6hx5v eZuGQdoXllXahbPGQI+WCIUVpvjgmBGFpXk5SAvU2avlkIyWFzrSfaGk3r4NprVCiT03 2p9R63OgmWbZEU/IJsKZaVH8gG361lIxJ/6SQOV4T3hBP716usQY7scwZ4HKGVvjMT6O WROw1waFYs8N3pUHKAYn7Fb+QsI+FJTTBAD72RQ9/AW/YgugdUFcaJBT+cL96iB+cHYU 0x+l9o0t+fTWMEuQ+0s5IiNOgYJfDbfwi9xB0rueLO0jaQUA3aftAgU08EFdlKxROn3Y XI9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=UMt5+eks; 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 j10si10513511ejv.339.2019.10.24.04.18.58; Thu, 24 Oct 2019 04:19:28 -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=@sifive.com header.s=google header.b=UMt5+eks; 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 S2407028AbfJWQWm (ORCPT + 99 others); Wed, 23 Oct 2019 12:22:42 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46586 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404850AbfJWQWl (ORCPT ); Wed, 23 Oct 2019 12:22:41 -0400 Received: by mail-pg1-f196.google.com with SMTP id e15so12414639pgu.13 for ; Wed, 23 Oct 2019 09:22:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id; bh=ilmfO6H+RDidCkh9jA09636tYNrmUwzLUqDZtBlewQA=; b=UMt5+eksXZx6l05Nk14XEFLxERC+9XYYma9NsObhXUcOtuU29glnUumKRZB3n1JbWD rQmD4+TgqM0a5pLy1PPi/8bUkHy0AcUq02FwWZs0Hzv6Ng5+iPkfo/vqRUCdvSQXWWeI D8ohT2TauGtBE0RdT9pufYzcJMvOm38NUqT7nOtsrlHumhobyZyYaANeBxXHu0a1maX4 oK1VMFe5fDGTDhV1GQEw4qYjzj5kOEQ9mphrSTtuFvgr0kjx/0PDHTn4PGnfCVHVddBf ROKFcfWqqNBQGdDH6UnJb6tmkKVfxT5YLYSNNm7EcG3EQ2DvH/jlqyIMjzwhX5K3igSN d7RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ilmfO6H+RDidCkh9jA09636tYNrmUwzLUqDZtBlewQA=; b=MRqgwywY4owfGO2iRNNNPMozV6Digp4frlCnZdQoX1kNclLR9WeIWKerqvyG1ah0lC Tqk1yuQcfh03q21X5Qk1dkkk1bAVr9UR+1upR8pv4koTHlrLkwL02U9fuExqBNixJc8K F81xMxqGrZbJTFFV1YVwSI+J25R/5K80NH3omZq5gzB7ahGcXa6JFkx6B6Th5NYdcIX2 FxRA7aVTwd5B7DFIk2oDEII7j4dYWTyEjg7GSzLk9itdyaEo4boCElIUiSyO/MiBb4HP yYnHseO9ImERXLjUqK/YEtvydFAUA/oowW229HBx6mIk0kNz/54urh/fVw5dYl6tWc1A /qWQ== X-Gm-Message-State: APjAAAXjo49+EkPxkkrVhKO+XeTivoEpUUv130isCY4JNGAqp/ncOKor xjME0yf8Z7YNCZqdFiL6hsfxT+sOqMw= X-Received: by 2002:a65:689a:: with SMTP id e26mr10944113pgt.346.1571847760808; Wed, 23 Oct 2019 09:22:40 -0700 (PDT) Received: from nuc7.sifive.com ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id u11sm33434233pgo.65.2019.10.23.09.22.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Oct 2019 09:22:40 -0700 (PDT) From: Alan Mikhak X-Google-Original-From: Alan Mikhak < alan.mikhak@sifive.com > To: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, tglx@linutronix.de, jason@lakedaemon.net, maz@kernel.org, palmer@sifive.com, paul.walmsley@sifive.com Cc: Alan Mikhak Subject: [PATCH] irqchip: Skip contexts other supervisor in plic_init() Date: Wed, 23 Oct 2019 09:22:35 -0700 Message-Id: <1571847755-20388-1-git-send-email-alan.mikhak@sifive.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alan Mikhak Modify plic_init() to skip .dts interrupt contexts other than supervisor external interrupt. Signed-off-by: Alan Mikhak --- drivers/irqchip/irq-sifive-plic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-sifive-plic.c b/drivers/irqchip/irq-sifive-plic.c index c72c036aea76..5f2a773d5669 100644 --- a/drivers/irqchip/irq-sifive-plic.c +++ b/drivers/irqchip/irq-sifive-plic.c @@ -251,8 +251,8 @@ static int __init plic_init(struct device_node *node, continue; } - /* skip context holes */ - if (parent.args[0] == -1) + /* skip contexts other than supervisor external interrupt */ + if (parent.args[0] != IRQ_S_EXT) continue; hartid = plic_find_hart_id(parent.np); -- 2.7.4