From patchwork Mon Dec 5 18:25:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 29854 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2409637wrr; Mon, 5 Dec 2022 10:28:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf4+s/wgDBKnUbxIIjof44cj8lg+M2JtZNtBt3G6ABwwQv0qV9CmcA9+ieQIU/5F318Jce7a X-Received: by 2002:a17:906:6ac1:b0:7c0:9a3:87ff with SMTP id q1-20020a1709066ac100b007c009a387ffmr30601535ejs.505.1670264932976; Mon, 05 Dec 2022 10:28:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670264932; cv=none; d=google.com; s=arc-20160816; b=E+Lkt/T+GQ44U8l4HexdxJEsGTowLNIc2r7VwSE5e1PV3WvKy+Q9Zp195NwrhTlTP5 Vbb2W7C1zO4tmuQ/+QuC9IXZabyEGuykQ4n6IZlmrjR5bER9odBMDsmIr5imN2bz2QH8 OrqpazrypLx4frbKr49za93JCOYqBc5sq1cnXyKrvk6yM+OxFnUVMXWXRqu30GCchIrg AUqqcal/gz3ZMVxNy4Ki+uNcBQoSIBEIqzIEMD+4ZeT3XX2v5hCC+qr4SFyN4VvHLR77 /PxV9vKhc1AnNrmIrUJC6MglhX/eq5DUJiE4QqdVlfaX7pqqMIKyLBzcYqcWO8pQOzjg Cl9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=H77oCQcfyF7CRvU/+fKBpZxDnkjoAtRTLyPaW2YTn+g=; b=YtKe+AsEjRIbUYcYf7eYABYzB6Lch92yD9XwQ+s6nEXJeEVBTlruaa3nBU8ZL7RcRN EGDU6XsDn4G3kXPXImoWQ0RJc9AOExWfILycvRIkKBnuvfRBZLX4rgiKgrbPLVk5W5bh ptEuD3F19KZOo2KFj+e9LufbQZUQ6IFXKNY6W6rNmK1h0rmufklY4fvhUlxWEIzvWrAk 5bB+qbYBW+FCJMJZCvQYTbFJNXfDEqKZmDDSl1xarmItk//zFcReM1FZLZS1vikNA9IC JHB2isTMfL9/S4G11mkg/XWwi2ka8i3ZgyjroDoW3CSdfGV8pLSvZCaWC4VjUnFgUBTX 7rwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=fiGdI8TF; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=VVMHdS4v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b15-20020a170906150f00b007bf8440bc14si9620146ejd.784.2022.12.05.10.28.30; Mon, 05 Dec 2022 10:28:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=fiGdI8TF; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=VVMHdS4v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233067AbiLES14 (ORCPT + 99 others); Mon, 5 Dec 2022 13:27:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232523AbiLESZU (ORCPT ); Mon, 5 Dec 2022 13:25:20 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A45D20BD8; Mon, 5 Dec 2022 10:25:19 -0800 (PST) Date: Mon, 05 Dec 2022 18:25:17 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1670264718; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=H77oCQcfyF7CRvU/+fKBpZxDnkjoAtRTLyPaW2YTn+g=; b=fiGdI8TFnlWqBkepj/zAHjVdAYdehTab0A/yK1IwpfA0P5DKqDTa2urgZC6ve1ueUuioD/ 1NztINx9UXWXcH0N7Bnpic1bu/rrLxUf0/weu63XntL5Nf/ifyhNhCP+SYOG3EiPkRixWp BiJ6ZtE0ziPLl/H32FTfjKIULTX8g0vq8CqD/R4oAG90otZMX+hK4JSgkH12I5/ewxv8vC G4olGb0TQee4VPSLM539yOx7S5BTrVZprwT1N1cLTC8SGPP15G1tRrpU0RxzQfrRw9x3JL N+3RshK6BbMbnKzbGNdgMAFpvAUBoPLX+wptHoVS9qAZ9Jjoq7JnSBJbEe4NVg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1670264718; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=H77oCQcfyF7CRvU/+fKBpZxDnkjoAtRTLyPaW2YTn+g=; b=VVMHdS4vDX5B52gzANtz0sK3XX6lolFyjmRFIuOQ+e7y48OXzJHcZFTsfTXKVWFGw8bTMY TZBhd7+uzxsE98DA== From: "tip-bot2 for Ahmed S. Darwish" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] oc: ti: ti_sci_inta_msi: Switch to domain id aware MSI functions Cc: "Ahmed S. Darwish" , Thomas Gleixner , Kevin Tian , Marc Zyngier , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221124230314.634800247@linutronix.de> References: <20221124230314.634800247@linutronix.de> MIME-Version: 1.0 Message-ID: <167026471769.4906.17409547854986579217.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750421946644672165?= X-GMAIL-MSGID: =?utf-8?q?1751399722742623416?= The following commit has been merged into the irq/core branch of tip: Commit-ID: 811b32811fbd1a5d3a9eb089ff1d34fa04ef2144 Gitweb: https://git.kernel.org/tip/811b32811fbd1a5d3a9eb089ff1d34fa04ef2144 Author: Ahmed S. Darwish AuthorDate: Fri, 25 Nov 2022 00:24:41 +01:00 Committer: Thomas Gleixner CommitterDate: Mon, 05 Dec 2022 19:21:00 +01:00 oc: ti: ti_sci_inta_msi: Switch to domain id aware MSI functions Switch to the new domain id aware interfaces to phase out the previous ones. Remove the domain check as it happens in the core code now. No functional change. Signed-off-by: Ahmed S. Darwish Signed-off-by: Thomas Gleixner Reviewed-by: Kevin Tian Acked-by: Marc Zyngier Link: https://lore.kernel.org/r/20221124230314.634800247@linutronix.de --- drivers/soc/ti/ti_sci_inta_msi.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/soc/ti/ti_sci_inta_msi.c b/drivers/soc/ti/ti_sci_inta_msi.c index 255849c..b9251e1 100644 --- a/drivers/soc/ti/ti_sci_inta_msi.c +++ b/drivers/soc/ti/ti_sci_inta_msi.c @@ -93,13 +93,8 @@ int ti_sci_inta_msi_domain_alloc_irqs(struct device *dev, struct ti_sci_resource *res) { struct platform_device *pdev = to_platform_device(dev); - struct irq_domain *msi_domain; int ret, nvec; - msi_domain = dev_get_msi_domain(dev); - if (!msi_domain) - return -EINVAL; - if (pdev->id < 0) return -ENODEV; @@ -114,7 +109,8 @@ int ti_sci_inta_msi_domain_alloc_irqs(struct device *dev, goto unlock; } - ret = msi_domain_alloc_irqs_descs_locked(msi_domain, dev, nvec); + /* Use alloc ALL as it's unclear whether there are gaps in the indices */ + ret = msi_domain_alloc_irqs_all_locked(dev, MSI_DEFAULT_DOMAIN, nvec); if (ret) dev_err(dev, "Failed to allocate IRQs %d\n", ret); unlock: