From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43367C433EF for ; Thu, 16 Dec 2021 21:42:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242313AbhLPVmd (ORCPT ); Thu, 16 Dec 2021 16:42:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241807AbhLPVlF (ORCPT ); Thu, 16 Dec 2021 16:41:05 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E80CC06179B; Thu, 16 Dec 2021 13:40:50 -0800 (PST) Date: Thu, 16 Dec 2021 21:40:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1639690848; 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=q4wRJZ0BNOdDeStCkCsNI9dzJgXBIdRIrplqXcgXDRY=; b=gYYbzEs1qiiW4I4v/HpToePW2b/tENITkOZnLDCjkJ3gVGlm7ExKP0QsROlxzfya3gIymr czNzdhImMLHuMHyBtNdcrr7/Q9FscQozMOv8XBvyveCI63/CrG03I+kXziGj7PISFKMQaS 96AXbBIR88tO8HbzIG1gLlcllQS2ZKo3ECfB3rVYE50sdS+Wf9S+C0yI1FUcraC5G0p7lj wT966/T3dPgP5zn0zrhnjeQ3B/AgbmZWfmH5HyN9nPN2OvL5KHbVtJUuFjYpgBh3LX8I81 zeWHeX1s8ISGWIH7rT19rtz1UA5k8BC8XK7rel4QyY8LkzgcdJ7URpkBLhMl9Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1639690848; 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=q4wRJZ0BNOdDeStCkCsNI9dzJgXBIdRIrplqXcgXDRY=; b=RbvMUuHhGYntm7Ut7FwIairsYETE/37BNMlfWxu5dOdpZATQk3RmYPgcnOVbA5wPTnQa2g KgusEIo2GhyOOuCw== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/msi] mailbox: bcm-flexrm-mailbox: Rework MSI interrupt handling Cc: Thomas Gleixner , "Greg Kroah-Hartman" , Jason Gunthorpe , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20211210221815.148331680@linutronix.de> References: <20211210221815.148331680@linutronix.de> MIME-Version: 1.0 Message-ID: <163969084785.23020.15522360074855152494.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/msi branch of tip: Commit-ID: d722e9a51178d42b07555a9420d286dad3341d61 Gitweb: https://git.kernel.org/tip/d722e9a51178d42b07555a9420d286dad3341d61 Author: Thomas Gleixner AuthorDate: Fri, 10 Dec 2021 23:19:32 +01:00 Committer: Thomas Gleixner CommitterDate: Thu, 16 Dec 2021 22:16:41 +01:00 mailbox: bcm-flexrm-mailbox: Rework MSI interrupt handling No point in retrieving the MSI descriptors. Just query the Linux interrupt number. Signed-off-by: Thomas Gleixner Reviewed-by: Greg Kroah-Hartman Reviewed-by: Jason Gunthorpe Link: https://lore.kernel.org/r/20211210221815.148331680@linutronix.de --- drivers/mailbox/bcm-flexrm-mailbox.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/mailbox/bcm-flexrm-mailbox.c b/drivers/mailbox/bcm-flexrm-mailbox.c index 53a8473..c2e9a05 100644 --- a/drivers/mailbox/bcm-flexrm-mailbox.c +++ b/drivers/mailbox/bcm-flexrm-mailbox.c @@ -1497,7 +1497,6 @@ static int flexrm_mbox_probe(struct platform_device *pdev) int index, ret = 0; void __iomem *regs; void __iomem *regs_end; - struct msi_desc *desc; struct resource *iomem; struct flexrm_ring *ring; struct flexrm_mbox *mbox; @@ -1608,10 +1607,8 @@ static int flexrm_mbox_probe(struct platform_device *pdev) goto fail_destroy_cmpl_pool; /* Save alloced IRQ numbers for each ring */ - for_each_msi_entry(desc, dev) { - ring = &mbox->rings[desc->msi_index]; - ring->irq = desc->irq; - } + for (index = 0; index < mbox->num_rings; index++) + mbox->rings[index].irq = msi_get_virq(dev, index); /* Check availability of debugfs */ if (!debugfs_initialized())