Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6043892imm; Wed, 12 Sep 2018 15:34:20 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbpNIsoAQk+dHDR8gW5EZCHwOWcpPxq1Gcgn6LBuvreEUzxucEp3UwzVI9EuPxLG3GFtP// X-Received: by 2002:a17:902:b78a:: with SMTP id e10-v6mr4454514pls.79.1536791660521; Wed, 12 Sep 2018 15:34:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536791660; cv=none; d=google.com; s=arc-20160816; b=uUXPJS2/C/RWRI7OGpl1HURUUGRXqtPn3e89q4VXTktinXC9k5uDpfp9Wvi1oA2x/i Ecd+qL78Za1xB5ct+g/jk10XkVUx+XKi/dwRfWs4kI80MZX5EUwgRl5eRF5XFlooRwYI Jbmc0RCZgE81XLW+/9JNMiXj8m4plWQXPkXdlM7O9ZaUYvzh2iuWSpLhVGcsR1wmZ0Ms cWIoaKPv9wYOVJa/idTqPHOvaowColB/h5stqc15PY2GAWgXF82Lp53usoDoPv0MYNGo fBLVtafxw0jLMBI6cycNk1+ceVhAkc7oTWGns+0MMMGt6CmE2t8bhuLEfaVr2oRYCPLT jGuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:dkim-signature:dkim-signature; bh=FIpi7yCgZmTw8PqeR7a459UdsNuOlCL9Uz23glzY22o=; b=iAXHgjjQQwlwRnAjuK/LzufzZrm3O+sxh34lZ+9sMcIjS5xV3AYuPInQtj86k/868D 5MLvN4zf/f8NIf806HZ1TBXQgg9gjjy6kAjbOuPjO+FxUjdeRJfkZXkbquDF1lmXxnjW MJmsP8ySoGdG087PnPwNi+l2stYaQ/v5zAj5aCDpBrnY/qobx6Oxc3rJ52qF7/hC0qCO 2k+zMaVFcyFLb9/iPEgdq38M6f6f7QHkjhQnPn55VAJijcT9pLuN49478cTgQlm1pKv/ aTRtJR8Q/CZVf4CmdP+5oFTAeWsCillEas8XWGLbTUoX915kCKVA+X7XnAZx6Qh8lEJh zglQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="Y7WwYOC/"; dkim=pass header.i=@codeaurora.org header.s=default header.b="Y7WwYOC/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si2268939plt.148.2018.09.12.15.34.04; Wed, 12 Sep 2018 15:34:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="Y7WwYOC/"; dkim=pass header.i=@codeaurora.org header.s=default header.b="Y7WwYOC/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728065AbeIMDke (ORCPT + 99 others); Wed, 12 Sep 2018 23:40:34 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:40118 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727739AbeIMDke (ORCPT ); Wed, 12 Sep 2018 23:40:34 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 9726360594; Wed, 12 Sep 2018 22:33:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1536791638; bh=1bD15yvhWTSoLZGmyUtQDXWG/LmgU6E79ev9mlP9LC4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y7WwYOC/jTTCZeIZ3T1MgeoJLYrQ3dioTwhgbuL3yBTv8MmnVDUPiIurbqZPwQCe8 hTRTV+HH+HLHY4WhFBUC9VqCi7IMwGfcpq9Rs7pOf2A7Nrzaho+6s4DUvhwDPR8u02 u+ZhDq2p3wZPJrLCpkbwnPF1crw/zws5HzNmGD+g= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID,URIBL_RED autolearn=no autolearn_force=no version=3.4.0 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id E53756053B; Wed, 12 Sep 2018 22:33:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1536791638; bh=1bD15yvhWTSoLZGmyUtQDXWG/LmgU6E79ev9mlP9LC4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y7WwYOC/jTTCZeIZ3T1MgeoJLYrQ3dioTwhgbuL3yBTv8MmnVDUPiIurbqZPwQCe8 hTRTV+HH+HLHY4WhFBUC9VqCi7IMwGfcpq9Rs7pOf2A7Nrzaho+6s4DUvhwDPR8u02 u+ZhDq2p3wZPJrLCpkbwnPF1crw/zws5HzNmGD+g= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E53756053B Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org Date: Wed, 12 Sep 2018 16:33:56 -0600 From: Lina Iyer To: Matthias Kaehlcke Cc: Raju P L S S S N , andy.gross@linaro.org, david.brown@linaro.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, rnayak@codeaurora.org, bjorn.andersson@linaro.org, linux-kernel@vger.kernel.org, sboyd@kernel.org, evgreen@chromium.org, dianders@chromium.org Subject: Re: [PATCH v2 5/6] drivers: qcom: rpmh-rsc: write PDC data Message-ID: <20180912223356.GA11079@codeaurora.org> References: <1532685889-31345-1-git-send-email-rplsssn@codeaurora.org> <1532685889-31345-6-git-send-email-rplsssn@codeaurora.org> <20180912222809.GK22824@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20180912222809.GK22824@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 12 2018 at 16:28 -0600, Matthias Kaehlcke wrote: >On Fri, Jul 27, 2018 at 03:34:48PM +0530, Raju P L S S S N wrote: >> From: Lina Iyer >> >> The Power Domain Controller can be programmed to wakeup the RSC and >> setup the resources back in the active state, before the processor is >> woken up by a timer interrupt. The wakeup value from the timer hardware >> can be copied to the PDC which has its own timer and is in an always-on >> power domain. Programming the wakeup value is done through a separate >> register on the RSC. >> >> Signed-off-by: Lina Iyer >> Signed-off-by: Raju P.L.S.S.S.N >> --- >> Changes in v2: >> - Remove unnecessary EXPORT_SYMBOL >> --- > >> +int rpmh_rsc_write_pdc_data(struct rsc_drv *drv, const struct tcs_request *msg) >> +{ >> + int i; >> + void __iomem *addr = drv->base + RSC_PDC_DRV_DATA; >> + >> + if (!msg || !msg->cmds || msg->num_cmds != RSC_PDC_DATA_SIZE) >> + return -EINVAL; > >Is it really always exactly 2 (RSC_PDC_DATA_SIZE) commands? > Yes, always.