Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp333499rdb; Sat, 27 Jan 2024 08:19:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPZP3MfhBdTyBGSSc2RpflpOYc5BBa9VyjgC76zvSnSV1+8J/0+BmNgrzsUW777ZihJGaC X-Received: by 2002:a05:6214:2582:b0:681:55a5:ec55 with SMTP id fq2-20020a056214258200b0068155a5ec55mr2205002qvb.75.1706372367048; Sat, 27 Jan 2024 08:19:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706372367; cv=pass; d=google.com; s=arc-20160816; b=p3lYabHWni3w3PnIEd7d14Tph9pZgm67ZF7nOavEKumQalU4J+KiSEk0Bxq4zlpB7c bZAxNQgC4/O72yiZ15vEpCYj4k7JwxThGlZcFBJ5xHvTRafAk/nQ8bJQNtedY4vX4xQw RXLuq8YABbtricWHggDUUo4C09xT1XYHMBxl0qIoxZwoIMIZuSFSK9AFlT9n1MUYF0pu /CZ2Ad36tRi5pcnAmrib47kMUu/ukuLBDGo/6fzfT4VDXkDAZpX47nWCwZNnCYkqkLa5 uHra8pAvokKQ1XHjSBdMnWnoiwiTI7+vaKQAdjiC+y2UFDRyqD13GYmDgGMPfj9guokn 1ZvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Gio4VcisYA6evHi9fLFTB/NsIADoYywgfT0MwGlZzIc=; fh=706cnY5t7hpwBXQypCTGH3HYLPe+/lcVAB5kbpxvl24=; b=SuFouHW241mLegvfroaaFnnl4FxfNCnpayrlvr1SySPaYW8+pswvusBUXt4x6R6Uuw p1mNUoBGcMavEEAtFN2UsbIGlH4mxuLgDlyZpWFTGkJ8SIvxf9RYIuPLe4HYhsIg2iU/ OjihTeY6IOkkNWVhR1qP6EvJJA+knFhf1MZKxPCxH0pGuk4NmnAroHf/sUxCyeLYQkyk +5QEq2wfxbUqT22FvnJInzZZMVPPE7pFdIo0590nZvlZo1cWU/Xr6gqgfgkkvchNQU57 J6blyBnsLPaG5V7oJJwJdGSLw/zrfAYJEhDhYPdXnup/DTZMkLF0tBM9iClFpDeHPYwd m3Uw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=OLFUkwd5; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-41276-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41276-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q9-20020a056214194900b00683b4080978si3908708qvk.509.2024.01.27.08.19.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 08:19:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41276-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=OLFUkwd5; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-41276-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41276-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8A3811C220F6 for ; Sat, 27 Jan 2024 16:19:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 912212D61B; Sat, 27 Jan 2024 16:18:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="OLFUkwd5" Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70DBD2D052 for ; Sat, 27 Jan 2024 16:18:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706372310; cv=none; b=eRQKsDywwhHzTxE4F/mtGZ/YcjoRNvjT6xRM1sx/7kvSRyGhmGapYfx2uzG7zvwt1QV4uqw6donVIxnUiQod4efObhQ2vZPvYRx+T0jOsFHfNlmQCtvZm/FuuDvLHgE3LQlT5Uf9Y4gkRugT+AQjv1zgujGzFE17NLF+pkAUPlU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706372310; c=relaxed/simple; bh=eJFuo3cIfXEq1mEON0RCgiaWMZ23JLuACI8xiBlZ4CY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=SA69LUEkeQJtBCp4F+k+SiWt7J+nOEREmkLKO3cPaoPn8pfjfmSgRTtF94jXKHyb6pwAUFyGKrPBydyG98Wji8t9+6OYpYY4nTNzz4ZBawBSrDu1QTI/GYcO94hIQRmYT1s/Ie43gU32aHcwOT3bmXEmVq0qqTw0Ngmz1L6SMSE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=OLFUkwd5; arc=none smtp.client-ip=209.85.214.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1d730b6943bso7060275ad.2 for ; Sat, 27 Jan 2024 08:18:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1706372309; x=1706977109; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Gio4VcisYA6evHi9fLFTB/NsIADoYywgfT0MwGlZzIc=; b=OLFUkwd5v6tkfaultzA8WwqEMA3GwD6QeZUFT8YUzgO1ZY7XS34jIRPfoDVfXTNek/ tAbd/n4kTnjhZWXHVw7nAwPgyIogameaQYLn3NbPO9QglqvkTMKlYbYppRXu6rD0CHKr XnDiIsa8jfQShhMkcweTg4NpTuN2l8Okz+urrnttE2ec3AlUwgckyCAUE/f83DvOvHCO tQhqBepp4RRU+BNHmWoUuI9/4xahnS7CE9qScsmtg94DSWXSXLWdSFMPiTJV7tPgJDPL ymE1PTE/g7q6SAgeMXLCUsyWje4GgZXKNYG47nq4N0z6SdbvCD0WLK/uacCnRMMK5x0B FdjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706372309; x=1706977109; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Gio4VcisYA6evHi9fLFTB/NsIADoYywgfT0MwGlZzIc=; b=p2JrS1iX7NyRXxzoLW71210fyeg3ZjpTgniRnMcp1N1AUd/f2xEA16hlvdh88/1tAR qOw1jV5UpqoYzD2aH8E9UvDl62HDB8vRjif/YXQcLU4MQzzM1lIK8vwsBlCGP+oufO/Q 7ao2bJEntD2rAyyUbvjesSDuHPLMHne1JDfhkD57C84vjgwxe3+9GYZHdkL8d4XfKCLg wexEuqSYcFYdF+0fobRW6WrWlYB3XGjG81O9eoEn4epa8jy15cAVCeEwshpsoESWKIbH LKL3AI7McATWoaau6quKeVewc4CP6Kez7TKQExP4gHLECU5B+amj/W1DNjDVnffxJrdh 2wCQ== X-Gm-Message-State: AOJu0Yy+8QEcmRHwhsjolh3XzaTklTwi0PDqzEDeh78ADkaEX/Qvlr5v abNU86QzO1gdUAubQvfg02k3Do4WYvkWKiu/xYHAL/QHIdCsvm7RyHK0NExX4hU= X-Received: by 2002:a17:903:1c3:b0:1d4:326c:1c89 with SMTP id e3-20020a17090301c300b001d4326c1c89mr1195988plh.10.1706372308671; Sat, 27 Jan 2024 08:18:28 -0800 (PST) Received: from anup-ubuntu-vm.localdomain ([171.76.86.17]) by smtp.gmail.com with ESMTPSA id d11-20020a17090ac24b00b00290f8c708d0sm5091620pjx.57.2024.01.27.08.18.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 08:18:28 -0800 (PST) From: Anup Patel To: Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Frank Rowand , Conor Dooley Cc: Marc Zyngier , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , Atish Patra , Andrew Jones , Sunil V L , Saravana Kannan , Anup Patel , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Anup Patel Subject: [PATCH v12 02/25] genirq/irqdomain: Remove the param count restriction from select() Date: Sat, 27 Jan 2024 21:47:30 +0530 Message-Id: <20240127161753.114685-3-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240127161753.114685-1-apatel@ventanamicro.com> References: <20240127161753.114685-1-apatel@ventanamicro.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Thomas Gleixner Now that the GIC-v3 callback can handle invocation with a fwspec parameter count of 0 lift the restriction in the core code and invoke select() unconditionally when the domain provides it. Preparatory change for per device MSI domains. Signed-off-by: Thomas Gleixner Signed-off-by: Anup Patel --- kernel/irq/irqdomain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 0bdef4fe925b..8fee37918195 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -448,7 +448,7 @@ struct irq_domain *irq_find_matching_fwspec(struct irq_fwspec *fwspec, */ mutex_lock(&irq_domain_mutex); list_for_each_entry(h, &irq_domain_list, link) { - if (h->ops->select && fwspec->param_count) + if (h->ops->select) rc = h->ops->select(h, fwspec, bus_token); else if (h->ops->match) rc = h->ops->match(h, to_of_node(fwnode), bus_token); -- 2.34.1