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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ADB1BC433F5 for ; Sat, 27 Nov 2021 01:44:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Date:MIME-Version:References:Subject:Cc :To:From:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: List-Owner; bh=KZq0aNsruh0PwI65+YvuzhanrjCA/AkdfcQiH1hGNDU=; b=WYqXKhi0jNTMbP ns6tgTDeAJ3vWFqR2xDO67S3dSP7bsSG5+/PjZRCjo17ELjISz7UJMkDlffxbLrq3SCwZ61AzFbcN vCRU2pt6pU38X1kLPpKoko8YtGKXYHe0F0Z3MGQ0YfV8p5dqdltiAQSF+wcZ8ApxX4f7ruvV5v4kM Plov8WFQRdymM8I0Dt7z92Y2O4DuJmn+fNaDgDpt68EVrucEqwqRHaIwzIQKn+Xp9wc88q1Cu4bJb FRkuesk14+5TS3elnH1zEX2EDSCNzVVNcN9sjjqXFWxnYhChbTPxE/a7wP0Tk4QS9rT+BgeytoWFw Lmn05diNky+pMBS9p8Qg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqmjA-00CKvP-CQ; Sat, 27 Nov 2021 01:42:08 +0000 Received: from galois.linutronix.de ([2a0a:51c0:0:12e:550::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqmOV-00C9je-DJ for linux-arm-kernel@lists.infradead.org; Sat, 27 Nov 2021 01:20:52 +0000 Message-ID: <20211126230525.374699615@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1637976045; 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=G+kQoqkWvFJXcdz5PQCdFWimR12BfigYgz7Zbwfcs54=; b=a4IGUqXtXIwTCipeEaCK18NENo8ejWLO0RAVBMzwJd4vheCxJFL1u083PEtxGKZjYTpDXa kjIkdlz/Me+vDfIXTizASuoqgVKXXbjp05y7oakiEmGuw3/2un0MFaI1Y0b7EaSGzUdgiF gyN5B1u3cRhGUOObj98rlrrocAGjSCu2+NVv9Janv+epcZt2H6wEpPqA4frbcE+evuyirU EE16hmnNL546crv5bPO8fWnp45/znozW8kxsYEPVlOgYrU3wYQUl54HJALseiDrLgPlMQi nkl0LlcAjYLUfacIM3Xz5ufccSxVwgm9akbsqevUgaybsKVHfGP8te/8BvBw2w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1637976045; 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=G+kQoqkWvFJXcdz5PQCdFWimR12BfigYgz7Zbwfcs54=; b=lf9IuXXC/5triKpko28bR3F8ly/WAaUvo4XZUDmmDQUjFfB2wrlfPNfYASVPyKqWnEncGk /nZZx/GnJyyEWNBA== 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 , Santosh Shilimkar , iommu@lists.linux-foundation.org, dmaengine@vger.kernel.org, Stuart Yoder , Laurentiu Tudor , Nishanth Menon , Tero Kristo , linux-arm-kernel@lists.infradead.org, x86@kernel.org, Vinod Koul , Mark Rutland , Will Deacon , Sinan Kaya Subject: [patch 24/37] powerpc/cell/axon_msi: Use MSI device properties References: <20211126224100.303046749@linutronix.de> MIME-Version: 1.0 Date: Sat, 27 Nov 2021 02:20:45 +0100 (CET) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211126_172047_679371_078D0EEA X-CRM114-Status: GOOD ( 10.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org instead of fiddling with MSI descriptors. Signed-off-by: Thomas Gleixner --- arch/powerpc/platforms/cell/axon_msi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/arch/powerpc/platforms/cell/axon_msi.c +++ b/arch/powerpc/platforms/cell/axon_msi.c @@ -199,7 +199,7 @@ static struct axon_msic *find_msi_transl static int setup_msi_msg_address(struct pci_dev *dev, struct msi_msg *msg) { struct device_node *dn; - struct msi_desc *entry; + bool is_64bit; int len; const u32 *prop; @@ -209,10 +209,10 @@ static int setup_msi_msg_address(struct return -ENODEV; } - entry = first_pci_msi_entry(dev); + is_64bit = msi_device_has_property(MSI_PROP_64BIT); for (; dn; dn = of_get_next_parent(dn)) { - if (entry->pci.msi_attrib.is_64) { + if (is_64bit) { prop = of_get_property(dn, "msi-address-64", &len); if (prop) break; _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 97E13C433EF for ; Sat, 27 Nov 2021 02:16:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Date:MIME-Version:References:Subject:Cc :To:From:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: List-Owner; bh=KZq0aNsruh0PwI65+YvuzhanrjCA/AkdfcQiH1hGNDU=; b=oEZcyFkKQIXVh5 ttB0a+3TBzAYMY0C9wJwlpH6MNH/xo6xPno+UAUtNGdwxDhkF0W6/f0A/fLa2KE437gQriLL9WXvG eXbBFRnoCdTH3AITooqHBbELNBQFfS7MJfgX3zd5t6QCiJFn/c36Pjv/OTfZ+0IrBHH5avfGNThZg CSmXGPM0BfoROicq1U6BtdMSj4u11BrbPW8JYpBXvvyY9yH1plr/pyzUV1+b6PJDaNnrc5MlRfVmq wBl2dnqSEZJfYgO5Q2NP+BZ0aWZHzoy3bgKiPowbnG5r8UiYFxT9SMSOzV7heX092oC9tCvVl0mR3 mP8LK+TPXN/j1ZIPi8vw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqnEV-00CXuV-Lk; Sat, 27 Nov 2021 02:14:31 +0000 Received: from galois.linutronix.de ([193.142.43.55]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqmPd-00CB4H-Gw for linux-arm-kernel@lists.infradead.org; Sat, 27 Nov 2021 01:22:02 +0000 Message-ID: <20211126230525.374699615@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1637976116; 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=G+kQoqkWvFJXcdz5PQCdFWimR12BfigYgz7Zbwfcs54=; b=JhI6uHv7tjDr4XTF2/wDNanwvizKXSIBRLKqWSPFIedWDe76hyO7a+orBUwzRZ91Ht/+aI nWkG6Q0+NVx0rjxIjtckjTuyz62DNHUj6sNTF/AZ22bIVJas4GHWA/VS+AK98D3BbbQifl lThege2XS5GYuVy1STGXhsU2N2DONtD56Ex2IVeW+ArMVfCnmFn3WJ9NEyYmxkPgvtOCDI 9knvQ1LX09h+9fta0TBcP639bHVJWNYLNKtEegiyyKwJDFFeRLCsRIqrB0+8Uyug6aokNw LygrrNslzpIZ/bNR+8iHjLWYK70ZfBadJneHnJ+bMVHhg/uhWkkxjOulrVJJ5g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1637976116; 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=G+kQoqkWvFJXcdz5PQCdFWimR12BfigYgz7Zbwfcs54=; b=VVu+iF3NWmFeGDs3jIWnfe9PCFru3Jn1OpFv0fKNuDtar49mG7l7Bw0VWijnN595QiAo+9 XfgIMFT2phAUnQCg== 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 , Santosh Shilimkar , iommu@lists.linux-foundation.org, dmaengine@vger.kernel.org, Stuart Yoder , Laurentiu Tudor , Nishanth Menon , Tero Kristo , linux-arm-kernel@lists.infradead.org, x86@kernel.org, Vinod Koul , Mark Rutland , Will Deacon , Sinan Kaya Subject: [patch 24/37] powerpc/cell/axon_msi: Use MSI device properties References: <20211126224100.303046749@linutronix.de> MIME-Version: 1.0 Date: Sat, 27 Nov 2021 02:21:55 +0100 (CET) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211126_172157_772465_138AE8E1 X-CRM114-Status: GOOD ( 10.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Message-ID: <20211127012155.SrPoDiVZwyXuZBVcwpEe_aeEreqv_2lf5iZwondxx2w@z> instead of fiddling with MSI descriptors. Signed-off-by: Thomas Gleixner --- arch/powerpc/platforms/cell/axon_msi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/arch/powerpc/platforms/cell/axon_msi.c +++ b/arch/powerpc/platforms/cell/axon_msi.c @@ -199,7 +199,7 @@ static struct axon_msic *find_msi_transl static int setup_msi_msg_address(struct pci_dev *dev, struct msi_msg *msg) { struct device_node *dn; - struct msi_desc *entry; + bool is_64bit; int len; const u32 *prop; @@ -209,10 +209,10 @@ static int setup_msi_msg_address(struct return -ENODEV; } - entry = first_pci_msi_entry(dev); + is_64bit = msi_device_has_property(MSI_PROP_64BIT); for (; dn; dn = of_get_next_parent(dn)) { - if (entry->pci.msi_attrib.is_64) { + if (is_64bit) { prop = of_get_property(dn, "msi-address-64", &len); if (prop) break; _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel