From patchwork Mon Jun 15 20:09:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashwin Chaugule X-Patchwork-Id: 6612051 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 B937EC0020 for ; Mon, 15 Jun 2015 20:09:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EFFAA20768 for ; Mon, 15 Jun 2015 20:09:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 14A292077B for ; Mon, 15 Jun 2015 20:09:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752531AbbFOUJY (ORCPT ); Mon, 15 Jun 2015 16:09:24 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:36464 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755873AbbFOUJX (ORCPT ); Mon, 15 Jun 2015 16:09:23 -0400 Received: by pdjm12 with SMTP id m12so79947289pdj.3 for ; Mon, 15 Jun 2015 13:09:22 -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=SAANbs/3b2v5we7LuR+ThQCUrP1P8tvkezRU8/Bg094=; b=LHKV4Vm99LxbpTrqFHX0KLaAASpYnneJ5z46/zsk7ujH/e3Fy2T3UdYHP4PxANqu4W +eFXfqHirGGpsPRIrDthfARz6wL+TCm/xheWNvgFrgmM5maZbI1gK9AXrMIdRQTSJHMk dNtmh7T/vPjryAy5FaY+yIKJJDslvzkMaO+0d+BtHdjl0Rc5+PuL+QZlpOgaN875FviW 71jtwfZBBWWnEjrtaJ3ggQs6DjYN4tomw4V+Z0I2hG7i0suSoY7DwG4Fzk5bB1kYeL/p Q1Qhv9kqw28dwwNKhJvN4dWIN7KgAIK3vKEa9ANn33GGtzx+n/PNh1E8c7M/hRI4uax3 mrrw== X-Gm-Message-State: ALoCoQl8tqPSZfON0Kl99SGJvCR1dNdW1rkDDRClsAlSwplQQGdaY185F+7dZlyMoHZkDfJCKrwO X-Received: by 10.66.168.105 with SMTP id zv9mr51555129pab.121.1434398962522; Mon, 15 Jun 2015 13:09:22 -0700 (PDT) Received: from esagroth.qualcomm.com (rrcs-67-52-130-30.west.biz.rr.com. [67.52.130.30]) by mx.google.com with ESMTPSA id eu5sm13059688pbb.44.2015.06.15.13.09.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Jun 2015 13:09:21 -0700 (PDT) From: Ashwin Chaugule To: rjw@rjwysocki.net, jaswinder.singh@linaro.org Cc: linux-pm@vger.kernel.org, linaro-acpi@lists.linaro.org, patches@linaro.org, linux-acpi@vger.kernel.org, viresh.kumar@linaro.org, sudeep.holla@arm.com, Ashwin Chaugule Subject: [PATCH v6 1/7] PCC: Initialize PCC Mailbox earlier at boot Date: Mon, 15 Jun 2015 16:09:05 -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.4 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 7e91d68..fcda63e 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);