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 C6B73C433F5 for ; Sat, 27 Nov 2021 02:15:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350133AbhK0CSN (ORCPT ); Fri, 26 Nov 2021 21:18:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350136AbhK0CQK (ORCPT ); Fri, 26 Nov 2021 21:16:10 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28A31C08EB3E; Fri, 26 Nov 2021 17:31:12 -0800 (PST) Message-ID: <20211126232735.249206271@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1637976234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=doaEN4PngPF6b3Ms4+nCLub9WRL+cYqg2iUonunceVg=; b=fc0JY4ckDKxoH26FfRbTdheQxJnwXrLr3K0QmZPqu792QDpqzfL/Z54oDwHkg4gkBELP77 jGe5nWrLzad8SPnVh2iJe8FXTuKjwpBePEcz9OQRBhnk8oM2Lg4pXZBtH+xYoa83J+Afxd ENoTC6k6lv2PfNo65WSmc8/UrCk4PXrhcqeyH4fGq8BuzO0Wo/CrDnzOcwfoQ9+uCHx3qM 4CmUe+Iz6gmRd12ABNBM5RUDIlHo1kJ+FqoaEjSMMHDxLyRsOgA0dqRBVOcCRNXT+SUjG1 zBtgPAfrjQ08JB8YZz4TRhSVMOGxuGr/bAtHGH37AW2SWYVEakQGrCZRqOskcQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1637976234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=doaEN4PngPF6b3Ms4+nCLub9WRL+cYqg2iUonunceVg=; b=GGfmVZnHRteeFHWzloW33y+Uz0hgCJV00muK3lobTlzN0aH4PVXRqMLpZxReeE9oG3e5zr qnekNU1sLdEwEqDQ== From: Thomas Gleixner To: LKML Cc: Bjorn Helgaas , Marc Zygnier , Alex Williamson , Kevin Tian , Jason Gunthorpe , Megha Dey , Ashok Raj , linux-pci@vger.kernel.org, Greg Kroah-Hartman , linux-s390@vger.kernel.org, Heiko Carstens , Christian Borntraeger , Jon Mason , Dave Jiang , Allen Hubbe , linux-ntb@googlegroups.com Subject: [patch 16/32] powerpc/cell/axon_msi: Convert to msi_on_each_desc() References: <20211126230957.239391799@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Sat, 27 Nov 2021 02:23:53 +0100 (CET) Precedence: bulk List-ID: X-Mailing-List: linux-s390@vger.kernel.org Message-ID: <20211127012353.Uqte_MSjeNjYYndocO0PoKHjJX2gCldVjEBwSOXYIPM@z> Replace the about to vanish iterators and make use of the filtering. Signed-off-by: Thomas Gleixner --- arch/powerpc/platforms/cell/axon_msi.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) --- a/arch/powerpc/platforms/cell/axon_msi.c +++ b/arch/powerpc/platforms/cell/axon_msi.c @@ -265,7 +265,7 @@ static int axon_msi_setup_msi_irqs(struc if (rc) return rc; - for_each_pci_msi_entry(entry, dev) { + msi_for_each_desc(entry, &dev->dev, MSI_DESC_NOTASSOCIATED) { virq = irq_create_direct_mapping(msic->irq_domain); if (!virq) { dev_warn(&dev->dev, @@ -288,10 +288,7 @@ static void axon_msi_teardown_msi_irqs(s dev_dbg(&dev->dev, "axon_msi: tearing down msi irqs\n"); - for_each_pci_msi_entry(entry, dev) { - if (!entry->irq) - continue; - + msi_for_each_desc(entry, &dev->dev, MSI_DESC_ASSOCIATED) { irq_set_msi_desc(entry->irq, NULL); irq_dispose_mapping(entry->irq); }