From patchwork Mon Jan 2 13:31:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 9493645 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6C56C62AB4 for ; Mon, 2 Jan 2017 13:36:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C9701FF35 for ; Mon, 2 Jan 2017 13:36:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 50FED2679B; Mon, 2 Jan 2017 13:36:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D17801FF35 for ; Mon, 2 Jan 2017 13:36:45 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cO2lU-0006Wq-Ms; Mon, 02 Jan 2017 13:35:04 +0000 Received: from mail-pg0-x22f.google.com ([2607:f8b0:400e:c05::22f]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cO2ko-0005sp-Ni for linux-arm-kernel@lists.infradead.org; Mon, 02 Jan 2017 13:34:30 +0000 Received: by mail-pg0-x22f.google.com with SMTP id g1so164957913pgn.0 for ; Mon, 02 Jan 2017 05:34:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0geNNcfuxxLZIX6/ksmq5gv9bzbOU9NFQPWDIrTA1gM=; b=BlzEC72DfUNApKf1chz4Cx1cnswCaFVcAAs1gIa8lf7Txl/1tapyKDh8G8mLZSWLs0 Rxn3KMTYJUlXocBHG0Sv7IVoUwA4qczFxNb5+dpguA4W7yj1/mqHAxNPiH146KZooJH3 hDCejSJVlezHJggwVfji5iQXwisujMeke/CRU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0geNNcfuxxLZIX6/ksmq5gv9bzbOU9NFQPWDIrTA1gM=; b=Gg+lLc9dREtEofWedgKNxwPYOVsZ1Cne9lQUVSebowHa/RC4pofdJ9WwTyMELUJsmW TsIiqWhJl/YrvKoewLJm3UmyYlAzd3GOshxGak9CjDDmthGsBIkQyYh1PplidyrjWkEx mZl3nmPQ+wZmQDUG+WHym88zgY5r2RsC7wrP/1a0/eMEFoM6DRtcffzM5CUZyJIphrYY NphkiewG8jA1K4yKhPIOTE/PIIN42zP72O0gs0xyVPAeCU+EcnYFYaEhBIxkvnWCsoQM fZZK1vehoNfS8WVYhbyDmENM1ldkM4jU4outiv44ntwjiDpvvOPL0QKfeHnDKT/NBcxt fTOA== X-Gm-Message-State: AIkVDXLfa2Sc5sGoQGetX/G8AonGGo7yHZWI2CKNsTsFiuQtzAyP3xhxoPMGqyBNs0VUZPlY X-Received: by 10.84.213.130 with SMTP id g2mr125779687pli.43.1483364042379; Mon, 02 Jan 2017 05:34:02 -0800 (PST) Received: from localhost ([104.237.91.251]) by smtp.googlemail.com with ESMTPSA id i11sm133534858pgn.17.2017.01.02.05.34.00 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 02 Jan 2017 05:34:01 -0800 (PST) From: Hanjun Guo To: Marc Zyngier , "Rafael J. Wysocki" , Lorenzo Pieralisi Subject: [PATCH v6 11/14] msi: platform: make platform_msi_create_device_domain() ACPI aware Date: Mon, 2 Jan 2017 21:31:42 +0800 Message-Id: <1483363905-2806-12-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1483363905-2806-1-git-send-email-hanjun.guo@linaro.org> References: <1483363905-2806-1-git-send-email-hanjun.guo@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170102_053423_397720_25B8DCFE X-CRM114-Status: GOOD ( 10.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: huxinwei@huawei.com, Kefeng Wang , charles.garcia-tobin@arm.com, Jon Masters , yimin@huawei.com, Greg KH , linux-kernel@vger.kernel.org, linuxarm@huawei.com, Sinan Kaya , linux-acpi@vger.kernel.org, Hanjun Guo , Tomasz Nowicki , Thomas Gleixner , Agustin Vega-Frias , linux-arm-kernel@lists.infradead.org, Ma Jun MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP With the platform msi domain created for ITS, irqchip such as mbi-gen connecting ITS, which needs ctreate its own irqdomain. Fortunately with the platform msi support upstreamed by Marc, we just need to add minor code to make it run properly. platform_msi_create_device_domain() is almost ready for ACPI use except of_node_to_fwnode() is for dt only, make it ACPI aware then things will work in both DTS and ACPI. Signed-off-by: Hanjun Guo Tested-by: Majun Tested-by: Xinwei Kong Cc: Marc Zyngier Cc: Greg KH Cc: Thomas Gleixner --- drivers/base/platform-msi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/base/platform-msi.c b/drivers/base/platform-msi.c index be6a599..035ca3b 100644 --- a/drivers/base/platform-msi.c +++ b/drivers/base/platform-msi.c @@ -345,8 +345,7 @@ struct irq_domain * data->host_data = host_data; domain = irq_domain_create_hierarchy(dev->msi_domain, 0, nvec, - of_node_to_fwnode(dev->of_node), - ops, data); + dev->fwnode, ops, data); if (!domain) goto free_priv;