From patchwork Mon Dec 5 18:25:18 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: 29855 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2409662wrr; Mon, 5 Dec 2022 10:28:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf6eFi73HHnjX+Z1UvdFtWOWfpGkKOhYtRUtYtRmd8xcDOs3GO88BqYz9QShWsac0ny2bwyH X-Received: by 2002:a17:906:ef1:b0:78d:260d:a6e4 with SMTP id x17-20020a1709060ef100b0078d260da6e4mr68944048eji.93.1670264935714; Mon, 05 Dec 2022 10:28:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670264935; cv=none; d=google.com; s=arc-20160816; b=MP1XSVAhd23Axq4UipvA0U1WJcMgOivwdOw6LVllaKDf3CTWaNiqoDo7xV1SS2npzR tcD8MWrod+dcx0R2rsWqe1WYT/4jOW1hzPMPRUibiX5VQJNvvHZzL9gqOXz8Z6wqWJEs OAu0PzwTlUDM/BLpoG1mZhWbUYwZqqugL05Hf3+Xx6CfsiCwFGqbKA77bSJrAhsBPBnO DB8sMNJBnP9b6+vISp/7hHr/GhX6dIDDRWE44VRaWEez3TDHaZUFoh4Jxd0WUbcTJxlp OAF/25B1d4F+dJJEMTXiIJsTnPAphLLW4ae5Ci4ZRh8v7UtOXEQ5NaCheQjju/tG2KzN v3Xw== 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=n4TmGrr6CqhWXhuVum4g3dKhcRpAc3swOSW11IndD9w=; b=ZYF5LiicYbAzS4isC6fQ022o7IudC5o9X9jelJ62SV8GWVaXdWDSIBmvnHL0nNAQmu OD8n7uEqR0VOjO4zlYtiColhBMMSUihyfObzI0Zt81aY31ZTTq6k1TINFN7bgFTV84xD jZS/BO0SQMFRaSIs1a8kHGaf08R+p8AdZtUZPX1etvNTcZXKAazCro/NibdR9p/FjuG7 UEy3RLeXsbLCkYTUJF7bH7lix/o1AdsmAGHylwDuahngyNoB5M3GDmMwZHRwWx2AW9Ek A6zoeKkDq5SYkXPYa2RqsSdOXUaE3dZHD6cp7lV2TXSjkK3WDve+UnR80jHeRFU4c9/y XmbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=nsENywLd; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=8A+Za5EL; 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 j26-20020a170906255a00b007c0d89354b6si3739547ejb.245.2022.12.05.10.28.27; Mon, 05 Dec 2022 10:28:55 -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=nsENywLd; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=8A+Za5EL; 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 S232958AbiLES1u (ORCPT + 99 others); Mon, 5 Dec 2022 13:27:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232536AbiLESZU (ORCPT ); Mon, 5 Dec 2022 13:25:20 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7B6720BE8; Mon, 5 Dec 2022 10:25:19 -0800 (PST) Date: Mon, 05 Dec 2022 18:25:18 -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=n4TmGrr6CqhWXhuVum4g3dKhcRpAc3swOSW11IndD9w=; b=nsENywLdenZpIIBqQPqpPxX6Ytw7FDCni4TStFqcJZtyNyyVjg4elopXSfnn4QEy+3D9YB 4WhuNycxVoLGUYivl4IlCDprKk2Ruho0YStL/u1IaddTmee+SgVyzV+EJrw/tEm+PmjvIz 5qFzYLeaFpFaLm9hcdaXVrfBR3p2VhkARKQaZeuqORvNnU2+ygIl0npxgj9tls3cOhS87P QJvyv5Ysaosi9px5bzTc62mxNgnPOeyp6qzxo3wTr9DrQ8iFXUbRKXC4m8r1U2DH8tm+ed 3GozSUjFTNZ1L0IUjHm3WkjvSjk83thX6t3Y9vc4M6NdCWV8dTggsFby3BPCwA== 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=n4TmGrr6CqhWXhuVum4g3dKhcRpAc3swOSW11IndD9w=; b=8A+Za5ELO2b5OS8ISPl81XN65cJvd6CBgq8rPvxOYmJROnnZbnuVX3A0PrEbhOwB/vnxJ5 lbG+rvKS7HNUZeDw== 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] platform-msi: Switch to the domain id aware MSI interfaces Cc: "Ahmed S. Darwish" , Thomas Gleixner , Kevin Tian , Marc Zyngier , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221124230314.513924920@linutronix.de> References: <20221124230314.513924920@linutronix.de> MIME-Version: 1.0 Message-ID: <167026471810.4906.10493249948096555909.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?1750421942776305349?= X-GMAIL-MSGID: =?utf-8?q?1751399725284402477?= The following commit has been merged into the irq/core branch of tip: Commit-ID: b330ff9f0b03d6107ee941240ef63cc95374ff3d Gitweb: https://git.kernel.org/tip/b330ff9f0b03d6107ee941240ef63cc95374ff3d Author: Ahmed S. Darwish AuthorDate: Fri, 25 Nov 2022 00:24:38 +01:00 Committer: Thomas Gleixner CommitterDate: Mon, 05 Dec 2022 19:21:00 +01:00 platform-msi: Switch to the domain id aware MSI interfaces Switch to the new domain id aware interfaces to phase out the previous ones. 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.513924920@linutronix.de --- drivers/base/platform-msi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/platform-msi.c b/drivers/base/platform-msi.c index dddafa1..5883e76 100644 --- a/drivers/base/platform-msi.c +++ b/drivers/base/platform-msi.c @@ -213,7 +213,7 @@ int platform_msi_domain_alloc_irqs(struct device *dev, unsigned int nvec, if (err) return err; - err = msi_domain_alloc_irqs(dev->msi.domain, dev, nvec); + err = msi_domain_alloc_irqs_range(dev, MSI_DEFAULT_DOMAIN, 0, nvec - 1); if (err) platform_msi_free_priv_data(dev); @@ -227,7 +227,7 @@ EXPORT_SYMBOL_GPL(platform_msi_domain_alloc_irqs); */ void platform_msi_domain_free_irqs(struct device *dev) { - msi_domain_free_irqs(dev->msi.domain, dev); + msi_domain_free_irqs_all(dev, MSI_DEFAULT_DOMAIN); platform_msi_free_priv_data(dev); } EXPORT_SYMBOL_GPL(platform_msi_domain_free_irqs);