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: 90912 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1166614qgi; Wed, 11 Jan 2017 07:09:18 -0800 (PST) X-Received: by 10.84.128.67 with SMTP id 61mr13978872pla.153.1484147358325; Wed, 11 Jan 2017 07:09:18 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 72si6058015pgf.169.2017.01.11.07.09.18; Wed, 11 Jan 2017 07:09:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764791AbdAKPJN (ORCPT + 25 others); Wed, 11 Jan 2017 10:09:13 -0500 Received: from mail-pg0-f50.google.com ([74.125.83.50]:35288 "EHLO mail-pg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756233AbdAKPJJ (ORCPT ); Wed, 11 Jan 2017 10:09:09 -0500 Received: by mail-pg0-f50.google.com with SMTP id 194so21636698pgd.2 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=jCnq4B9lNTLdwoyX5mZpBjo1cRkNLp7CHO4nzckSxLJ/1Vqw6PjQfLTfPatZfw96cg Bk18XDGoidcT5pIzng7ubVKe7cuU0Bz1FUgItNUZyAyviGid3aM5ZVnR4Ithn1bx3xU6 mBzE6J1SExvSbskVC+Rppf/kAKb2VgjaG/9xey+2Eqa1nfrGAXvo834ENJCIJgkerZbO 6bI6PRkqDUmbOyGNSf9lCVCGT2HRw7bwqiQhpQ2Jb31JArgbV2chNNhHSWloQRMRREFN pR2ijzEH0HkVsc/UzVYDNXYEgyfTY7xzv7a7xa0+PDnK02hn50PNAv0VnwL43sKTJjaf 22qA== X-Gm-Message-State: AIkVDXLE27fqM+D6nue0ULjTZl+odCF4V7XLmvQCyTcTfb6pfH1zut2ZdBsggiuxzpnFreHs 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 Cc: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com, Thomas Gleixner , Greg KH , Tomasz Nowicki , Ma Jun , Kefeng Wang , Agustin Vega-Frias , Sinan Kaya , huxinwei@huawei.com, yimin@huawei.com, Jon Masters , Matthias Brugger , Xinwei Kong , Hanjun Guo 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/base/platform-msi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 1.9.1 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;