From patchwork Thu Jul 9 18:04:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashwin Chaugule X-Patchwork-Id: 50981 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6A56822A14 for ; Thu, 9 Jul 2015 18:04:35 +0000 (UTC) Received: by lbbpo10 with SMTP id po10sf34412678lbb.1 for ; Thu, 09 Jul 2015 11:04:34 -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=SAANbs/3b2v5we7LuR+ThQCUrP1P8tvkezRU8/Bg094=; b=FQmUuz3BFxqU9pqB+uusfWadr3QMsdDRk2x8oFKRs3vhlS0RZnS0aS/ury660uxHyW aCTueSap44EU3rAak/Z19GzJ/0uoML2A+59Y3vgwcodoK4DilO+jx+SlcyqOIn/jjpbH zCDcmf8ki16zJZi+jCDkqmiC23mIHOrUhdESr9vunqHpxawKsXfJSn2ZLzMFyuqBNGNT PCZYC4NTKNcPo1D3yLpTMAOxf0jBOOl6J3Qc73o3UOPUCOIDhDUkEa1OoB961+sV/oer vhNqxk90hUV9Sw/1zsSZb4weiWivIi//UqU7no7bzIZv8ecbCBa6yn57yvXGMWSm2MJu vRSQ== X-Gm-Message-State: ALoCoQlxKltqmnH4okj8baT+/+OPpPPAZAHho3xE2ilVplxSTSARTVCOPJgBnql0BiMlDy5vGhGh X-Received: by 10.152.22.163 with SMTP id e3mr8570526laf.6.1436465074378; Thu, 09 Jul 2015 11:04:34 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.169 with SMTP id l9ls1137286lah.52.gmail; Thu, 09 Jul 2015 11:04:34 -0700 (PDT) X-Received: by 10.153.4.12 with SMTP id ca12mr16068165lad.20.1436465074175; Thu, 09 Jul 2015 11:04:34 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id ln2si5104610lac.42.2015.07.09.11.04.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 11:04:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbnk3 with SMTP id k3so79616163lbn.1 for ; Thu, 09 Jul 2015 11:04:34 -0700 (PDT) X-Received: by 10.152.7.7 with SMTP id f7mr16165321laa.106.1436465074097; Thu, 09 Jul 2015 11:04:34 -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.108.230 with SMTP id hn6csp828394lbb; Thu, 9 Jul 2015 11:04:33 -0700 (PDT) X-Received: by 10.140.235.145 with SMTP id g139mr27831731qhc.81.1436465072652; Thu, 09 Jul 2015 11:04:32 -0700 (PDT) Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com. [209.85.220.181]) by mx.google.com with ESMTPS id e133si1558125qka.69.2015.07.09.11.04.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 11:04:32 -0700 (PDT) Received-SPF: pass (google.com: domain of ashwin.chaugule@linaro.org designates 209.85.220.181 as permitted sender) client-ip=209.85.220.181; Received: by qkcl188 with SMTP id l188so7922773qkc.1 for ; Thu, 09 Jul 2015 11:04:32 -0700 (PDT) X-Received: by 10.55.41.95 with SMTP id p92mr25659397qkh.10.1436465071979; Thu, 09 Jul 2015 11:04:31 -0700 (PDT) Received: from esagroth.qualcomm.com (rrcs-67-52-130-30.west.biz.rr.com. [67.52.130.30]) by smtp.gmail.com with ESMTPSA id x79sm3969918qha.10.2015.07.09.11.04.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 11:04:30 -0700 (PDT) From: Ashwin Chaugule To: rjw@rjwysocki.net, jaswinder.singh@linaro.org Cc: linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, linaro-acpi@lists.linaro.org, patches@linaro.org, viresh.kumar@linaro.org, sudeep.holla@arm.com, Ashwin Chaugule Subject: [PATCH v7 1/8] PCC: Initialize PCC Mailbox earlier at boot Date: Thu, 9 Jul 2015 14:04:17 -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.217.176 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 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);