From patchwork Mon Nov 21 14:36:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 23809 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1627268wrr; Mon, 21 Nov 2022 06:39:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7I9f0BHG9kKsXgz0QMDxihChnVT3RSb/S+na0/VAZgo+Ed0lIx1Awigz0iJLKG/7TRU11e X-Received: by 2002:a17:902:680e:b0:188:d552:fb02 with SMTP id h14-20020a170902680e00b00188d552fb02mr500787plk.76.1669041551950; Mon, 21 Nov 2022 06:39:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669041551; cv=none; d=google.com; s=arc-20160816; b=ODdHHG2TQ3DiarMCDzy5dLRXnXzi3MIxQbjFiPMXnA5wQiyje/rfMRTXdEouqgRq2/ ozPPxbTVcHfNHPweV8D6oe4aSIpluKX7PJZQc4ax5edE++U4P7LeDrjnyN2ir6DZ7Jom ey6kVbuPm2Ws0kPOaHiOO9ScwNU8W/JZQHkmn2sMEAKzbl5GNtXNJTNSJbugC2NncELg H0zILjTEz94AlxNEqUztCF+v2DxZT/yzrIjCOV+l14Cl/XSPXCbHGfw50nex2jAVy1HB AG4ghgZozJ8tigVCRS9WxvB5VJBw8h5O2gjZYGMIenTMj5By5RGLRmi7D7NmSq6siglz m8Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:mime-version:references:subject:cc:to:from :dkim-signature:dkim-signature:message-id; bh=/bVC6uqxnLqu0Y//SpNf+743RFr9freD3IllzYYvzRs=; b=U27Al1Whcaag50kZJKCsF8yvlQXv2hRAe04RR4umLhTb3k4gv/LUYHPosI/kedxxIj ccHgBdrEPZI2t8q5IeoPuGAbx27e20T3+PJT1m7b4Wu6xSCwmyFGNgtmOb4svt9D7mSJ MgKzElzsVe4/eW0aNkRQEsuf3h+0dlwaQM6AyOmbtKy0DLKZhwOa9BXRHL7nn8n0/P/d +iOV+lip5P8lkAQBPCkVR8Qt+HrjPksKDME/9nRrSjUzEghNwVCVwRN8IEVnApbiePIn 21O2R2vS61gZOCuhfdqzCEYkFIMndS6vvLCKFz2NxFVJv4/f/rUH0dNYxLmV0JQ+Ffhl yxuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=W4ofMafV; dkim=neutral (no key) header.i=@linutronix.de; 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 l6-20020a170903120600b0017f7fa141f2si12895211plh.583.2022.11.21.06.38.56; Mon, 21 Nov 2022 06:39:11 -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=W4ofMafV; dkim=neutral (no key) header.i=@linutronix.de; 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 S231566AbiKUOiS (ORCPT + 99 others); Mon, 21 Nov 2022 09:38:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230370AbiKUOgq (ORCPT ); Mon, 21 Nov 2022 09:36:46 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B759C76A7; Mon, 21 Nov 2022 06:36:45 -0800 (PST) Message-ID: <20221121083326.617156908@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669041403; 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=/bVC6uqxnLqu0Y//SpNf+743RFr9freD3IllzYYvzRs=; b=W4ofMafVh7rm8emZNfhg4DWL9YKcdUtjs6guGjP+2xWvPEkM/Z3g8zvywlJ26EKcimUPrG p+0rRkGpxZfQIsBIfNoLlxbsP8n0+fTwgcTFVghxl/CvmU4D4r4XCylHgj9HYAdcp4f2vy gcXpl9/m4tFuqoq1GI2UKZVzxjKi7LD3xsvuo7grqLp4btDr97+UovVC9Rtu89uH1UqTQ9 RArVsqghKaGxoK2DCPrp0AePChj16INqKWprmxNEB3ydCybr6uPJxRgf3EFp3Kske6WiGc rKecQRavmplxvjIuu/blQKmUMnhRFhPmDx86o+uFKcQEHU7AXLfmQN8EYMGn1A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669041403; 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=/bVC6uqxnLqu0Y//SpNf+743RFr9freD3IllzYYvzRs=; b=wL0px/wfju+i+mk2KAVG6Hi7dBxm2Ya43G2ZKWk//5waKcYH38ir3ie5RLpaUd9kfqjs/Q KmVlvoEmJ4gsRWBQ== From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Joerg Roedel , Will Deacon , linux-pci@vger.kernel.org, Bjorn Helgaas , Lorenzo Pieralisi , Marc Zyngier , Greg Kroah-Hartman , Jason Gunthorpe , Dave Jiang , Alex Williamson , Kevin Tian , Dan Williams , Logan Gunthorpe , Ashok Raj , Jon Mason , Allen Hubbe , "Ahmed S. Darwish" Subject: [patch V2 20/21] oc: ti: ti_sci_inta_msi: Switch to domain id aware MSI functions References: <20221121083210.309161925@linutronix.de> MIME-Version: 1.0 Date: Mon, 21 Nov 2022 15:36:43 +0100 (CET) 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?1750116914574652854?= X-GMAIL-MSGID: =?utf-8?q?1750116914574652854?= From: Ahmed S. Darwish 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 --- drivers/soc/ti/ti_sci_inta_msi.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) --- 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(st 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(st 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: