From patchwork Fri Nov 11 13:57:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 18819 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp758688wru; Fri, 11 Nov 2022 06:06:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf5N7KEVUFdjPW++/seDi9jhDTnFWln0D8J9JIhKXTiHJfYb44Z6lf+KrnaijJu1CgaRcIf7 X-Received: by 2002:a63:f40a:0:b0:46b:8e9:747 with SMTP id g10-20020a63f40a000000b0046b08e90747mr1804431pgi.365.1668175585148; Fri, 11 Nov 2022 06:06:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668175585; cv=none; d=google.com; s=arc-20160816; b=jGo75NmpCfdb7fDLKN6sGlYs/wE3QcgcwQvXZFGUlTd61dRroCt4uoRbFiXZRfSrms poXO1XSc8UOYXPDW2jyx3b4QnVvIu7pBhNGfXtnZwA8ar/rF2Oh6QOm7np+v91EZ6RAn /2lh+oYtcSsbOYjufo5za1KxL84/VonhJSZv4JqCkm+tgSyvksN4qUSLv19tBs5MD8mc jLK5XElrxi09z9mqGQiam3gSpXXBx6d7EKc8lyagQSAGAhHp5+5IcV/KwzUmlT//FIRZ 1UjnWZl/EiIrLUl+rvHoLiAhShv6sDRzjMWFYrsZok381gORMoDgBQLAJC5fSJdjyLCI Qqaw== 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=GJVQ2SZXJW9JM9aRrRhS+1YlGfOXcrA8a5ImAYbhiICpEzfBsqLPRsdYs02yu67f3Q WxVd3cIB5T2OJHlsMv3/182dD6g3Dhqh98zsh7kGicxB5bkMyTDb1r/Vbf7FWP635eUy b3Xkd6400c61taSXkRnw/fDcg6WKnk8lrIU/+J6u0GNxagyIgYn08qnuRS1moHE+3wXi u1YxjYKzPHMLNJuy5lgUDcoTfsZZaO3KQ9wOcGSnbQKNUTYtpmicxmS41Mm7q24E5rZE 3xhCcJ1LkYrRGfKRbl9DGMYiMtrXP+w9WW7fiV/L0Bb05t4v0v+P8I+rB4aIlbEf0V8A rmpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Nfs1lz13; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 k14-20020a170902760e00b0017f8d9b7e5fsi2424933pll.133.2022.11.11.06.05.56; Fri, 11 Nov 2022 06:06:25 -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=Nfs1lz13; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 S234337AbiKKOD3 (ORCPT + 99 others); Fri, 11 Nov 2022 09:03:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234553AbiKKOC0 (ORCPT ); Fri, 11 Nov 2022 09:02:26 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 377A68F881; Fri, 11 Nov 2022 05:57:42 -0800 (PST) Message-ID: <20221111132707.117568272@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1668175028; 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=Nfs1lz13gt1tux+eOBYl7g1Mc+75JFi3CcRKr36qSGYkdyBng4/JXBPjm43D8J18gn9l7M sqgoDUNgBEAZy5by5Ar7yC2qvnsWKM2NgVPNQkjCqhQHGF8Lx6kjR6P+LSF5NfWc9DpNBy RB2ivaEhXzBh1TiMOebMMMELWLeVntFrkR4OImV+M8acPaj+WEp22ODJsH/AjwZ0uihadd pplE1M+qZ1SYEMRCviNsd3uzLDxMU7RF/XXG7tqaAEvVtuh0dkojkvw0zcvjus5N/h2DVh YnfggGA7XFxs46Wa/5tjITkerkgYKcgNDEri0Rw75SeJ+etdqj1vZY9Kxf8+Zw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1668175028; 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=urKmS9I7wuAdVuQCpZ6rwwkPUgJ3QDrBE5x12HAusk7N4U6EoQ7HDlMtoTM4Nb83u5qmEl q9ddWAoRG3PwTVDA== 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" , Reinette Chatre Subject: [patch 19/20] oc: ti: ti_sci_inta_msi: Switch to domain id aware MSI functions References: <20221111131813.914374272@linutronix.de> MIME-Version: 1.0 Date: Fri, 11 Nov 2022 14:57:07 +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?1749208882279352915?= X-GMAIL-MSGID: =?utf-8?q?1749208882279352915?= 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: