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: 6949651 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 83C8CC05AC for ; Wed, 5 Aug 2015 13:41:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B332A203B0 for ; Wed, 5 Aug 2015 13:41:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C0945203E3 for ; Wed, 5 Aug 2015 13:41:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753025AbbHENkz (ORCPT ); Wed, 5 Aug 2015 09:40:55 -0400 Received: from mail-yk0-f171.google.com ([209.85.160.171]:33923 "EHLO mail-yk0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752835AbbHENkx (ORCPT ); Wed, 5 Aug 2015 09:40:53 -0400 Received: by ykax123 with SMTP id x123so35449826yka.1 for ; Wed, 05 Aug 2015 06:40:52 -0700 (PDT) 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:in-reply-to:references; bh=J/03YLdIKOhu3nc1bZDQfvx7C0saKlXuFyN7v6x+kWc=; b=AY5LVaGgB1O0AefS1qDO0o/YCdKud0l/XOzBty7F/oun3GSBdvjwHwLTUc3mKmAd9F KPcTsQyhsqGx3L73C61RRxEtIjQG17kWhq9KaiLNeqAX9ZddCx7aoeGxBgyJfw0nPnsC yxFJ70fIz0tVO4UkVeRlAm/Kc2SSw3zVvvFbeGn0A01aUJtSxYZVne+U/AGwV7gsElgC btr6jiQr0v1UNcy8aHjtaeGVOP6cs8+/gbJiRXCt5qMZyjgYdxYIh9fnEdJAfXC2lLPF EExgwznhvAxT8dpOSty2w1nrTrepzR0NpaLWDf7Hbr6UFGIUZhrGw6WS1aYPODUcNByG dICA== X-Gm-Message-State: ALoCoQnMU1UWLYHB1F+4Xi9hT1QNJ+AZzUfiy30v4SYOMG88adMaY4QUO7TCGhsl/oTYv9sCZQmr 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: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);