Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1236087

[PATCH 2/3] ACPI: scan add call to probe amba devices

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Graeme Gregory <graeme.gregory@linaro.org>
Newsgroups linux.kernel
Subject [PATCH 2/3] ACPI: scan add call to probe amba devices
Date Wed, 30 Sep 2015 12:40:02 +0200
Message-ID <qemXM-2nj-3@gated-at.bofh.it> (permalink)
References <qemXM-2nj-5@gated-at.bofh.it>
X-Original-To linux-acpi@vger.kernel.org
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0J5Z4QJ5PsqHDc7YzRqISRdQmUb4fk4ZKO/G3kCF86o=; b=g/pwfc2QS1WmLDuoGRufsdNFeXWY0bWQuT4dMfxQUW7XOlTZFhgYttCdQWEoeOQgbM B3gJRZH7DLsVpqzbc+THDu1NxPzwKzlMW3Pjanv02a8TdRXHhmFbdcoPX0jsy50EswsB agit/QUpWZ1yRbXMu3qrz8+adFfBRwbOM8D4yleXE2Wh2iIDmhp0ULhZs8RJUf8Tqp0f uK05O0WPM2bdzn57GMWOT5iXi/RaRGm108LvqPgz+5Lyv3W3sgkK2mBkfumnf906YQ0P FucAuTMRn6HVBIdfRrZtJlTUeiC6N4Mj4In2hm1VXG0zyAd837SGBV0fXt2GtgRMwxAf 0xuQ==
X-Gm-Message-State ALoCoQmXitM/0SXIb2F4AsDzYSbJ7PyoB3nzP/4wmq2z13lOVHgRQ55e1uLvrsuo8oVJ+MvaoXH3
X-Received by 10.180.8.68 with SMTP id p4mr22496442wia.16.1443609538186; Wed, 30 Sep 2015 03:38:58 -0700 (PDT)
X-Mailer git-send-email 2.4.3
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 35
Organization linux.* mail to news gateway
X-Original-Cc linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, shannon.zhao@linaro.org, Graeme Gregory <graeme.gregory@linaro.org>, "Rafael J. Wysocki" <rjw@rjwysocki.net>, Len Brown <lenb@kernel.org>, Russell King <linux@arm.linux.org.uk>
X-Original-Date Wed, 30 Sep 2015 11:38:49 +0100
X-Original-Message-ID <1443609530-21524-3-git-send-email-graeme.gregory@linaro.org>
X-Original-References <1443609530-21524-1-git-send-email-graeme.gregory@linaro.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1236087

Show key headers only | View raw


Call the amba device creation function in the default enumeration path,
this is the same location platform devices are probed.

Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: Len Brown <lenb@kernel.org>
Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
---
 drivers/acpi/scan.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index f834b8c..aa3184e 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -1633,8 +1633,10 @@ static void acpi_default_enumeration(struct acpi_device *device)
 	acpi_dev_get_resources(device, &resource_list, acpi_check_spi_i2c_slave,
 			       &is_spi_i2c_slave);
 	acpi_dev_free_resource_list(&resource_list);
-	if (!is_spi_i2c_slave)
+	if (!is_spi_i2c_slave) {
+		acpi_create_amba_device(device);
 		acpi_create_platform_device(device);
+	}
 }
 
 static const struct acpi_device_id generic_device_ids[] = {
-- 
2.4.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 2/3] ACPI: scan add call to probe amba devices Graeme Gregory <graeme.gregory@linaro.org> - 2015-09-30 12:40 +0200

csiph-web