From patchwork Wed Sep 30 10:38:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Graeme Gregory X-Patchwork-Id: 54298 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by patches.linaro.org (Postfix) with ESMTPS id 3D3B422E23 for ; Wed, 30 Sep 2015 10:39:42 +0000 (UTC) Received: by laer8 with SMTP id r8sf19158615lae.2 for ; Wed, 30 Sep 2015 03:39:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=F+L2Sln2t1m9zdE8fb/biQBN6/lQ8+c95TXOY5B74TE=; b=T7KKWSp64v5UxB3OQP7FmMy8bJUSZnGdZfpGnuaczvqqMgz2BfxTZTM38ahw0fEOK8 3LUmYOP4ojUbDOgbYb4r9j4+USGXcv10BTTIBeJrzvXivCncdZBdRM6wJgHpyp79pikL 5SBc/vlHHOkQ1VTSuTJryjr7bqJzS+o6QZPQfeiMJVcvWCpyZH9YZYK2n4E1Dhj0pdax D/APbKTxrtrv+wVvkoJqi+a+d6bt/QIZFz5cXFpbjK02IUeAnI/JfWVKcENTuiSbwW8W CvReVDlc+4siFT6tlqYd28yTui8Vl29c/IVfvKdobZ0C8FZ7DtCPreQ6AN9sR+O84odt KnFg== X-Gm-Message-State: ALoCoQmex1dthMQPhRG7Jj8rZYEUCzd0BbrQClDkJQiUDZdb+/DgEdza7SfO/cwN2TYif5DNYbc3 X-Received: by 10.112.130.41 with SMTP id ob9mr411579lbb.17.1443609581040; Wed, 30 Sep 2015 03:39:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.141.198 with SMTP id p189ls35103lfd.79.gmail; Wed, 30 Sep 2015 03:39:40 -0700 (PDT) X-Received: by 10.152.29.136 with SMTP id k8mr915334lah.96.1443609580838; Wed, 30 Sep 2015 03:39:40 -0700 (PDT) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id wq3si205517lac.97.2015.09.30.03.39.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Sep 2015 03:39:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by laclj5 with SMTP id lj5so40664871lac.3 for ; Wed, 30 Sep 2015 03:39:40 -0700 (PDT) X-Received: by 10.152.26.41 with SMTP id i9mr921199lag.36.1443609580547; Wed, 30 Sep 2015 03:39:40 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp2663869lbq; Wed, 30 Sep 2015 03:39:39 -0700 (PDT) X-Received: by 10.107.13.196 with SMTP id 187mr3328774ion.58.1443609579613; Wed, 30 Sep 2015 03:39:39 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si20200696igb.24.2015.09.30.03.39.39; Wed, 30 Sep 2015 03:39:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756313AbbI3Kjh (ORCPT + 6 others); Wed, 30 Sep 2015 06:39:37 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:38056 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755081AbbI3Ki7 (ORCPT ); Wed, 30 Sep 2015 06:38:59 -0400 Received: by wiclk2 with SMTP id lk2so55104233wic.1 for ; Wed, 30 Sep 2015 03:38:58 -0700 (PDT) X-Received: by 10.180.8.68 with SMTP id p4mr22496442wia.16.1443609538186; Wed, 30 Sep 2015 03:38:58 -0700 (PDT) Received: from xora-haswell.xora.org.uk.xora.org.uk (host-92-22-69-126.as13285.net. [92.22.69.126]) by smtp.gmail.com with ESMTPSA id gh9sm544528wjb.27.2015.09.30.03.38.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Sep 2015 03:38:57 -0700 (PDT) From: Graeme Gregory To: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, shannon.zhao@linaro.org, Graeme Gregory , "Rafael J. Wysocki" , Len Brown , Russell King Subject: [PATCH 2/3] ACPI: scan add call to probe amba devices Date: Wed, 30 Sep 2015 11:38:49 +0100 Message-Id: <1443609530-21524-3-git-send-email-graeme.gregory@linaro.org> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1443609530-21524-1-git-send-email-graeme.gregory@linaro.org> References: <1443609530-21524-1-git-send-email-graeme.gregory@linaro.org> Sender: linux-acpi-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: graeme.gregory@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Call the amba device creation function in the default enumeration path, this is the same location platform devices are probed. Cc: Rafael J. Wysocki Cc: Len Brown Cc: Russell King Signed-off-by: Graeme Gregory --- 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[] = {