From patchwork Wed Jan 11 15:06:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 9510363 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 6038960231 for ; Wed, 11 Jan 2017 15:09:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 526D32807B for ; Wed, 11 Jan 2017 15:09:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 44258284CB; Wed, 11 Jan 2017 15:09:44 +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 AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C7CB02807B for ; Wed, 11 Jan 2017 15:09:43 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cRKWz-0002jX-Qr; Wed, 11 Jan 2017 15:09:41 +0000 Received: from mail-pg0-x235.google.com ([2607:f8b0:400e:c05::235]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cRKWi-0001uD-VN for linux-arm-kernel@lists.infradead.org; Wed, 11 Jan 2017 15:09:31 +0000 Received: by mail-pg0-x235.google.com with SMTP id 14so37626693pgg.1 for ; Wed, 11 Jan 2017 07:09:04 -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=ydmY4XJ1v873gv1zcZmR6GXrYVWHI4HAJmtSGKA0ulw=; b=Nr4nv1Geqllq4UCCwAtMKlqJur+/6zlDyjGb2Y2usm/DydNUm6BxFtctSzcPh2FV5h DP61dTYPuNF4eBZmv2qglZsvbSIlXCUL6B0zjhfSO5R0B0UmbM3G2eEejqiYgWkq3Cyw Bn2HuAHvpcb2Quvk7hjK2iVRa5Fr4J91/hRsw= 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=ydmY4XJ1v873gv1zcZmR6GXrYVWHI4HAJmtSGKA0ulw=; b=qJpMLkpBzrwZookjc/KAqTica70HXpV1tqlvIEOo2c3qwopO+1CL+kHXsVJnBfy9Jg 1ogrN0Av6jhu2dOP+5U09XEswl1W6V6I1QV0guXerlePWfgucQobq2LqrhxtC6X2VEw4 QwqYvOjr7CQeLhx0gL7ZDr1S6ZJ6E8I0TmPK0tHU9dbgjrZTvzmNOsAvG7NbRUnJk6Of WPYA6krjc1wm2qT+zXzVz7b6v9CDYBjUa0nao3U5qG4onIhD8JcQnonNDo2Az6Z4xUh3 MezcIbrt8FfCKp137STtp1LjsBqceR5OLA43ubd/67tT5BFltHNA6Wzdmgc2wVCrqZIt lZJQ== X-Gm-Message-State: AIkVDXLhAqpM+DRvH1WwMUIDYkILKLg92xWNZQgbR3nGteRS/dTORPFWUXdgT2W0MS3dJe53 X-Received: by 10.98.159.141 with SMTP id v13mr10857784pfk.50.1484147343978; Wed, 11 Jan 2017 07:09:03 -0800 (PST) Received: from localhost ([104.237.91.103]) by smtp.googlemail.com with ESMTPSA id 75sm1298158pfp.80.2017.01.11.07.09.02 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 11 Jan 2017 07:09:03 -0800 (PST) From: Hanjun Guo To: Marc Zyngier , "Rafael J. Wysocki" , Lorenzo Pieralisi Subject: [PATCH v7 12/15] msi: platform: make platform_msi_create_device_domain() ACPI aware Date: Wed, 11 Jan 2017 23:06:36 +0800 Message-Id: <1484147199-4267-13-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1484147199-4267-1-git-send-email-hanjun.guo@linaro.org> References: <1484147199-4267-1-git-send-email-hanjun.guo@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170111_070925_385116_A880762E X-CRM114-Status: GOOD ( 10.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: huxinwei@huawei.com, Kefeng Wang , Matthias Brugger , Jon Masters , yimin@huawei.com, Greg KH , linux-kernel@vger.kernel.org, linuxarm@huawei.com, Sinan Kaya , linux-acpi@vger.kernel.org, Xinwei Kong , 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 platform_msi_create_device_domain() is used to ctreate irqdomain for the device such as irqchip mbigen generating the MSIs, it's 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 Cc: Marc Zyngier Cc: Greg KH Cc: Thomas Gleixner Cc: Greg KH Reviewed-by: Lorenzo Pieralisi --- 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;