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: 49932 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 ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CA376205DE for ; Mon, 15 Jun 2015 20:09:26 +0000 (UTC) Received: by lagh6 with SMTP id h6sf6527887lag.0 for ; Mon, 15 Jun 2015 13:09:25 -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=aFVXCvY88DQBcESqNnfmG/P34XpvzcDeBHQdflJxsLvkiFQY71XLQVcgazO6xj3ffW CSliYXsSMLOY0BI0qUSQPPt2fEszNEqrjcbweAbWk9mE5nRpOpFJCE3n7uaco58A7/P6 /JJDmoDab19Eg+zjKeCCFsTpAxvO9S4lXXDlnxpK7hTm9j3VlnXL3osOK9vXcxpmT72d 6YHu5TuS/eSCq/RVaIOURUu1WtZa01hyPqbRFIBHFcWJp0qhPORUMVQPVLzXsuPlsUHn cj+apnpKH7Hl+6ZFcmAsIbYsHtE+bGYZVJIKEfFEpxU10E4jDPBCV7mWU1mXcJhJlodt cpEQ== X-Gm-Message-State: ALoCoQnNW3f0SklW10uo6Ft+vNYva6qT5gPFetco0586jxilIVkie8OFkPQLBT5MmrzIdPN/dVAN X-Received: by 10.180.86.98 with SMTP id o2mr9567566wiz.4.1434398965577; Mon, 15 Jun 2015 13:09:25 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.136 with SMTP id q8ls1033371laj.91.gmail; Mon, 15 Jun 2015 13:09:25 -0700 (PDT) X-Received: by 10.112.219.70 with SMTP id pm6mr1759180lbc.41.1434398965410; Mon, 15 Jun 2015 13:09:25 -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 t11si11300200lbf.65.2015.06.15.13.09.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jun 2015 13:09:25 -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 lacny3 with SMTP id ny3so45307632lac.3 for ; Mon, 15 Jun 2015 13:09:25 -0700 (PDT) X-Received: by 10.152.22.99 with SMTP id c3mr29390153laf.32.1434398965280; Mon, 15 Jun 2015 13:09:25 -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 hn6csp1648374lbb; Mon, 15 Jun 2015 13:09:24 -0700 (PDT) X-Received: by 10.70.132.195 with SMTP id ow3mr51039228pdb.87.1434398963416; Mon, 15 Jun 2015 13:09:23 -0700 (PDT) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com. [209.85.220.43]) by mx.google.com with ESMTPS id tk2si19306415pac.116.2015.06.15.13.09.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jun 2015 13:09:23 -0700 (PDT) Received-SPF: pass (google.com: domain of ashwin.chaugule@linaro.org designates 209.85.220.43 as permitted sender) client-ip=209.85.220.43; Received: by pacyx8 with SMTP id yx8so71978691pac.2 for ; Mon, 15 Jun 2015 13:09:22 -0700 (PDT) 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: 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.43 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);