From patchwork Wed Aug 5 13:40:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashwin Chaugule X-Patchwork-Id: 51945 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id C08E022A15 for ; Wed, 5 Aug 2015 13:40:57 +0000 (UTC) Received: by wibdx1 with SMTP id dx1sf16959366wib.2 for ; Wed, 05 Aug 2015 06:40:56 -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:in-reply-to:references :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=J/03YLdIKOhu3nc1bZDQfvx7C0saKlXuFyN7v6x+kWc=; b=YpWk1PSGxXBp8jRu0Ljn74SlKCMJUSzCCOso5eLIVeK1JtXugbw0fDVHJvCnDQwt6c mPdUzSuhi0k9FqzW7/jlQdt+STqQGDkjgYCexZYpcPvpS3MqZQ6i10roEVqOmxlFrt29 El9whuAK92rnr7WQVBsHBGSpb5SjbZtJEisoMfehJT64dz51w51WFHvbyvucF7TtCmLu 5bRt7cb6z1wT91ZgFDLHbLhC6DjOvtQkQe+WIKoXpZoIdAAYk4hoOV54ExshK26AwAP6 ZvDJt/125ZJlsG0kgH7o/iW0wFMuKa70nMto+ZWvZQgs/MtktGfsG2LkOAz77kVW2a++ AcUg== X-Gm-Message-State: ALoCoQnkXZ8keyBbFTuhmO6QULS869hhKWQmHldXo2yuIq/jUoUb/2e+XskBOIzXtyJKfHtY2VWT X-Received: by 10.112.138.2 with SMTP id qm2mr2749696lbb.19.1438782056508; Wed, 05 Aug 2015 06:40:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.7 with SMTP id v7ls198600laa.107.gmail; Wed, 05 Aug 2015 06:40:56 -0700 (PDT) X-Received: by 10.152.8.234 with SMTP id u10mr9335364laa.8.1438782056240; Wed, 05 Aug 2015 06:40:56 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id l6si2174989lbd.114.2015.08.05.06.40.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Aug 2015 06:40:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by labow3 with SMTP id ow3so28983850lab.1 for ; Wed, 05 Aug 2015 06:40:55 -0700 (PDT) X-Received: by 10.112.133.72 with SMTP id pa8mr9226096lbb.117.1438782054067; Wed, 05 Aug 2015 06:40:54 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.7.198 with SMTP id l6csp380330lba; Wed, 5 Aug 2015 06:40:53 -0700 (PDT) X-Received: by 10.170.142.132 with SMTP id j126mr4499061ykc.117.1438782053093; Wed, 05 Aug 2015 06:40:53 -0700 (PDT) Received: from mail-yk0-f170.google.com (mail-yk0-f170.google.com. [209.85.160.170]) by mx.google.com with ESMTPS id k68si1757024ywg.162.2015.08.05.06.40.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Aug 2015 06:40:53 -0700 (PDT) Received-SPF: pass (google.com: domain of ashwin.chaugule@linaro.org designates 209.85.160.170 as permitted sender) client-ip=209.85.160.170; Received: by ykoo205 with SMTP id o205so35346019yko.0 for ; Wed, 05 Aug 2015 06:40:52 -0700 (PDT) X-Received: by 10.13.243.65 with SMTP id c62mr9307648ywf.114.1438782052443; Wed, 05 Aug 2015 06:40:52 -0700 (PDT) Received: from esagroth.lan ([98.122.160.202]) by smtp.gmail.com with ESMTPSA id g187sm2768031ywf.35.2015.08.05.06.40.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Aug 2015 06:40:51 -0700 (PDT) From: Ashwin Chaugule To: rjw@rjwysocki.net, jaswinder.singh@linaro.org Cc: sudeep.holla@arm.com, linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, linaro-acpi@lists.linaro.org, patches@linaro.org, viresh.kumar@linaro.org, rwells@codeaurora.org, Ashwin Chaugule Subject: [PATCH v8 1/9] PCC: Initialize PCC Mailbox earlier at boot Date: Wed, 5 Aug 2015 09:40:24 -0400 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ashwin.chaugule@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.50 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This change initializes the PCC Mailbox earlier than the ACPI processor driver. This enables drivers introduced in follow up patches (e.g. CPPC) to be probed via the ACPI processor driver interface. The CPPC probe requires the PCC channel to be initialized for it to query each CPUs performance capabilities. Signed-off-by: Ashwin Chaugule Reviewed-by: Al Stone --- drivers/mailbox/pcc.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/mailbox/pcc.c b/drivers/mailbox/pcc.c index 26d121d..f814313 100644 --- a/drivers/mailbox/pcc.c +++ b/drivers/mailbox/pcc.c @@ -352,4 +352,10 @@ static int __init pcc_init(void) return 0; } -device_initcall(pcc_init); + +/* + * Make pcc init postcore so that users of this mailbox + * such as the ACPI Processor driver have it available + * at their init. + */ +postcore_initcall(pcc_init);